|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jpicedt.graphic.model.NodeConnectionManager
public class NodeConnectionManager
An Element's delegate that can manage node connections with this Element. There one such manager for each Element that is node-able.
Field Summary | |
---|---|
protected Element |
element
|
protected ArrayList<PicNodeConnection> |
nodeConnections
a list of node-connection this element is attached to |
protected String |
nodeName
name of node for pstricks export |
Constructor Summary | |
---|---|
NodeConnectionManager(Element e)
|
Method Summary | |
---|---|
void |
addConnection(PicNodeConnection edge)
|
protected void |
fireChangedUpdate(DrawingEvent.EventType eventType)
Overriden in order to support forwarding to node connections. |
String |
getNodeName()
gets node name. |
boolean |
isNode()
Are we a Node ? |
Iterator<PicNodeConnection> |
iterator()
Returns an iterator over all the node connections |
PicPoint |
nodeConnectionOrigin(double dx,
double dy)
|
PicPoint |
nodeReferencePoint()
|
double |
nodeReferencePointX()
|
double |
nodeReferencePointY()
|
void |
removeAllConnections()
|
void |
removeConnection(PicNodeConnection edge)
|
void |
setNodeName(String name)
sets node name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Element element
protected String nodeName
protected ArrayList<PicNodeConnection> nodeConnections
Constructor Detail |
---|
public NodeConnectionManager(Element e)
Method Detail |
---|
public Iterator<PicNodeConnection> iterator()
public boolean isNode()
public void setNodeName(String name)
name
is null, create a new name.
public String getNodeName()
public void addConnection(PicNodeConnection edge)
public void removeConnection(PicNodeConnection edge)
public void removeAllConnections()
public PicPoint nodeReferencePoint()
public double nodeReferencePointX()
public double nodeReferencePointY()
public PicPoint nodeConnectionOrigin(double dx, double dy)
protected void fireChangedUpdate(DrawingEvent.EventType eventType)
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |