Tabnine Logo
CTCustomGeometry2D.getAvLst
Code IndexAdd Tabnine to your IDE (free)

How to use
getAvLst
method
in
org.openxmlformats.schemas.drawingml.x2006.main.CTCustomGeometry2D

Best Java code snippets using org.openxmlformats.schemas.drawingml.x2006.main.CTCustomGeometry2D.getAvLst (Showing top 11 results out of 315)

origin: org.apache.poi/poi-ooxml

public List<XDDFGeometryGuide> getAdjustValues() {
  if (geometry.isSetAvLst()) {
    return Collections.unmodifiableList(geometry
      .getAvLst()
      .getGdList()
      .stream()
      .map(guide -> new XDDFGeometryGuide(guide))
      .collect(Collectors.toList()));
  } else {
    return Collections.emptyList();
  }
}
origin: org.apache.poi/poi-ooxml

public void removeAdjustValue(int index) {
  if (geometry.isSetAvLst()) {
    geometry.getAvLst().removeGd(index);
  }
}
origin: org.apache.poi/poi-ooxml

public XDDFGeometryGuide getAdjustValue(int index) {
  if (geometry.isSetAvLst()) {
    return new XDDFGeometryGuide(geometry.getAvLst().getGdArray(index));
  } else {
    return null;
  }
}
origin: org.apache.poi/poi-ooxml

public XDDFGeometryGuide insertAdjustValue(int index) {
  if (!geometry.isSetAvLst()) {
    geometry.addNewAvLst();
  }
  return new XDDFGeometryGuide(geometry.getAvLst().insertNewGd(index));
}
origin: org.apache.poi/poi-ooxml

public XDDFGeometryGuide addAdjustValue() {
  if (!geometry.isSetAvLst()) {
    geometry.addNewAvLst();
  }
  return new XDDFGeometryGuide(geometry.getAvLst().addNewGd());
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

public List<XDDFGeometryGuide> getAdjustValues() {
  if (geometry.isSetAvLst()) {
    return Collections.unmodifiableList(geometry
      .getAvLst()
      .getGdList()
      .stream()
      .map(guide -> new XDDFGeometryGuide(guide))
      .collect(Collectors.toList()));
  } else {
    return Collections.emptyList();
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

public void removeAdjustValue(int index) {
  if (geometry.isSetAvLst()) {
    geometry.getAvLst().removeGd(index);
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

public XDDFGeometryGuide getAdjustValue(int index) {
  if (geometry.isSetAvLst()) {
    return new XDDFGeometryGuide(geometry.getAvLst().getGdArray(index));
  } else {
    return null;
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

public XDDFGeometryGuide insertAdjustValue(int index) {
  if (!geometry.isSetAvLst()) {
    geometry.addNewAvLst();
  }
  return new XDDFGeometryGuide(geometry.getAvLst().insertNewGd(index));
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

public XDDFGeometryGuide addAdjustValue() {
  if (!geometry.isSetAvLst()) {
    geometry.addNewAvLst();
  }
  return new XDDFGeometryGuide(geometry.getAvLst().addNewGd());
}
origin: org.openl.rules/org.openl.lib.poi.dev

public CustomGeometry(CTCustomGeometry2D geom) {
  CTGeomGuideList avLst = geom.getAvLst();
  if(avLst != null) for(CTGeomGuide gd : avLst.getGdList()){
    adjusts.add(new AdjustValue(gd));
  }
  CTGeomGuideList gdLst = geom.getGdLst();
  if(gdLst != null) for(CTGeomGuide gd : gdLst.getGdList()){
    guides.add(new Guide(gd));
  }
  CTPath2DList pathLst = geom.getPathLst();
  if(pathLst != null) for(CTPath2D spPath : pathLst.getPathList()){
    paths.add(new Path(spPath));
  }
  if(geom.isSetRect()) {
    CTGeomRect rect = geom.getRect();
    textBounds = new Path();
    textBounds.addCommand(
        new MoveToCommand(rect.getL().toString(), rect.getT().toString()));
    textBounds.addCommand(
        new LineToCommand(rect.getR().toString(), rect.getT().toString()));
    textBounds.addCommand(
        new LineToCommand(rect.getR().toString(), rect.getB().toString()));
    textBounds.addCommand(
        new LineToCommand(rect.getL().toString(), rect.getB().toString()));
    textBounds.addCommand(
        new ClosePathCommand());
  }
}
org.openxmlformats.schemas.drawingml.x2006.mainCTCustomGeometry2DgetAvLst

Popular methods of CTCustomGeometry2D

  • addNewAhLst
  • addNewAvLst
  • addNewCxnLst
  • addNewGdLst
  • addNewPathLst
  • addNewRect
  • getGdLst
  • getPathLst
  • getRect
  • isSetRect
  • getAhLst
  • getCxnLst
  • getAhLst,
  • getCxnLst,
  • isSetAhLst,
  • isSetAvLst,
  • isSetCxnLst,
  • isSetGdLst,
  • newXMLStreamReader,
  • setRect,
  • unsetRect

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setRequestProperty (URLConnection)
  • getApplicationContext (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • JFileChooser (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now