Package org.apache.poi.hwmf.record
Class HwmfColorRef
- java.lang.Object
-
- org.apache.poi.hwmf.record.HwmfColorRef
-
- All Implemented Interfaces:
org.apache.poi.common.Duplicatable
,GenericRecord
public class HwmfColorRef extends java.lang.Object implements org.apache.poi.common.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(java.awt.Color colorRef)
HwmfColorRef(HwmfColorRef other)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HwmfColorRef
copy()
java.awt.Color
getColor()
java.util.Map<java.lang.String,java.util.function.Supplier<?>>
getGenericProperties()
int
init(LittleEndianInputStream leis)
void
setColor(java.awt.Color color)
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
equals, 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(java.awt.Color colorRef)
-
-
Method Detail
-
init
public int init(LittleEndianInputStream leis) throws java.io.IOException
- Throws:
java.io.IOException
-
getColor
public java.awt.Color getColor()
-
setColor
public void setColor(java.awt.Color color)
-
copy
public HwmfColorRef copy()
- Specified by:
copy
in interfaceorg.apache.poi.common.Duplicatable
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getGenericProperties
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
- Specified by:
getGenericProperties
in interfaceGenericRecord
-
-