|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmocman.util.data.Node<T>
public class Node<T>
Generic Node type It contains 2 dimensional coordinates, a value and a color. It is designed to be shown on an awt from. This class is used later as nodes and edges.
Constructor Summary | |
---|---|
Node()
Default constructor |
|
Node(T val)
Value only constructor |
|
Node(T val,
int x,
int y,
java.awt.Color color)
Full constructor |
Method Summary | |
---|---|
java.awt.Color |
getColor()
Gets the color |
T |
getValue()
Gets the value |
int |
getX()
Gets the X coordinate |
int |
getY()
Gets the Y coordinate |
void |
setColor(java.awt.Color c)
Sets the color |
void |
setValue(T i)
Sets the value |
void |
setX(int i)
Sets the X coordinate |
void |
setY(int i)
Sets the Y coordinate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Node()
public Node(T val)
val
- the valuepublic Node(T val, int x, int y, java.awt.Color color)
val
- the valuex
- the horizontal coordinatey
- the vertical coordinatecolor
- colorMethod Detail |
---|
public int getX()
public int getY()
public void setX(int i)
public void setY(int i)
public T getValue()
public void setValue(T i)
public void setColor(java.awt.Color c)
public java.awt.Color getColor()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |