Class Color

java.lang.Object
kieker.tools.trace.analysis.filter.visualization.graph.Color

public class Color
extends java.lang.Object
(RGB-based) Color implementation for the visualization package.
Since:
1.6
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static Color BLACK
    The predefined color black.
    static Color BLUE
    The predefined color blue.
    static Color GRAY
    The predefined color gray.
    static Color GREEN
    The predefined color green.
    static Color RED
    The predefined color red.
    static Color WHITE
    The predefined color white.
  • Constructor Summary

    Constructors 
    Constructor Description
    Color​(byte red, byte green, byte blue)
    Creates a new color from the given values.
    Color​(int rgb)
    Creates a new color with the given RGB value.
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object other)  
    int getRGB()
    Returns this color's RGB value as an int.
    int hashCode()  

    Methods inherited from class java.lang.Object

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

    • BLACK

      public static final Color BLACK
      The predefined color black.
    • RED

      public static final Color RED
      The predefined color red.
    • GREEN

      public static final Color GREEN
      The predefined color green.
    • BLUE

      public static final Color BLUE
      The predefined color blue.
    • GRAY

      public static final Color GRAY
      The predefined color gray.
    • WHITE

      public static final Color WHITE
      The predefined color white.
  • Constructor Details

    • Color

      public Color​(byte red, byte green, byte blue)
      Creates a new color from the given values.
      Parameters:
      red - The color's red value
      green - The color's green value
      blue - The color's blue value
    • Color

      public Color​(int rgb)
      Creates a new color with the given RGB value.
      Parameters:
      rgb - The RGB value of the new color (see getRGB() for more information)
  • Method Details

    • getRGB

      public int getRGB()
      Returns this color's RGB value as an int. The blue value is stored in (the least significant) byte 0, green in byte 1, and red in byte 2.
      Returns:
      See above
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • equals

      public boolean equals​(java.lang.Object other)
      Overrides:
      equals in class java.lang.Object