Package org.apache.poi.xslf.usermodel
Class XSLFColor
- java.lang.Object
-
- org.apache.poi.xslf.usermodel.XSLFColor
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ColorgetColor()ColorStylegetColorStyle()intgetShade()specifies a darker version of its input color.intgetTint()specifies a lighter version of its input color.XmlObjectgetXmlObject()protected voidsetColor(Color color)Sets the solid color
-
-
-
Method Detail
-
getColor
public 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.
-
getColorStyle
public ColorStyle getColorStyle()
-
setColor
@Internal protected void setColor(Color color)
Sets the solid color- Parameters:
color- solid color
-
getShade
public int getShade()
specifies a darker version of its input color. A 10% shade is 10% of the input color combined with 90% black.- Returns:
- the value of the shade specified as a percentage with 0% indicating minimal shade and 100% indicating maximum or -1 if the value is not set
-
getTint
public int getTint()
specifies a lighter version of its input color. A 10% tint is 10% of the input color combined with 90% white.- Returns:
- the value of the tint specified as a percentage with 0% indicating minimal tint and 100% indicating maximum or -1 if the value is not set
-
-