Class ExtendedColor

java.lang.Object
java.awt.Color
com.gitlab.pdftk_java.com.lowagie.text.pdf.ExtendedColor
All Implemented Interfaces:
Paint, Transparency, Serializable
Direct Known Subclasses:
CMYKColor, GrayColor, PatternColor, ShadingColor, SpotColor

public class ExtendedColor extends Color
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      A serial version UID
      See Also:
    • TYPE_RGB

      public static final int TYPE_RGB
      a type of extended color.
      See Also:
    • TYPE_GRAY

      public static final int TYPE_GRAY
      a type of extended color.
      See Also:
    • TYPE_CMYK

      public static final int TYPE_CMYK
      a type of extended color.
      See Also:
    • TYPE_SEPARATION

      public static final int TYPE_SEPARATION
      a type of extended color.
      See Also:
    • TYPE_PATTERN

      public static final int TYPE_PATTERN
      a type of extended color.
      See Also:
    • TYPE_SHADING

      public static final int TYPE_SHADING
      a type of extended color.
      See Also:
    • type

      protected int type
  • Constructor Details

    • ExtendedColor

      public ExtendedColor(int type)
      Constructs an extended color of a certain type.
      Parameters:
      type -
    • ExtendedColor

      public ExtendedColor(int type, float red, float green, float blue)
      Constructs an extended color of a certain type and a certain color.
      Parameters:
      type -
      red -
      green -
      blue -
  • Method Details

    • getType

      public int getType()
      Gets the type of this color.
      Returns:
      one of the types (see constants)
    • getType

      public static int getType(Color color)
      Gets the type of a given color.
      Parameters:
      color -
      Returns:
      one of the types (see constants)
    • normalize

      static final float normalize(float value)