|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eu.sk.zero.acd.Component | +--org.eu.sk.zero.acd.Node
Node of the security model. Nodes can be connected by edges and can be part of areas. Every node is of a certain type.
NodeType
Field Summary | |
int |
xCoord
Positional coordinate of this component |
int |
yCoord
Positional coordinate of this component |
Fields inherited from class org.eu.sk.zero.acd.Component |
id, type |
Constructor Summary | |
Node(org.eu.sk.zero.acd.ComponentType t,
int x,
int y)
Constructs a new node of the given type at the given position |
Method Summary | |
Collection |
areasCollection()
Currently not implemented. |
Iterator |
areasIterator()
Currently not implemented. |
void |
draw(Graphics g)
Draw this node with the graphics. |
void |
draw(Graphics g,
int prop)
Draw this node with the Graphics. |
Collection |
edgesFromCollection()
Collection of all edges leading from this node. |
Iterator |
edgesFromIterator()
Allows browsing all edges leading from this node |
Collection |
edgesToCollection()
Collection of all edgesFrom leading to this node. |
Iterator |
edgesToIterator()
Allows browsing all edges leading to this node |
String |
getX()
String representation of the X coordinate |
String |
getY()
String representation of the Y coordinate |
Iterator |
nodesConnectedFromIterator(org.eu.sk.zero.acd.EdgeType t)
All nodes which are connected to this node by an edge of certain type |
Iterator |
nodesConnectedToIterator(org.eu.sk.zero.acd.EdgeType t)
All nodes which are connected from this node by an edge of certain type |
Methods inherited from class org.eu.sk.zero.acd.Component |
addValue, deselect, getId, getType, hide, isError, isHidden, isSelected, select, setError, show, toString, value, value, valueIterator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public int xCoord
public int yCoord
Constructor Detail |
public Node(org.eu.sk.zero.acd.ComponentType t, int x, int y)
Method Detail |
public Iterator edgesFromIterator()
public Iterator edgesToIterator()
public Collection edgesFromCollection()
public Collection edgesToCollection()
public Iterator areasIterator()
public Collection areasCollection()
public Iterator nodesConnectedToIterator(org.eu.sk.zero.acd.EdgeType t)
public Iterator nodesConnectedFromIterator(org.eu.sk.zero.acd.EdgeType t)
public String getX()
public String getY()
public void draw(Graphics g, int prop)
prop
- represents the state of this node.NodeType
public void draw(Graphics g)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |