|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This is the interface nodes that wish to be displayed must implement. The reason we use enum of various colors and shapes, rather than let the node draw itself is so that we can avoid forcing nodes to import gui
| Field Summary | |
static int |
BLACK
|
static int |
BLUE
|
static int |
GREEN
|
static int |
MAGENTA
|
static int |
ORANGE
|
static int |
RED
|
static int |
SHAPE_CIRCLE
|
static int |
SHAPE_DEFAULT
|
static int |
SHAPE_DIAMOND
|
static int |
SHAPE_HOLLOW_DIAMOND
|
static int |
SHAPE_OCTAGON
|
static int |
SHAPE_SQUARE
|
static int |
SHAPE_TRIANGLE
|
static int |
WHITE
|
static int |
YELLOW
|
| Method Summary | |
java.util.Vector |
getChildren(int mode)
Returns all the children of the node |
int |
getColor(int mode)
Returns one of the above color enum telling the panel how to display the node in the gui |
int |
getLevel()
Returns the level of a node |
ViceroyPeer |
getLookupAnswer(Resource lookedUp)
Gets the viceroy peer who is supposed to be responsible for the lookedup value |
MessagePath |
getLookupPath(Resource lookedUp)
Gets the path that the lookup search has gone through |
int |
getShape(int mode)
Returns one of the above SHAPE_ enum telling the panel how to display the node in the gui |
HashValue |
hashValue()
Calculates the hash value. |
| Field Detail |
public static final int SHAPE_DIAMOND
public static final int SHAPE_SQUARE
public static final int SHAPE_CIRCLE
public static final int SHAPE_TRIANGLE
public static final int SHAPE_OCTAGON
public static final int SHAPE_HOLLOW_DIAMOND
public static final int SHAPE_DEFAULT
public static final int RED
public static final int GREEN
public static final int BLUE
public static final int WHITE
public static final int BLACK
public static final int YELLOW
public static final int MAGENTA
public static final int ORANGE
| Method Detail |
public java.util.Vector getChildren(int mode)
mode - enum indicating what mode of display we are in
(node needs to decide itself which classes to send as children for each possible value)
public int getShape(int mode)
mode - node can use this to change its shape according to the current mode
public int getColor(int mode)
mode - node can use this to change its color according to the current mode
public int getLevel()
public ViceroyPeer getLookupAnswer(Resource lookedUp)
lookedUp - The value which was lookedup
public MessagePath getLookupPath(Resource lookedUp)
lookedUp - the resource lookedup
public HashValue hashValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||