public class DetailDrawVisitor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.awt.Rectangle |
currentPosition
the current position.
|
private DetailDrawPropertyEntry |
detailProperty
the detail draw property entries.
|
private java.awt.Graphics |
g
the graphics reference.
|
Constructor and Description |
---|
DetailDrawVisitor(java.awt.Rectangle currentPosition,
java.awt.Graphics graphics,
DetailDrawPropertyEntry detailDrawPropertyEntry)
constructor for the detail draw visitor.
|
Modifier and Type | Method and Description |
---|---|
private void |
drawDetail(java.lang.String detailValue)
draw the information on the panel.
|
java.awt.Rectangle |
getCurrentPosition()
getter for currentPosition.
|
DetailDrawPropertyEntry |
getDetailProperty()
getter for detailProperty.
|
java.awt.Graphics |
getG()
getter for graphics.
|
void |
visit(ConnectingType connectingType) |
void |
visit(ConnectingTypeList connectingTypes) |
void |
visit(DetailInputBox inputBox) |
void |
visit(VariableAssignment variableAssignment) |
private final java.awt.Rectangle currentPosition
private final java.awt.Graphics g
private final DetailDrawPropertyEntry detailProperty
public DetailDrawVisitor(java.awt.Rectangle currentPosition, java.awt.Graphics graphics, DetailDrawPropertyEntry detailDrawPropertyEntry)
currentPosition
- the current position.graphics
- the graphics reference.detailDrawPropertyEntry
- the detail draw property entries.public void visit(VariableAssignment variableAssignment)
variableAssignment
- the value to draw.public void visit(ConnectingType connectingType)
connectingType
- the connectingType to draw.public void visit(DetailInputBox inputBox)
inputBox
- the input box to draw the content.public void visit(ConnectingTypeList connectingTypes)
connectingTypes
- the connectingTypes to draw.private void drawDetail(java.lang.String detailValue)
detailValue
- The value should be displayed.public final java.awt.Rectangle getCurrentPosition()
public final java.awt.Graphics getG()
public final DetailDrawPropertyEntry getDetailProperty()