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 ColorBLACKThe predefined color black.static ColorBLUEThe predefined color blue.static ColorGRAYThe predefined color gray.static ColorGREENThe predefined color green.static ColorREDThe predefined color red.static ColorWHITEThe predefined color white. -
Constructor Summary
-
Method Summary
-
Field Details
-
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 valuegreen- The color's green valueblue- 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 (seegetRGB()for more information)
-
-
Method Details
-
getRGB
public int getRGB()Returns this color's RGB value as anint. 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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)- Overrides:
equalsin classjava.lang.Object
-