Class PLColor

java.lang.Object
com.helger.pdflayout.base.PLColor

@Immutable public class PLColor extends Object
A replacement for java.awt.color that is not available on Android.
Since:
7.2.0
Author:
Philip Helger
  • Field Details

    • WHITE

      public static final PLColor WHITE
      The color white. In the default sRGB space.
    • LIGHT_GRAY

      public static final PLColor LIGHT_GRAY
      The color light gray. In the default sRGB space.
    • GRAY

      public static final PLColor GRAY
      The color gray. In the default sRGB space.
    • DARK_GRAY

      public static final PLColor DARK_GRAY
      The color dark gray. In the default sRGB space.
    • BLACK

      public static final PLColor BLACK
      The color black. In the default sRGB space.
    • RED

      public static final PLColor RED
      The color red. In the default sRGB space.
    • PINK

      public static final PLColor PINK
      The color pink. In the default sRGB space.
    • ORANGE

      public static final PLColor ORANGE
      The color orange. In the default sRGB space.
    • YELLOW

      public static final PLColor YELLOW
      The color yellow. In the default sRGB space.
    • GREEN

      public static final PLColor GREEN
      The color green. In the default sRGB space.
    • MAGENTA

      public static final PLColor MAGENTA
      The color magenta. In the default sRGB space.
    • CYAN

      public static final PLColor CYAN
      The color cyan. In the default sRGB space.
    • BLUE

      public static final PLColor BLUE
      The color blue. In the default sRGB space.
  • Constructor Details

    • PLColor

      public PLColor(int r, int g, int b)
  • Method Details

    • getRed

      public int getRed()
    • getGreen

      public int getGreen()
    • getBlue

      public int getBlue()
    • getAsPDColor

      @Nonnull public org.apache.pdfbox.pdmodel.graphics.color.PDColor getAsPDColor()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • gray

      @Nonnull public static PLColor gray(int nPart)