org.apache.poi.xslf.usermodel
Class XSLFColor
java.lang.Object
org.apache.poi.xslf.usermodel.XSLFColor
public class XSLFColor
- extends java.lang.Object
Encapsulates logic to read color definitions from DrawingML and convert them to java.awt.Color
- Author:
- Yegor Kozlov
Constructor Summary |
XSLFColor(org.apache.xmlbeans.XmlObject obj,
XSLFTheme theme,
org.openxmlformats.schemas.drawingml.x2006.main.CTSchemeColor phClr)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XSLFColor
public XSLFColor(org.apache.xmlbeans.XmlObject obj,
XSLFTheme theme,
org.openxmlformats.schemas.drawingml.x2006.main.CTSchemeColor phClr)
getXmlObject
public org.apache.xmlbeans.XmlObject getXmlObject()
getColor
public java.awt.Color getColor()
- Returns:
- the displayed color as a Java Color.
If not color information was found in the supplied xml object then a null is returned.