|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fdda.graphics.ComponentFactory
Interface of the factory that produces graphical components. For different types of graphics, different factories may be used.
Constructor Summary | |
ComponentFactory()
|
Method Summary | |
abstract Container |
createContainer()
Creates a new container. |
abstract GraphicalSystem |
createGraphicalSystem()
Creates a new graphical system. |
abstract Line |
createLine(Node startNode,
Node endNode,
boolean selected,
boolean directed)
Creates a new line |
abstract Message |
createMessage(Line line,
boolean forward)
Creates a new message. |
abstract Node |
createNode(double x,
double y,
boolean selected)
Creates a new node. |
abstract Selection |
getComponentSelection()
Creates a new selection. |
static ComponentFactory |
getInstance()
Returns the concrete component factory. |
static void |
setFactory(ComponentFactory aFactory)
Sets the factory that shall be used. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ComponentFactory()
Method Detail |
public static final void setFactory(ComponentFactory aFactory)
aFactory
- the factorypublic static final ComponentFactory getInstance()
public abstract Node createNode(double x, double y, boolean selected)
x
- the x coordinate of the center point of the nodey
- the y coordinate of the center point of the nodeselected
- whether the node shall be selected
public abstract Line createLine(Node startNode, Node endNode, boolean selected, boolean directed)
startNode
- the start node for the lineendNode
- the end node for the lineselected
- whether the line shall be selecteddirected
- whether the line shall be directed
public abstract Container createContainer()
public abstract Message createMessage(Line line, boolean forward)
line
- the line which transports the messageforward
- whether the message runs in the designated direction of the
line
public abstract Selection getComponentSelection()
public abstract GraphicalSystem createGraphicalSystem()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |