com.lowagie.text.rtf.style
public class RtfColor extends RtfElement implements RtfExtendedElement
Version: $Id: RtfColor.java 2776 2007-05-23 20:01:40Z hallm $
Field Summary | |
---|---|
int | blue
The blue value |
int | colorNumber
The number of the colour in the list of colours |
static byte | COLON
Constant for the end of one color entry |
static byte[] | COLOR_BLUE
Constant for BLUE value |
static byte[] | COLOR_GREEN
Constant for GREEN value |
static byte[] | COLOR_NUMBER
Constant for the number of the colour in the list of colours |
static byte[] | COLOR_RED
Constant for RED value |
int | green
The green value |
int | red
The red value |
Constructor Summary | |
---|---|
protected | RtfColor(RtfDocument doc, int red, int green, int blue, int colorNumber)
Constructor only for use when initializing the RtfColorList
|
RtfColor(RtfDocument doc, RtfColor col)
Constructs a RtfColor as a clone of an existing RtfColor
| |
RtfColor(RtfDocument doc, Color col)
Constructs a RtfColor based on the Color
| |
RtfColor(RtfDocument doc, int red, int green, int blue)
Constructs a RtfColor based on the red/green/blue values
|
Method Summary | |
---|---|
boolean | equals(Object obj)
Tests if this RtfColor is equal to another RtfColor.
|
int | getBlue()
Get the blue value of this RtfColor
|
int | getColorNumber()
Gets the number of this RtfColor in the list of colours
|
int | getGreen()
Get the green value of this RtfColor
|
int | getRed()
Get the red value of this RtfColor
|
int | hashCode()
Returns the hash code of this RtfColor. |
void | setRtfDocument(RtfDocument doc)
Sets the RtfDocument this RtfColor belongs to
|
byte[] | write()
unused |
byte[] | writeBegin()
Writes the beginning of this RtfColor
|
void | writeContent(OutputStream out)
unused |
byte[] | writeDefinition()
Write the definition part of this RtfColor.
|
void | writeDefinition(OutputStream result)
Write the definition part of this RtfColor. |
byte[] | writeEnd()
Unused
|
Parameters: doc The RtfDocument this RtfColor belongs to red The red value to use green The green value to use blue The blue value to use colorNumber The number of the colour in the colour list
Parameters: doc The RtfDocument this RtfColor belongs to col The RtfColor to use as a base
Parameters: doc The RtfDocument this RtfColor belongs to col The Color to base this RtfColor on
Parameters: doc The RtfDocument this RtfColor belongs to red The red value to use green The green value to use blue The blue value to use
Parameters: obj another RtfColor
Returns: True
if red, green and blue values of the two colours match,
false
otherwise.
Returns: The blue value
Returns: Returns the colorNumber.
Returns: The green value
Returns: The red value
Returns: The hash code of this RtfColor
Parameters: doc The RtfDocument to use
Deprecated: replaced by writeContent
unusedReturns: A byte array with the colour start data
Deprecated: replaced by writeDefinition
Write the definition part of this RtfColor.Returns: A byte array with the definition of this colour
Returns: An empty (byte[0]
) byte array