Tabnine Logo
CTShapeProperties.isSetSolidFill
Code IndexAdd Tabnine to your IDE (free)

How to use
isSetSolidFill
method
in
org.openxmlformats.schemas.drawingml.x2006.main.CTShapeProperties

Best Java code snippets using org.openxmlformats.schemas.drawingml.x2006.main.CTShapeProperties.isSetSolidFill (Showing top 13 results out of 315)

origin: org.apache.poi/poi-ooxml

@Override
public boolean isSetSolidFill() {
  return props.isSetSolidFill();
}
origin: org.apache.poi/poi-ooxml

@Override
public void setFillColor(int red, int green, int blue) {
  CTShapeProperties props = getShapeProperties();
  CTSolidColorFillProperties fill = props.isSetSolidFill() ? props.getSolidFill() : props.addNewSolidFill();
  CTSRgbColor rgb = CTSRgbColor.Factory.newInstance();
  rgb.setVal(new byte[]{(byte)red, (byte)green, (byte)blue});
  fill.setSrgbClr(rgb);
}
origin: org.apache.poi/poi-ooxml

@Override
public void setNoFill(boolean noFill) {
  CTShapeProperties props = getShapeProperties();
  //unset solid and pattern fills if they are set
  if (props.isSetPattFill()) props.unsetPattFill();
  if (props.isSetSolidFill()) props.unsetSolidFill();
  props.setNoFill(CTNoFillProperties.Factory.newInstance());
}
origin: org.apache.poi/poi-ooxml

public XDDFFillProperties getFillProperties() {
  if (props.isSetGradFill()) {
    return new XDDFGradientFillProperties(props.getGradFill());
  } else if (props.isSetGrpFill()) {
    return new XDDFGroupFillProperties(props.getGrpFill());
  } else if (props.isSetNoFill()) {
    return new XDDFNoFillProperties(props.getNoFill());
  } else if (props.isSetPattFill()) {
    return new XDDFPatternFillProperties(props.getPattFill());
  } else if (props.isSetBlipFill()) {
    return new XDDFPictureFillProperties(props.getBlipFill());
  } else if (props.isSetSolidFill()) {
    return new XDDFSolidFillProperties(props.getSolidFill());
  } else {
    return null;
  }
}
origin: org.apache.poi/poi-ooxml

  props.unsetPattFill();
if (props.isSetSolidFill()) {
  props.unsetSolidFill();
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

@Override
public boolean isSetSolidFill() {
  return props.isSetSolidFill();
}
origin: org.openl.rules/org.openl.lib.poi.dev

/**
 * Sets whether this shape is filled or transparent.
 *
 * @param noFill if true then no fill will be applied to the shape element.
 */
public void setNoFill(boolean noFill) {
  CTShapeProperties props = getShapeProperties();
  //unset solid and pattern fills if they are set
  if (props.isSetPattFill()) props.unsetPattFill();
  if (props.isSetSolidFill()) props.unsetSolidFill();
  props.setNoFill(CTNoFillProperties.Factory.newInstance());
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

@Override
public void setNoFill(boolean noFill) {
  CTShapeProperties props = getShapeProperties();
  //unset solid and pattern fills if they are set
  if (props.isSetPattFill()) props.unsetPattFill();
  if (props.isSetSolidFill()) props.unsetSolidFill();
  props.setNoFill(CTNoFillProperties.Factory.newInstance());
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

@Override
public void setFillColor(int red, int green, int blue) {
  CTShapeProperties props = getShapeProperties();
  CTSolidColorFillProperties fill = props.isSetSolidFill() ? props.getSolidFill() : props.addNewSolidFill();
  CTSRgbColor rgb = CTSRgbColor.Factory.newInstance();
  rgb.setVal(new byte[]{(byte)red, (byte)green, (byte)blue});
  fill.setSrgbClr(rgb);
}
origin: org.openl.rules/org.openl.lib.poi.dev

/**
 * Sets the color used to fill this shape using the solid fill pattern.
 */
public void setFillColor(int red, int green, int blue) {
  CTShapeProperties props = getShapeProperties();
  CTSolidColorFillProperties fill = props.isSetSolidFill() ? props.getSolidFill() : props.addNewSolidFill();
  CTSRgbColor rgb = CTSRgbColor.Factory.newInstance();
  rgb.setVal(new byte[]{(byte)red, (byte)green, (byte)blue});
  fill.setSrgbClr(rgb);
}
origin: org.openl.rules/org.openl.lib.poi.dev

/**
 * Specifies a solid color fill. The shape is filled entirely with the
 * specified color.
 *
 * @param color the solid color fill. The value of <code>null</code> unsets
 *              the solidFIll attribute from the underlying xml
 */
public void setFillColor(Color color) {
  CTShapeProperties spPr = getSpPr();
  if (color == null) {
    if (spPr.isSetSolidFill()) spPr.unsetSolidFill();
    if (!spPr.isSetNoFill()) spPr.addNewNoFill();
  } else {
    if (spPr.isSetNoFill()) spPr.unsetNoFill();
    CTSolidColorFillProperties fill = spPr.isSetSolidFill() ? spPr
        .getSolidFill() : spPr.addNewSolidFill();
    CTSRgbColor rgb = CTSRgbColor.Factory.newInstance();
    rgb.setVal(new byte[]{(byte) color.getRed(),
        (byte) color.getGreen(), (byte) color.getBlue()});
    fill.setSrgbClr(rgb);
    if(fill.isSetHslClr()) fill.unsetHslClr();
    if(fill.isSetPrstClr()) fill.unsetPrstClr();
    if(fill.isSetSchemeClr()) fill.unsetSchemeClr();
    if(fill.isSetScrgbClr()) fill.unsetScrgbClr();
    if(fill.isSetSysClr()) fill.unsetSysClr();
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

public XDDFFillProperties getFillProperties() {
  if (props.isSetGradFill()) {
    return new XDDFGradientFillProperties(props.getGradFill());
  } else if (props.isSetGrpFill()) {
    return new XDDFGroupFillProperties(props.getGrpFill());
  } else if (props.isSetNoFill()) {
    return new XDDFNoFillProperties(props.getNoFill());
  } else if (props.isSetPattFill()) {
    return new XDDFPatternFillProperties(props.getPattFill());
  } else if (props.isSetBlipFill()) {
    return new XDDFPictureFillProperties(props.getBlipFill());
  } else if (props.isSetSolidFill()) {
    return new XDDFSolidFillProperties(props.getSolidFill());
  } else {
    return null;
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

  props.unsetPattFill();
if (props.isSetSolidFill()) {
  props.unsetSolidFill();
org.openxmlformats.schemas.drawingml.x2006.mainCTShapePropertiesisSetSolidFill

Popular methods of CTShapeProperties

  • getXfrm
  • getLn
  • addNewCustGeom
  • addNewLn
  • addNewNoFill
  • addNewPrstGeom
  • addNewSolidFill
  • addNewXfrm
  • getBlipFill
  • getCustGeom
  • getEffectLst
  • getPrstGeom
  • getEffectLst,
  • getPrstGeom,
  • getSolidFill,
  • isSetBlipFill,
  • isSetCustGeom,
  • isSetEffectLst,
  • isSetLn,
  • isSetNoFill,
  • isSetPattFill,
  • isSetPrstGeom

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getResourceAsStream (ClassLoader)
  • notifyDataSetChanged (ArrayAdapter)
  • getExternalFilesDir (Context)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • JList (javax.swing)
  • Top plugins for WebStorm
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