Package org.apache.poi.hwmf.record
Class HwmfColorRef
- java.lang.Object
-
- org.apache.poi.hwmf.record.HwmfColorRef
-
- All Implemented Interfaces:
java.lang.Cloneable
public class HwmfColorRef extends java.lang.Object implements java.lang.Cloneable
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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HwmfColorRef
clone()
Creates a new object of the same class and with the same contents as this object.java.awt.Color
getColor()
int
init(LittleEndianInputStream leis)
-
-
-
Method Detail
-
init
public int init(LittleEndianInputStream leis) throws java.io.IOException
- Throws:
java.io.IOException
-
getColor
public java.awt.Color getColor()
-
clone
public HwmfColorRef clone()
Creates a new object of the same class and with the same contents as this object.- Returns:
- a clone of this instance.
- Throws:
java.lang.OutOfMemoryError
- if there is not enough memory.- See Also:
Cloneable
-
-