Class ColorTable

java.lang.Object
com.scroogexhtml.rtf.ColorTable
All Implemented Interfaces:
Serializable

public class ColorTable extends Object implements Serializable
A class which represents the RTF color table.
See Also:
  • 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

      public String get(int index)
      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

      public void add(String color)
      Add the color to the table.
      Parameters:
      color - color code.
    • size

      public int size()