Package org.apache.poi.hwmf.record
Class HwmfColorRef
- java.lang.Object
-
- org.apache.poi.hwmf.record.HwmfColorRef
-
- All Implemented Interfaces:
Duplicatable,GenericRecord
public class HwmfColorRef extends Object implements Duplicatable, GenericRecord
A 32-bit ColorRef Object that defines the color value. Red (1 byte): An 8-bit unsigned integer that defines the relative intensity of red. Green (1 byte): An 8-bit unsigned integer that defines the relative intensity of green. Blue (1 byte): An 8-bit unsigned integer that defines the relative intensity of blue. Reserved (1 byte): An 8-bit unsigned integer that MUST be 0x00.
-
-
Constructor Summary
Constructors Constructor Description HwmfColorRef()HwmfColorRef(Color colorRef)HwmfColorRef(HwmfColorRef other)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HwmfColorRefcopy()ColorgetColor()Map<String,Supplier<?>>getGenericProperties()intinit(LittleEndianInputStream leis)voidsetColor(Color color)StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericChildren, getGenericRecordType
-
-
-
-
Constructor Detail
-
HwmfColorRef
public HwmfColorRef()
-
HwmfColorRef
public HwmfColorRef(HwmfColorRef other)
-
HwmfColorRef
public HwmfColorRef(Color colorRef)
-
-
Method Detail
-
init
public int init(LittleEndianInputStream leis) throws IOException
- Throws:
IOException
-
getColor
public Color getColor()
-
setColor
public void setColor(Color color)
-
copy
public HwmfColorRef copy()
- Specified by:
copyin interfaceDuplicatable
-
getGenericProperties
public Map<String,Supplier<?>> getGenericProperties()
- Specified by:
getGenericPropertiesin interfaceGenericRecord
-
-