Package com.scroogexhtml.rtf
Class ColorTable
java.lang.Object
com.scroogexhtml.rtf.ColorTable
- All Implemented Interfaces:
Serializable
A class which represents the RTF color table.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
blue
public int blue -
green
public int green -
red
public int red -
hasColorTableEntry
public boolean hasColorTableEntry
-
-
Constructor Details
-
ColorTable
public ColorTable()
-
-
Method Details
-
get
Get the color at the specified color table index.- Parameters:
index
- color table index- Returns:
- color
-
isEmpty
public boolean isEmpty()Returns true if there are no colors in the table.- Returns:
- true if there are no colors in the table.
-
add
Add the color to the table.- Parameters:
color
- color code.
-
size
public int size()
-