gpt4 book ai didi

org.apache.poi.xssf.usermodel.XSSFPrintSetup类的使用及代码示例

转载 作者:知者 更新时间:2024-03-23 08:21:05 29 4
gpt4 key购买 nike

本文整理了Java中org.apache.poi.xssf.usermodel.XSSFPrintSetup类的一些代码示例,展示了XSSFPrintSetup类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSSFPrintSetup类的具体详情如下:
包路径:org.apache.poi.xssf.usermodel.XSSFPrintSetup
类名称:XSSFPrintSetup

XSSFPrintSetup介绍

[英]Page setup and page margins settings for the worksheet.
[中]工作表的页面设置和页边距设置。

代码示例

代码示例来源:origin: org.apache.poi/poi-ooxml

/**
 * Set no orientation.
 *
 * @param orientation Orientation.
 */
public void setNoOrientation(boolean orientation) {
  if (orientation) {
    setOrientation(PrintOrientation.DEFAULT);
  }
}

代码示例来源:origin: org.apache.poi/poi-ooxml

/**
 * Returns the paper size as enum.
 *
 * @return PaperSize paper size
 * @see PaperSize
 */
public PaperSize getPaperSizeEnum() {
  return PaperSize.values()[getPaperSize() - 1];
}

代码示例来源:origin: org.apache.poi/poi-ooxml

/**
 * Set the paper size as enum value.
 *
 * @param size value for the paper size.
 */
public void setPaperSize(PaperSize size) {
  setPaperSize((short) (size.ordinal() + 1));
}

代码示例来源:origin: org.apache.poi/poi-ooxml

/**
 * Returns the landscape mode.
 *
 * @return landscape mode
 */
public boolean getLandscape() {
  return getOrientation() == PrintOrientation.LANDSCAPE;
}

代码示例来源:origin: org.apache.poi/poi-ooxml

/**
 * Returns the print notes.
 *
 * @return print notes
 */
public boolean getNotes() {
  return getCellComment() == PrintCellComments.AS_DISPLAYED;
}

代码示例来源:origin: org.apache.poi/poi-ooxml

/**
 * Set whether to go left to right or top down in ordering
 *
 * @param ltor left to right
 */
public void setLeftToRight(boolean ltor) {
  if (ltor)
    setPageOrder(PageOrder.OVER_THEN_DOWN);
  else 
    setPageOrder(PageOrder.DOWN_THEN_OVER);
}

代码示例来源:origin: org.apache.poi/poi-ooxml

/**
 * Gets the print setup object.
 *
 * @return The user model for the print setup object.
 */
@Override
public XSSFPrintSetup getPrintSetup() {
  return new XSSFPrintSetup(worksheet);
}

代码示例来源:origin: org.apache.poi/poi-ooxml

/**
 * Returns the left to right print order.
 *
 * @return left to right print order
 */
public boolean getLeftToRight() {
  return getPageOrder() == PageOrder.OVER_THEN_DOWN;
}

代码示例来源:origin: org.apache.poi/poi-ooxml

getPrintSetup().setValidSettings(false);

代码示例来源:origin: org.apache.poi/poi-ooxml

/**
 * Returns the no orientation.
 *
 * @return no orientation
 */
public boolean getNoOrientation() {
  return getOrientation() == PrintOrientation.DEFAULT;
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

/**
 * Returns the print notes.
 *
 * @return print notes
 */
public boolean getNotes() {
  return getCellComment() == PrintCellComments.AS_DISPLAYED;
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

/**
 * Set whether to go left to right or top down in ordering
 *
 * @param ltor left to right
 */
public void setLeftToRight(boolean ltor) {
  if (ltor)
    setPageOrder(PageOrder.OVER_THEN_DOWN);
  else 
    setPageOrder(PageOrder.DOWN_THEN_OVER);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

/**
 * Gets the print setup object.
 *
 * @return The user model for the print setup object.
 */
@Override
public XSSFPrintSetup getPrintSetup() {
  return new XSSFPrintSetup(worksheet);
}

代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev

/**
 * Returns the left to right print order.
 *
 * @return left to right print order
 */
public boolean getLeftToRight() {
  return getPageOrder() == PageOrder.OVER_THEN_DOWN;
}

代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev

printSetup.setValidSettings(false);

代码示例来源:origin: org.apache.poi/poi-ooxml

/**
 * Set whether to print in landscape
 *
 * @param ls landscape
 */
public void setLandscape(boolean ls) {
  if (ls)
    setOrientation(PrintOrientation.LANDSCAPE);
  else 
    setOrientation(PrintOrientation.PORTRAIT);
}

代码示例来源:origin: youseries/ureport

switch(paperType){
  case A0:
    printSetup.setPaperSize(PaperSize.A4_PAPER);
    break;
  case A1:
    printSetup.setPaperSize(PaperSize.A4_PAPER);
    break;
  case A2:
    printSetup.setPaperSize(PaperSize.A4_PAPER);
    break;
  case A3:				
    printSetup.setPaperSize(PaperSize.A3_PAPER);
    setup=true;
    break;
  case A4:
    printSetup.setPaperSize(PaperSize.A4_PAPER);
    setup=true;
    break;
  case A5:
    printSetup.setPaperSize(PaperSize.A5_PAPER);
    setup=true;
    break;
  case A6:
    printSetup.setPaperSize(PaperSize.A4_PAPER);
    break;
  case A7:
    printSetup.setPaperSize(PaperSize.A4_PAPER);
    break;
  case A8:

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

/**
 * Returns the paper size as enum.
 *
 * @return PaperSize paper size
 * @see PaperSize
 */
public PaperSize getPaperSizeEnum() {
  return PaperSize.values()[getPaperSize() - 1];
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

/**
 * Returns the landscape mode.
 *
 * @return landscape mode
 */
public boolean getLandscape() {
  return getOrientation() == PrintOrientation.LANDSCAPE;
}

代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev

/**
 * Returns the print notes.
 *
 * @return print notes
 */
public boolean getNotes() {
  return getCellComment() == PrintCellComments.AS_DISPLAYED;
}

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com