public static XDDFColor from(byte[] color) { return new XDDFColorRgbBinary(color); }
public static XDDFColor from(PresetColor color) { return new XDDFColorPreset(color); }
public static XDDFColor from(SchemeColor color) { return new XDDFColorSchemeBased(color); }
public XDDFColor getColor() { if (props.isSetHslClr()) { return new XDDFColorHsl(props.getHslClr()); } else if (props.isSetPrstClr()) { return new XDDFColorPreset(props.getPrstClr()); } else if (props.isSetSchemeClr()) { return new XDDFColorSchemeBased(props.getSchemeClr()); } else if (props.isSetScrgbClr()) { return new XDDFColorRgbPercent(props.getScrgbClr()); } else if (props.isSetSrgbClr()) { return new XDDFColorRgbBinary(props.getSrgbClr()); } else if (props.isSetSysClr()) { return new XDDFColorSystemDefined(props.getSysClr()); } return null; }
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; } }
public XDDFFillProperties getFillProperties() { if (props.isSetGradFill()) { return new XDDFGradientFillProperties(props.getGradFill()); } else if (props.isSetNoFill()) { return new XDDFNoFillProperties(props.getNoFill()); } else if (props.isSetPattFill()) { return new XDDFPatternFillProperties(props.getPattFill()); } else if (props.isSetSolidFill()) { return new XDDFSolidFillProperties(props.getSolidFill()); } else { return null; } }
public XDDFLineJoinProperties getLineJoinProperties() { if (props.isSetBevel()) { return new XDDFLineJoinBevelProperties(props.getBevel()); } else if (props.isSetMiter()) { return new XDDFLineJoinMiterProperties(props.getMiter()); } else if (props.isSetRound()) { return new XDDFLineJoinRoundProperties(props.getRound()); } else { return null; } }
public static XDDFColor from(SystemColor color) { return new XDDFColorSystemDefined(color); }
public static XDDFColor from(int red, int green, int blue) { return new XDDFColorRgbPercent(red, green, blue); }
public PenAlignment getPenAlignment() { if (props.isSetAlgn()) { return PenAlignment.valueOf(props.getAlgn()); } else { return null; } }
public LineCap getLineCap() { if (props.isSetCap()) { return LineCap.valueOf(props.getCap()); } else { return null; } }
public XDDFExtensionList getExtensionList() { if (props.isSetExtLst()) { return new XDDFExtensionList(props.getExtLst()); } else { return null; } }
public XDDFRelativeRectangle getTileRectangle() { if (props.isSetTileRect()) { return new XDDFRelativeRectangle(props.getTileRect()); } else { return null; } } public void setTileRectangle(XDDFRelativeRectangle rectangle) {
public XDDFEffectList getEffectList() { if (props.isSetEffectLst()) { return new XDDFEffectList(props.getEffectLst()); } else { return null; } }
public PresetColor getValue() { if (color.isSetVal()) { return PresetColor.valueOf(color.getVal()); } else { return null; } }
public void setTileRectangle(XDDFRelativeRectangle rectangle) { if (rectangle == null) { if (props.isSetTileRect()) { props.unsetTileRect(); } } else { props.setTileRect(rectangle.getXmlObject()); } } }
public void setLineProperties(XDDFLineProperties properties) { if (properties == null) { if (props.isSetLn()) { props.unsetLn(); } } else { props.setLn(properties.getXmlObject()); } }
public void setCustomGeometry2D(XDDFCustomGeometry2D geometry) { if (geometry == null) { if (props.isSetCustGeom()) { props.unsetCustGeom(); } } else { props.setCustGeom(geometry.getXmlObject()); } }
public XDDFColor getColor() { if (stop.isSetHslClr()) { return new XDDFColorHsl(stop.getHslClr()); } else if (stop.isSetPrstClr()) { return new XDDFColorPreset(stop.getPrstClr()); } else if (stop.isSetSchemeClr()) { return new XDDFColorSchemeBased(stop.getSchemeClr()); } else if (stop.isSetScrgbClr()) { return new XDDFColorRgbPercent(stop.getScrgbClr()); } else if (stop.isSetSrgbClr()) { return new XDDFColorRgbBinary(stop.getSrgbClr()); } else if (stop.isSetSysClr()) { return new XDDFColorSystemDefined(stop.getSysClr()); } return null; }
@Internal public static XDDFColor forColorContainer(CTColor container) { if (container.isSetHslClr()) { return new XDDFColorHsl(container.getHslClr(), container); } else if (container.isSetPrstClr()) { return new XDDFColorPreset(container.getPrstClr(), container); } else if (container.isSetSchemeClr()) { return new XDDFColorSchemeBased(container.getSchemeClr(), container); } else if (container.isSetScrgbClr()) { return new XDDFColorRgbPercent(container.getScrgbClr(), container); } else if (container.isSetSrgbClr()) { return new XDDFColorRgbBinary(container.getSrgbClr(), container); } else if (container.isSetSysClr()) { return new XDDFColorSystemDefined(container.getSysClr(), container); } return null; }