|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fdda.graphics.ComponentFactory | +--fdda.graphics.java2d.Java2dFactory
Implementation of the ComponentFactory for the Java2D graphics.
Constructor Summary | |
Java2dFactory()
Constructor |
Method Summary | |
Container |
createContainer()
Creates a new container. |
GraphicalSystem |
createGraphicalSystem()
Creates a new graphical system. |
Line |
createLine(Node startNode,
Node endNode,
boolean selected,
boolean directed)
Creates a new line |
Line |
createLooseLine(Node startNode,
boolean directed)
Creates a line without an end node. |
Message |
createMessage(Line line,
boolean forward)
Creates a new message. |
Node |
createNode(double x,
double y,
boolean selected)
Creates a new node. |
Selection |
getComponentSelection()
Creates a new selection. |
Methods inherited from class fdda.graphics.ComponentFactory |
getInstance, setFactory |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Java2dFactory()
Method Detail |
public Node createNode(double x, double y, boolean selected)
ComponentFactory
createNode
in class ComponentFactory
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 Line createLine(Node startNode, Node endNode, boolean selected, boolean directed)
ComponentFactory
createLine
in class ComponentFactory
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 Line createLooseLine(Node startNode, boolean directed)
startNode
- the start nodedirected
- whether the line shall be directed
public Container createContainer()
ComponentFactory
createContainer
in class ComponentFactory
public Message createMessage(Line line, boolean forward)
ComponentFactory
createMessage
in class ComponentFactory
line
- the line which transports the messageforward
- whether the message runs in the designated direction of the
line
public Selection getComponentSelection()
ComponentFactory
getComponentSelection
in class ComponentFactory
public GraphicalSystem createGraphicalSystem()
ComponentFactory
createGraphicalSystem
in class ComponentFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |