public class NetworkCable extends Edge
Constructor and Description |
---|
NetworkCable(Node n1,
Node n2)
the constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(ItemVisitor visitor)
accept-method for nodevisitor (VisitorPattern).
|
void |
acceptConnectVisitor(ConnectVisitor visitor)
accept-method for connectvisitor (VisitorPattern).
|
void |
markAsSelected(java.awt.Graphics g)
mark the item when it is selected.
|
(package private) void |
setColor(java.awt.Graphics g)
setting color of the Edge.
|
calculateMiddle, deregister, draw, equals, getN1, getN2, hasConnection, hashCode, isConnectedTo, register
contains, containsVaByIdentifier, getBoundary, getPoint, getPropertyBar, getPropertyDraw, getSelected, getSelectedNodes, selectAll, selectMultiple, selectNone, selectOne, selectRect, selectToggle, setBoundary, setPoint, setSelected, updatePosition
void setColor(java.awt.Graphics g)
Edge
public void accept(ItemVisitor visitor)
Item
public void markAsSelected(java.awt.Graphics g)
Item
markAsSelected
in class Item
g
- the Graphic.public void acceptConnectVisitor(ConnectVisitor visitor)
Item
acceptConnectVisitor
in class Item
visitor
- the connectvisitor.