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, setName
contains, containsVaByIdentifier, getBoundary, getPoint, getPropertyBar, getPropertyDraw, getSelected, getSelectedNodes, selectAll, selectMultiple, selectNone, selectOne, selectRect, selectToggle, setBoundary, setPoint, setSelected, updatePosition
private 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)
Item
public java.awt.image.BufferedImage giveImage()
Node
public void acceptConnectingTypeVisitor(ConnectingTypeVisitor visitor)
Device
acceptConnectingTypeVisitor
in class Device
visitor
- the visitor.public void acceptConnectVisitor(ConnectVisitor visitor)
Item
acceptConnectVisitor
in class Item
visitor
- the connectvisitor.