public static XDDFColor from(SystemColor color) { return new XDDFColorSystemDefined(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 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; }
public static XDDFColor from(SystemColor color) { return new XDDFColorSystemDefined(color); }
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; }
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; }
@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; }