gpt4 book ai didi

org.apache.poi.xslf.usermodel.XSLFTextParagraph.isBullet()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-23 10:51:05 28 4
gpt4 key购买 nike

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

XSLFTextParagraph.isBullet介绍

[英]Returns whether this paragraph has bullets
[中]返回此段落是否包含项目符号

代码示例

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

@Override
public BulletStyle getBulletStyle() {
  if (!isBullet()) return null;
  return new BulletStyle(){
    @Override

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

boolean isBullet = other.isBullet();
if(isBullet != isBullet()){
  setBullet(isBullet);
  if(isBullet) {

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

/**
 *
 * @param flag whether text in this paragraph has bullets
 */
public void setBullet(boolean flag) {
  if(isBullet() == flag) return;
  CTTextParagraphProperties pr = _p.isSetPPr() ? _p.getPPr() : _p.addNewPPr();
  if(flag) {
    pr.addNewBuFont().setTypeface("Arial");
    pr.addNewBuChar().setChar("\u2022");
  } else {
    if (pr.isSetBuFont()) pr.unsetBuFont();
    if (pr.isSetBuChar()) pr.unsetBuChar();
    if (pr.isSetBuAutoNum()) pr.unsetBuAutoNum();
    if (pr.isSetBuBlip()) pr.unsetBuBlip();
    if (pr.isSetBuClr()) pr.unsetBuClr();
    if (pr.isSetBuClrTx()) pr.unsetBuClrTx();
    if (pr.isSetBuFont()) pr.unsetBuFont();
    if (pr.isSetBuFontTx()) pr.unsetBuFontTx();
    if (pr.isSetBuSzPct()) pr.unsetBuSzPct();
    if (pr.isSetBuSzPts()) pr.unsetBuSzPts();
    if (pr.isSetBuSzTx()) pr.unsetBuSzTx();
    pr.addNewBuNone();
  }
}

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

@Override
public BulletStyle getBulletStyle() {
  if (!isBullet()) return null;
  return new BulletStyle(){
    @Override

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

width = anchor.getWidth() -  leftInset - rightInset - leftMargin;
if(firstLine) {
  if(isBullet()){
    if(indent > 0) width -= indent;
  } else {

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

/**
 *
 * @param flag whether text in this paragraph has bullets
 */
public void setBullet(boolean flag) {
  if(isBullet() == flag) return;
  CTTextParagraphProperties pr = _p.isSetPPr() ? _p.getPPr() : _p.addNewPPr();
  if(!flag) {
    pr.addNewBuNone();
  } else {
    pr.addNewBuFont().setTypeface("Arial");
    pr.addNewBuChar().setChar("\u2022");
  }
}

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

if(isBullet() && !emptyParagraph) {
  String buCharacter = getBulletCharacter();
  String buFont = getBulletFont();

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

boolean isBullet = p.isBullet();
if(isBullet != isBullet()){
  setBullet(isBullet);
  if(isBullet) {

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

boolean isBullet = other.isBullet();
if(isBullet != isBullet()){
  setBullet(isBullet);
  if(isBullet) {

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

/**
 *
 * @param flag whether text in this paragraph has bullets
 */
public void setBullet(boolean flag) {
  if(isBullet() == flag) return;
  CTTextParagraphProperties pr = _p.isSetPPr() ? _p.getPPr() : _p.addNewPPr();
  if(flag) {
    pr.addNewBuFont().setTypeface("Arial");
    pr.addNewBuChar().setChar("\u2022");
  } else {
    if (pr.isSetBuFont()) pr.unsetBuFont();
    if (pr.isSetBuChar()) pr.unsetBuChar();
    if (pr.isSetBuAutoNum()) pr.unsetBuAutoNum();
    if (pr.isSetBuBlip()) pr.unsetBuBlip();
    if (pr.isSetBuClr()) pr.unsetBuClr();
    if (pr.isSetBuClrTx()) pr.unsetBuClrTx();
    if (pr.isSetBuFont()) pr.unsetBuFont();
    if (pr.isSetBuFontTx()) pr.unsetBuFontTx();
    if (pr.isSetBuSzPct()) pr.unsetBuSzPct();
    if (pr.isSetBuSzPts()) pr.unsetBuSzPts();
    if (pr.isSetBuSzTx()) pr.unsetBuSzTx();
    pr.addNewBuNone();
  }
}

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