public class Internet extends NonRoutable
| Modifier and Type | Field and Description |
|---|---|
private ConnectingType |
connectingType
Type of connection.
|
| Constructor and Description |
|---|
Internet(java.awt.Point p,
ConnectingType type)
Constructor.
|
Internet(java.awt.Point p,
ConnectingType type,
VariableAssignment name)
Constructor with name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ItemVisitor visitor)
accept-method for nodevisitor (VisitorPattern).
|
void |
acceptConnectingTypeVisitor(ConnectingTypeVisitor visitor)
Visitor for creating the right connection.
|
void |
acceptConnectVisitor(ConnectVisitor visitor)
accept-method for connectvisitor (VisitorPattern).
|
ConnectingType |
getConnectingType()
normal getter.
|
java.awt.image.BufferedImage |
giveImage()
the Image for the symbol.
|
void |
setConnectingType(ConnectingType connectingType)
normal setter.
|
draw, getName, getObserver, markAsSelected, notifyObserver, registerObserver, removeObserver, setNamecontains, containsVaByIdentifier, getBoundary, getPoint, getPropertyBar, getPropertyDraw, getSelected, getSelectedNodes, selectAll, selectMultiple, selectNone, selectOne, selectRect, selectToggle, setBoundary, setPoint, setSelected, updatePositionprivate ConnectingType connectingType
public Internet(java.awt.Point p,
ConnectingType type)
p - the pointtype - the connecting type.public Internet(java.awt.Point p,
ConnectingType type,
VariableAssignment name)
p - the point.type - the connecting type.name - the name of the internet.public ConnectingType getConnectingType()
public void setConnectingType(ConnectingType connectingType)
connectingType - the new type of connection.public void accept(ItemVisitor visitor)
Itempublic java.awt.image.BufferedImage giveImage()
Nodepublic void acceptConnectingTypeVisitor(ConnectingTypeVisitor visitor)
DeviceacceptConnectingTypeVisitor in class Devicevisitor - the visitor.public void acceptConnectVisitor(ConnectVisitor visitor)
ItemacceptConnectVisitor in class Itemvisitor - the connectvisitor.