- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.apache.poi.xssf.usermodel.XSSFSimpleShape
类的一些代码示例,展示了XSSFSimpleShape
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSSFSimpleShape
类的具体详情如下:
包路径:org.apache.poi.xssf.usermodel.XSSFSimpleShape
类名称:XSSFSimpleShape
[英]Represents a shape with a predefined geometry in a SpreadsheetML drawing. Possible shape types are defined in org.apache.poi.ss.usermodel.ShapeTypes
[中]表示电子表格图形中具有预定义几何图形的形状。可能的形状类型在组织中定义。阿帕奇。波伊。党卫军。用户模型。形状
代码示例来源:origin: org.apache.poi/poi-ooxml
void processShapes(List<XSSFShape> shapes, StringBuilder text) {
if (shapes == null) {
return;
}
for (XSSFShape shape : shapes) {
if (shape instanceof XSSFSimpleShape) {
String sText = ((XSSFSimpleShape) shape).getText();
if (sText != null && sText.length() > 0) {
text.append(sText).append('\n');
}
}
}
}
代码示例来源:origin: org.apache.poi/poi-ooxml
/**
* Creates a simple shape. This includes such shapes as lines, rectangles,
* and ovals.
*
* @param anchor the child anchor describes how this shape is attached
* to the group.
* @return the newly created shape.
*/
public XSSFSimpleShape createSimpleShape(XSSFChildAnchor anchor) {
CTShape ctShape = ctGroup.addNewSp();
ctShape.set(XSSFSimpleShape.prototype());
XSSFSimpleShape shape = new XSSFSimpleShape(getDrawing(), ctShape);
shape.parent = this;
shape.anchor = anchor;
shape.setXfrm(anchor.getCTTransform2D());
return shape;
}
代码示例来源:origin: org.apache.poi/poi-ooxml
/**
* Set a single paragraph of text on the shape. Note this will replace all
* existing paragraphs created on the shape.
*
* @param text
* string representing the paragraph text
*/
public void setText(String text) {
clearText();
addNewTextParagraph().addNewTextRun().setText(text);
}
代码示例来源:origin: org.apache.poi/poi-ooxml
out.append(getBulletPrefix(scheme, levelCount.get(level)));
out.append(p.getText());
out.append('\n');
index = processAutoNumGroup(index + 1, nextp.getLevel(), levelCount, out);
continue; // restart the loop given the new index
} else if (nextp.getLevel() < level) {
out.append(getBulletPrefix(nextScheme, levelCount.get(level)));
out.append(nextp.getText());
代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev
/**
* Creates a simple shape. This includes such shapes as lines, rectangles,
* and ovals.
*
* @param anchor the child anchor describes how this shape is attached
* to the group.
* @return the newly created shape.
*/
public XSSFSimpleShape createSimpleShape(XSSFChildAnchor anchor) {
CTShape ctShape = ctGroup.addNewSp();
ctShape.set(XSSFSimpleShape.prototype());
XSSFSimpleShape shape = new XSSFSimpleShape(getDrawing(), ctShape);
shape.parent = this;
shape.anchor = anchor;
shape.getCTShape().getSpPr().setXfrm(anchor.getCTTransform2D());
return shape;
}
代码示例来源:origin: apache/tika
for (XSSFShape shape : shapes) {
if (shape instanceof XSSFSimpleShape) {
String sText = ((XSSFSimpleShape) shape).getText();
if (sText != null && sText.length() > 0) {
xhtml.element("p", sText);
extractHyperLinksFromShape(((XSSFSimpleShape)shape).getCTShape(), xhtml);
代码示例来源:origin: org.apache.poi/poi-ooxml
XSSFWorkbook wb = (XSSFWorkbook) getDrawing().getParent().getParent();
str.setStylesTableReference(wb.getStylesSource());
rPr.setLang("en-US");
applyAttributes(ltPr, rPr);
clearText();
ctShape.getTxBody().setPArray(new CTTextParagraph[] { p });
_paragraphs.add(new XSSFTextParagraph(ctShape.getTxBody().getPArray(0), ctShape));
代码示例来源:origin: stackoverflow.com
shape.setShapeType(ShapeTypes.LINE);
shape.setLineWidth(1.5);
shape.setLineStyle(3);
shape.setLineStyleColor(0,0,255);
shape.getCTShape().getNvSpPr().getCNvPr().setId(shape.getCTShape().getNvSpPr().getCNvPr().getId()-1);
CTShapeProperties shapeProperties = shape.getCTShape().getSpPr();
CTLineProperties lineProperties = shapeProperties.getLn();
代码示例来源:origin: org.apache.poi/poi-ooxml
/**
* Creates a simple shape. This includes such shapes as lines, rectangles,
* and ovals.
*
* @param anchor
* the client anchor describes how this group is attached to the
* sheet.
* @return the newly created shape.
*/
public XSSFSimpleShape createSimpleShape(XSSFClientAnchor anchor) {
long shapeId = newShapeId();
CTTwoCellAnchor ctAnchor = createTwoCellAnchor(anchor);
CTShape ctShape = ctAnchor.addNewSp();
ctShape.set(XSSFSimpleShape.prototype());
ctShape.getNvSpPr().getCNvPr().setId(shapeId);
ctShape.getSpPr().setXfrm(createXfrm(anchor));
XSSFSimpleShape shape = new XSSFSimpleShape(this, ctShape);
shape.anchor = anchor;
return shape;
}
代码示例来源:origin: org.apache.poi/poi-ooxml
/**
* Constructs a textbox.
*
* @param anchor the child anchor describes how this shape is attached
* to the group.
* @return the newly created textbox.
*/
public XSSFTextBox createTextbox(XSSFChildAnchor anchor){
CTShape ctShape = ctGroup.addNewSp();
ctShape.set(XSSFSimpleShape.prototype());
XSSFTextBox shape = new XSSFTextBox(getDrawing(), ctShape);
shape.parent = this;
shape.anchor = anchor;
shape.setXfrm(anchor.getCTTransform2D());
return shape;
}
/**
代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev
public void setText(XSSFRichTextString str){
XSSFWorkbook wb = (XSSFWorkbook)getDrawing().getParent().getParent();
str.setStylesTableReference(wb.getStylesSource());
CTTextParagraph p = CTTextParagraph.Factory.newInstance();
if(str.numFormattingRuns() == 0){
CTRegularTextRun r = p.addNewR();
CTTextCharacterProperties rPr = r.addNewRPr();
rPr.setLang("en-US");
rPr.setSz(1100);
r.setT(str.getString());
} else {
for (int i = 0; i < str.getCTRst().sizeOfRArray(); i++) {
CTRElt lt = str.getCTRst().getRArray(i);
CTRPrElt ltPr = lt.getRPr();
if(ltPr == null) ltPr = lt.addNewRPr();
CTRegularTextRun r = p.addNewR();
CTTextCharacterProperties rPr = r.addNewRPr();
rPr.setLang("en-US");
applyAttributes(ltPr, rPr);
r.setT(lt.getT());
}
}
ctShape.getTxBody().setPArray(new CTTextParagraph[]{p});
}
代码示例来源:origin: org.apache.poi/poi-ooxml
} else if (obj instanceof CTShape) {
shape = hasOleLink(obj) ? new XSSFObjectData(this, (CTShape) obj)
: new XSSFSimpleShape(this, (CTShape) obj);
} else if (obj instanceof CTGraphicalObjectFrame) {
shape = new XSSFGraphicFrame(this, (CTGraphicalObjectFrame) obj);
代码示例来源:origin: org.apache.poi/poi-ooxml
rPr.setLang("en-US");
applyAttributes(ltPr, rPr);
代码示例来源:origin: org.apache.poi/poi-ooxml
/**
* Add a new paragraph run to this shape, set to the provided string
*
* @return created paragraph run
*/
public XSSFTextParagraph addNewTextParagraph(String text) {
XSSFTextParagraph paragraph = addNewTextParagraph();
paragraph.addNewTextRun().setText(text);
return paragraph;
}
代码示例来源:origin: org.apache.poi/poi-ooxml
i = processAutoNumGroup(i, level, levelCount, out);
} else {
代码示例来源:origin: com.github.lafa.tikaNoExternal/tika-parsers
private void processShapes(List<XSSFShape> shapes, XHTMLContentHandler xhtml) throws SAXException {
if (shapes == null) {
return;
}
for (XSSFShape shape : shapes) {
if (shape instanceof XSSFSimpleShape) {
String sText = ((XSSFSimpleShape) shape).getText();
if (sText != null && sText.length() > 0) {
xhtml.element("p", sText);
}
extractHyperLinksFromShape(((XSSFSimpleShape)shape).getCTShape(), xhtml);
}
}
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
XSSFWorkbook wb = (XSSFWorkbook) getDrawing().getParent().getParent();
str.setStylesTableReference(wb.getStylesSource());
rPr.setLang("en-US");
applyAttributes(ltPr, rPr);
clearText();
ctShape.getTxBody().setPArray(new CTTextParagraph[] { p });
_paragraphs.add(new XSSFTextParagraph(ctShape.getTxBody().getPArray(0), ctShape));
代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev
/**
* Creates a simple shape. This includes such shapes as lines, rectangles,
* and ovals.
*
* @param anchor the client anchor describes how this group is attached
* to the sheet.
* @return the newly created shape.
*/
public XSSFSimpleShape createSimpleShape(XSSFClientAnchor anchor)
{
long shapeId = newShapeId();
CTTwoCellAnchor ctAnchor = createTwoCellAnchor(anchor);
CTShape ctShape = ctAnchor.addNewSp();
ctShape.set(XSSFSimpleShape.prototype());
ctShape.getNvSpPr().getCNvPr().setId(shapeId);
XSSFSimpleShape shape = new XSSFSimpleShape(this, ctShape);
shape.anchor = anchor;
return shape;
}
代码示例来源:origin: org.apache.poi/poi-ooxml
/**
* Constructs a textbox under the drawing.
*
* @param anchor
* the client anchor describes how this group is attached to the
* sheet.
* @return the newly created textbox.
*/
public XSSFTextBox createTextbox(XSSFClientAnchor anchor) {
long shapeId = newShapeId();
CTTwoCellAnchor ctAnchor = createTwoCellAnchor(anchor);
CTShape ctShape = ctAnchor.addNewSp();
ctShape.set(XSSFSimpleShape.prototype());
ctShape.getNvSpPr().getCNvPr().setId(shapeId);
XSSFTextBox shape = new XSSFTextBox(this, ctShape);
shape.anchor = anchor;
return shape;
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
out.append(getBulletPrefix(scheme, levelCount.get(level)));
out.append(p.getText());
out.append('\n');
index = processAutoNumGroup(index + 1, nextp.getLevel(), levelCount, out);
continue; // restart the loop given the new index
} else if (nextp.getLevel() < level) {
out.append(getBulletPrefix(nextScheme, levelCount.get(level)));
out.append(nextp.getText());
我正在编写 java 代码来读取列名为“键”和“值”的 excel 文件。但是由于无法在这行代码中进行转换而出错, Row firstRow =(Row)sheet.getRow(0); 如何解决这个
在我使用 jasperreports-3.7.4 jar 以 Excel 格式下载 Jasper Reports 之前。现在我正在尝试升级到 jasperreports-6.3.1 jar。但它在调用
我在将报告导出为 XLS 时遇到了一些问题。导出为 PDF 效果很好。 所以我尝试更新到最新的 JasperReports 和 Apache POI 版本: JasperReports:5.5.0 兴
同一模型的其他函数工作正常,我只有其中两个有问题,它们都与数据库交互。在本地工作。 来自错误日志。 PHP fatal error :调用未定义的方法 UserModel::getScreens()
是否有可能在 django UserModel 的管理页面中创建自定义操作?我想自动将用户添加到组中(比如将他添加到员工中,设置一些额外的值等),当然还要创建操作来收回这些更改。 感谢您的帮助。 最佳
我想在包中输入提示用户模型。默认情况下,它是 App\User .在 channel 类(class)中,这没问题: class ChannelExample { public functio
这是我的代码: var user = UserModel.findOne({ _id: decodedToken.id, }, function (err, user) {
当我尝试在 Users 上使用 MongooseModel 时,出现以下错误 Nest can't resolve dependencies of the UserModel (?). Please
我对 Nodejs 和 mongoDB 还很陌生。我已经创建了注册和用户架构,但它无法识别this并发送以下错误: ReferenceError: userModel is not defined 当
我想使用 npoi 在 VS2012/2010 中操作 .xlsx 文件。为此,我应该导入 NPOI.XSSF.UserModel,但是当我添加 npoi.dll 并尝试导入它时,没有 XSSF 使用
本文整理了Java中org.apache.poi.xwpf.usermodel.XWPFHeaderFooter类的一些代码示例,展示了XWPFHeaderFooter类的具体用法。这些代码示例主要来
本文整理了Java中org.apache.poi.xssf.usermodel.XSSFHyperlink类的一些代码示例,展示了XSSFHyperlink类的具体用法。这些代码示例主要来源于Gith
本文整理了Java中org.apache.poi.xslf.usermodel.XSLFSlideLayout类的一些代码示例,展示了XSLFSlideLayout类的具体用法。这些代码示例主要来源于
本文整理了Java中org.apache.poi.xwpf.usermodel.XWPFStyle类的一些代码示例,展示了XWPFStyle类的具体用法。这些代码示例主要来源于Github/Stack
本文整理了Java中org.apache.poi.xwpf.usermodel.XWPFRelation类的一些代码示例,展示了XWPFRelation类的具体用法。这些代码示例主要来源于Github
本文整理了Java中org.apache.poi.xslf.usermodel.XSLFTextParagraph类的一些代码示例,展示了XSLFTextParagraph类的具体用法。这些代码示例主
本文整理了Java中org.apache.poi.xslf.usermodel.XSLFTextRun类的一些代码示例,展示了XSLFTextRun类的具体用法。这些代码示例主要来源于Github/S
本文整理了Java中org.apache.poi.xslf.usermodel.XSLFSlideMaster类的一些代码示例,展示了XSLFSlideMaster类的具体用法。这些代码示例主要来源于
本文整理了Java中org.apache.poi.xssf.usermodel.XSSFComment类的一些代码示例,展示了XSSFComment类的具体用法。这些代码示例主要来源于Github/S
本文整理了Java中org.apache.poi.xslf.usermodel.XSLFTableCell类的一些代码示例,展示了XSLFTableCell类的具体用法。这些代码示例主要来源于Gith
我是一名优秀的程序员,十分优秀!