at.spardat.xma.mdl.tree
Class NodeColor
java.lang.Object
at.spardat.xma.mdl.tree.NodeColor
- All Implemented Interfaces:
- java.lang.Cloneable
- public class NodeColor
- extends java.lang.Object
- implements java.lang.Cloneable
Used to define the color of a TreeNode.
|
Constructor Summary |
NodeColor(int red,
int green,
int blue)
Constructor |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
NodeColor
public NodeColor(int red,
int green,
int blue)
- Constructor
- Parameters:
red - intensity of red color (0..255)green - intensity of green color (0..255)blue - intensity of blue color (0..255)
getBlue
public int getBlue()
- Returns:
- Returns the blue value.
getGreen
public int getGreen()
- Returns:
- Returns the green value.
getRed
public int getRed()
- Returns:
- Returns the red value
equals
public boolean equals(java.lang.Object obj)
- See Also:
Object.equals(java.lang.Object)
hashCode
public int hashCode()
- See Also:
Object.hashCode()
clone
public java.lang.Object clone()
- Returns a clone of this;
main
public static void main(java.lang.String[] args)