Class ColorUIResource2

java.lang.Object
java.awt.Color
javax.swing.plaf.ColorUIResource
com.incors.plaf.ColorUIResource2
All Implemented Interfaces:
java.awt.Paint, java.awt.Transparency, java.io.Serializable, javax.swing.plaf.UIResource

public class ColorUIResource2
extends javax.swing.plaf.ColorUIResource
See Also:
Serialized Form
  • Field Summary

    Fields 
    Modifier and Type Field Description
    private java.awt.Color myColor  

    Fields inherited from class java.awt.Color

    black, BLACK, blue, BLUE, cyan, CYAN, DARK_GRAY, darkGray, gray, GRAY, green, GREEN, LIGHT_GRAY, lightGray, magenta, MAGENTA, orange, ORANGE, pink, PINK, red, RED, white, WHITE, yellow, YELLOW

    Fields inherited from interface java.awt.Transparency

    BITMASK, OPAQUE, TRANSLUCENT
  • Constructor Summary

    Constructors 
    Constructor Description
    ColorUIResource2​(float r, float g, float b)  
    ColorUIResource2​(float r, float g, float b, float alpha)  
    ColorUIResource2​(int rgb)  
    ColorUIResource2​(int rgba, boolean hasalpha)  
    ColorUIResource2​(int r, int g, int b)  
    ColorUIResource2​(int r, int g, int b, int a)  
    ColorUIResource2​(java.awt.Color c)  
  • Method Summary

    Modifier and Type Method Description
    java.awt.Color brighter()  
    java.awt.PaintContext createContext​(java.awt.image.ColorModel cm, java.awt.Rectangle r, java.awt.geom.Rectangle2D r2d, java.awt.geom.AffineTransform xform, java.awt.RenderingHints hints)  
    java.awt.Color darker()  
    boolean equals​(java.lang.Object obj)  
    int getAlpha()  
    int getBlue()  
    float[] getColorComponents​(float[] compArray)  
    float[] getColorComponents​(java.awt.color.ColorSpace cspace, float[] compArray)  
    java.awt.color.ColorSpace getColorSpace()  
    float[] getComponents​(float[] compArray)  
    float[] getComponents​(java.awt.color.ColorSpace cspace, float[] compArray)  
    int getGreen()  
    int getRed()  
    int getRGB()  
    float[] getRGBColorComponents​(float[] compArray)  
    float[] getRGBComponents​(float[] compArray)  
    int getTransparency()  
    int hashCode()  
    java.lang.String toString()  

    Methods inherited from class java.awt.Color

    decode, getColor, getColor, getColor, getHSBColor, HSBtoRGB, RGBtoHSB

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • myColor

      private java.awt.Color myColor
  • Constructor Details

  • Method Details

    • getRed

      public int getRed()
      Overrides:
      getRed in class java.awt.Color
    • getGreen

      public int getGreen()
      Overrides:
      getGreen in class java.awt.Color
    • getBlue

      public int getBlue()
      Overrides:
      getBlue in class java.awt.Color
    • getAlpha

      public int getAlpha()
      Overrides:
      getAlpha in class java.awt.Color
    • getRGB

      public int getRGB()
      Overrides:
      getRGB in class java.awt.Color
    • brighter

      public java.awt.Color brighter()
      Overrides:
      brighter in class java.awt.Color
    • darker

      public java.awt.Color darker()
      Overrides:
      darker in class java.awt.Color
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.awt.Color
    • equals

      public boolean equals​(java.lang.Object obj)
      Overrides:
      equals in class java.awt.Color
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.awt.Color
    • getRGBComponents

      public float[] getRGBComponents​(float[] compArray)
      Overrides:
      getRGBComponents in class java.awt.Color
    • getRGBColorComponents

      public float[] getRGBColorComponents​(float[] compArray)
      Overrides:
      getRGBColorComponents in class java.awt.Color
    • getComponents

      public float[] getComponents​(float[] compArray)
      Overrides:
      getComponents in class java.awt.Color
    • getColorComponents

      public float[] getColorComponents​(float[] compArray)
      Overrides:
      getColorComponents in class java.awt.Color
    • getComponents

      public float[] getComponents​(java.awt.color.ColorSpace cspace, float[] compArray)
      Overrides:
      getComponents in class java.awt.Color
    • getColorComponents

      public float[] getColorComponents​(java.awt.color.ColorSpace cspace, float[] compArray)
      Overrides:
      getColorComponents in class java.awt.Color
    • getColorSpace

      public java.awt.color.ColorSpace getColorSpace()
      Overrides:
      getColorSpace in class java.awt.Color
    • createContext

      public java.awt.PaintContext createContext​(java.awt.image.ColorModel cm, java.awt.Rectangle r, java.awt.geom.Rectangle2D r2d, java.awt.geom.AffineTransform xform, java.awt.RenderingHints hints)
      Specified by:
      createContext in interface java.awt.Paint
      Overrides:
      createContext in class java.awt.Color
    • getTransparency

      public int getTransparency()
      Specified by:
      getTransparency in interface java.awt.Transparency
      Overrides:
      getTransparency in class java.awt.Color