本文整理了Java中org.apache.poi.xslf.usermodel.XSLFSheet.getMasterSheet()
方法的一些代码示例,展示了XSLFSheet.getMasterSheet()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSLFSheet.getMasterSheet()
方法的具体详情如下:
包路径:org.apache.poi.xslf.usermodel.XSLFSheet
类名称:XSLFSheet
方法名:getMasterSheet
暂无
代码示例来源:origin: org.apache.poi/poi-ooxml
private CTHeaderFooter getHeaderFooter(final boolean create) {
final XSLFSheet sheet = shape.getSheet();
final XSLFSheet master = (sheet instanceof MasterSheet && !(sheet instanceof XSLFSlideLayout)) ? sheet : (XSLFSheet)sheet.getMasterSheet();
if (master instanceof XSLFSlideMaster) {
final CTSlideMaster ct = ((XSLFSlideMaster) master).getXmlObject();
return (ct.isSetHf() || !create) ? ct.getHf() : ct.addNewHf();
} else if (master instanceof XSLFNotesMaster) {
final CTNotesMaster ct = ((XSLFNotesMaster) master).getXmlObject();
return (ct.isSetHf() || !create) ? ct.getHf() : ct.addNewHf();
} else {
return null;
}
}
代码示例来源:origin: org.apache.poi/poi-ooxml
return false;
MasterSheet<XSLFShape,XSLFTextParagraph> sm = getSheet().getMasterSheet();
代码示例来源:origin: org.apache.poi/poi-ooxml
for (XSLFSheet m = masterSheet; m != null; m = (XSLFSheet)m.getMasterSheet()) {
masterSheet = m;
XmlObject xo = masterSheet.getXmlObject();
代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev
/**
* Render this sheet into the supplied graphics object
*
* @param graphics
*/
public void draw(Graphics2D graphics){
XSLFSheet master = getMasterSheet();
if(getFollowMasterGraphics() && master != null) master.draw(graphics);
graphics.setRenderingHint(XSLFRenderingHint.GROUP_TRANSFORM, new AffineTransform());
for(XSLFShape shape : getShapeList()) {
if(!canDraw(shape)) continue;
// remember the initial transform and restore it after we are done with drawing
AffineTransform at = graphics.getTransform();
// concrete implementations can make sense of this hint,
// for example PSGraphics2D or PDFGraphics2D would call gsave() / grestore
graphics.setRenderingHint(XSLFRenderingHint.GSAVE, true);
// apply rotation and flipping
shape.applyTransform(graphics);
// draw stuff
shape.draw(graphics);
// restore the coordinate system
graphics.setTransform(at);
graphics.setRenderingHint(XSLFRenderingHint.GRESTORE, true);
}
}
代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev
while (masterSheet.getMasterSheet() != null){
masterSheet = masterSheet.getMasterSheet();
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
private CTHeaderFooter getHeaderFooter(final boolean create) {
final XSLFSheet sheet = shape.getSheet();
final XSLFSheet master = (sheet instanceof MasterSheet && !(sheet instanceof XSLFSlideLayout)) ? sheet : (XSLFSheet)sheet.getMasterSheet();
if (master instanceof XSLFSlideMaster) {
final CTSlideMaster ct = ((XSLFSlideMaster) master).getXmlObject();
return (ct.isSetHf() || !create) ? ct.getHf() : ct.addNewHf();
} else if (master instanceof XSLFNotesMaster) {
final CTNotesMaster ct = ((XSLFNotesMaster) master).getXmlObject();
return (ct.isSetHf() || !create) ? ct.getHf() : ct.addNewHf();
} else {
return null;
}
}
代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev
XSLFSheet masterSheet = getSheet().getMasterSheet();
CTPlaceholder ph = getCTPlaceholder();
XSLFSheet master = masterSheet.getMasterSheet();
if (master != null) {
masterShape = master.getPlaceholderByType(textType);
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
return false;
MasterSheet<XSLFShape,XSLFTextParagraph> sm = getSheet().getMasterSheet();
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
for (XSLFSheet m = masterSheet; m != null; m = (XSLFSheet)m.getMasterSheet()) {
masterSheet = m;
XmlObject xo = masterSheet.getXmlObject();
内容来源于网络,如有侵权,请联系作者删除!