|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eu.sk.zero.acd.ACD
Main ACD application class.
Constructor Summary | |
ACD()
Constructs the application with the GUI |
Method Summary | |
boolean |
addArea(org.eu.sk.zero.acd.Area a)
Add a new area. |
boolean |
addComponent(org.eu.sk.zero.acd.Component c)
Add a new component. |
void |
addComponents(org.eu.sk.zero.acd.Components c)
Add collection of components. |
boolean |
addEdge(org.eu.sk.zero.acd.Edge e)
Add a new edge. |
boolean |
addNode(org.eu.sk.zero.acd.Node n)
Add a new node. |
static void |
debugPrint(Object s)
Widely used to print debug messages |
org.eu.sk.zero.acd.Area |
findArea(int x,
int y)
Looks for an area on the given position. |
org.eu.sk.zero.acd.Edge |
findEdge(int x,
int y)
Looks for an edge on the given position. |
org.eu.sk.zero.acd.Node |
findNode(int x,
int y)
Looks for a node on the given position. |
void |
fireMethod(org.eu.sk.zero.acd.Component c,
org.eu.sk.zero.acd.Method m)
Launches the given method on the given component. |
void |
flushComponents()
Removes all components. |
Iterator |
getAreasIterator()
Allows to browse all areas in application. |
Iterator |
getAreaTypesIterator()
Allows to browse all types of areas in application. |
org.eu.sk.zero.acd.Component |
getComponent(int id)
Returns a component by given id. |
Iterator |
getComponentsIterator()
Returned Iterator allows browsing all components in application. |
Iterator |
getComponentsIterator(org.eu.sk.zero.acd.ComponentType type)
Returned Iterator allows browsing all components of given type. |
org.eu.sk.zero.acd.ComponentType |
getComponentType(int id)
Returns component type by given id. |
Iterator |
getEdgesIterator()
Allows to browse all egdes in application. |
Iterator |
getEdgeTypesIterator()
Allows to browse all types of edges in application. |
Component |
getGuiComponent()
Returns the top level gui component. |
Iterator |
getModulesIterator()
Allows to browse all modules in application. |
Iterator |
getNodesIterator()
Allows to browse all nodes in application. |
Iterator |
getNodeTypesIterator()
Allows to browse all types of nodes in application. |
void |
loadModule(org.eu.sk.zero.acd.Module m)
Loads a module into the application. |
protected boolean |
loadModule(String s)
Loads a module from a file. |
static void |
main(String[] s)
Constructs an ACD object and loads all given modules. |
void |
redraw()
Repacks the gui. |
void |
removeArea(org.eu.sk.zero.acd.Area a)
Removes an area from application. |
void |
removeComponent(org.eu.sk.zero.acd.Component c)
Remove a component. |
void |
removeEdge(org.eu.sk.zero.acd.Edge e)
Removes an edge from application. |
void |
removeNode(org.eu.sk.zero.acd.Node n)
Removes a node from application. |
void |
repaint()
Repaints the gui. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ACD()
Method Detail |
public void loadModule(org.eu.sk.zero.acd.Module m)
protected boolean loadModule(String s)
s
- class or file namepublic boolean addNode(org.eu.sk.zero.acd.Node n)
public boolean addEdge(org.eu.sk.zero.acd.Edge e)
public boolean addArea(org.eu.sk.zero.acd.Area a)
public boolean addComponent(org.eu.sk.zero.acd.Component c)
public void addComponents(org.eu.sk.zero.acd.Components c)
public void removeNode(org.eu.sk.zero.acd.Node n)
public void removeEdge(org.eu.sk.zero.acd.Edge e)
public void removeArea(org.eu.sk.zero.acd.Area a)
public void removeComponent(org.eu.sk.zero.acd.Component c)
public Iterator getComponentsIterator()
public Iterator getComponentsIterator(org.eu.sk.zero.acd.ComponentType type)
public Iterator getNodesIterator()
public Iterator getEdgesIterator()
public Iterator getAreasIterator()
public org.eu.sk.zero.acd.Node findNode(int x, int y)
public org.eu.sk.zero.acd.Edge findEdge(int x, int y)
public org.eu.sk.zero.acd.Area findArea(int x, int y)
public void fireMethod(org.eu.sk.zero.acd.Component c, org.eu.sk.zero.acd.Method m)
Method
public org.eu.sk.zero.acd.ComponentType getComponentType(int id)
public org.eu.sk.zero.acd.Component getComponent(int id)
public Iterator getNodeTypesIterator()
public Iterator getEdgeTypesIterator()
public Iterator getAreaTypesIterator()
public Iterator getModulesIterator()
public void flushComponents()
public Component getGuiComponent()
public void repaint()
public void redraw()
for a usual method for light-weigth repainting of the gui.
public static void main(String[] s)
public static void debugPrint(Object s)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |