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.
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HwmfColorRef
public HwmfColorRef()
HwmfColorRef
public HwmfColorRef(java.awt.Color colorRef)
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.
- Overrides:
clone
in class java.lang.Object
- Returns:
- a clone of this instance.
- Throws:
java.lang.OutOfMemoryError
- if there is not enough memory.- See Also:
Cloneable
Copyright 2016 The Apache Software Foundation or
its licensors, as applicable.