Class FlexibleColor

  • All Implemented Interfaces:
    java.awt.Paint, java.awt.Transparency, java.io.Serializable

    public class FlexibleColor
    extends java.awt.Color
    See Also:
    Serialized Form
    • Field Summary

      • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.Color brighter​(int add)  
      java.awt.Color darker​(int subtract)  
      • Methods inherited from class java.awt.Color

        brighter, createContext, darker, decode, equals, getAlpha, getBlue, getColor, getColor, getColor, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getHSBColor, getRed, getRGB, getRGBColorComponents, getRGBComponents, getTransparency, hashCode, HSBtoRGB, RGBtoHSB, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • FlexibleColor

        public FlexibleColor​(int r,
                             int g,
                             int b)
      • FlexibleColor

        public FlexibleColor​(int r,
                             int g,
                             int b,
                             int a)
      • FlexibleColor

        public FlexibleColor​(int rgb)
      • FlexibleColor

        public FlexibleColor​(int rgba,
                             boolean hasalpha)
      • FlexibleColor

        public FlexibleColor​(float r,
                             float g,
                             float b)
      • FlexibleColor

        public FlexibleColor​(float r,
                             float g,
                             float b,
                             float a)
      • FlexibleColor

        public FlexibleColor​(java.awt.color.ColorSpace cspace,
                             float[] components,
                             float alpha)
    • Method Detail

      • brighter

        public java.awt.Color brighter​(int add)
      • darker

        public java.awt.Color darker​(int subtract)