Package org.apache.poi.ddf
Class EscherRGBProperty
java.lang.Object
org.apache.poi.ddf.EscherProperty
org.apache.poi.ddf.EscherSimpleProperty
org.apache.poi.ddf.EscherRGBProperty
- All Implemented Interfaces:
GenericRecord
A color property.
-
Constructor Summary
ConstructorsConstructorDescriptionEscherRGBProperty(short propertyNumber, int rgbColor) Create an instance of an escher boolean property.EscherRGBProperty(EscherPropertyTypes propertyType, int rgbColor) Create an instance of an escher boolean property. -
Method Summary
Methods inherited from class org.apache.poi.ddf.EscherSimpleProperty
equals, getGenericProperties, getPropertyValue, hashCode, serializeComplexPart, serializeSimplePartMethods inherited from class org.apache.poi.ddf.EscherProperty
getGenericChildren, getGenericRecordType, getId, getName, getPropertyNumber, getPropertySize, isBlipId, isComplex, toString, toXml
-
Constructor Details
-
EscherRGBProperty
public EscherRGBProperty(short propertyNumber, int rgbColor) Create an instance of an escher boolean property.- Parameters:
propertyNumber- The property number (or id)rgbColor- The 24 bit value of this rgb property
-
EscherRGBProperty
Create an instance of an escher boolean property.- Parameters:
propertyType- one of the defined property typesrgbColor- The 24 bit value of this rgb property
-
-
Method Details
-
getRgbColor
public int getRgbColor()- Returns:
- the rgb color as int value
-
getRed
public byte getRed()- Returns:
- the red part
-
getGreen
public byte getGreen()- Returns:
- the green part
-
getBlue
public byte getBlue()- Returns:
- the blue part
-