Class InstructionViewer
java.lang.Object
com.aparapi.internal.tool.InstructionViewer
- All Implemented Interfaces:
Config.InstructionListener
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classclassstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic InstructionViewer.DoorBellstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddirty()voidvoiddraw(Graphics2D _g, Shape _rectangle) voidedge(Graphics2D _g, Color _color, InstructionViewer.InstructionView _branch, InstructionViewer.InstructionView _target, String _endLabel, String _startLabel) voidfill(Graphics2D _g, Color _color, Shape _rect) voidfill(Graphics2D _g, Shape _rectangle) voidfillStroke(Graphics2D _g, Color _fillColor, Color _strokeColor, Stroke _stroke, Shape _rect) voidline(Graphics2D _g, double _x1, double _y1, double _x2, double _y2) voidline(Graphics2D _g, Stroke _stroke, double _x1, double _y1, double _x2, double _y2) static voidvoidrender(Graphics2D _g) booleanselect(double _x, double _y) voidshowAndTell(String message, Instruction head, Instruction _instruction) voidstroke(Graphics2D _g, Stroke _stroke, Shape _rect) voidtext(Graphics2D _g, Color _color, String _text, double _x, double _y) voidtext(Graphics2D _g, String _text, double _x, double _y)
-
Field Details
-
VMARGIN
public static final int VMARGIN- See Also:
-
HMARGIN
public static final int HMARGIN- See Also:
-
HGAPROOT
public static final int HGAPROOT- See Also:
-
HGAP
public static final int HGAP- See Also:
-
VGAP
public static final int VGAP- See Also:
-
ARROWGAP
public static final int ARROWGAP- See Also:
-
EDGEGAP
public static final int EDGEGAP- See Also:
-
CURVEBOW
public static final int CURVEBOW- See Also:
-
config
-
arrowHeadOut
-
doorbell
-
-
Constructor Details
-
InstructionViewer
-
InstructionViewer
public InstructionViewer()
-
-
Method Details
-
dirty
public void dirty() -
draw
-
getContainer
-
text
-
text
-
line
-
stroke
-
fill
-
fillStroke
public void fillStroke(Graphics2D _g, Color _fillColor, Color _strokeColor, Stroke _stroke, Shape _rect) -
line
-
draw
-
fill
-
select
public boolean select(double _x, double _y) -
render
-
edge
public void edge(Graphics2D _g, Color _color, InstructionViewer.InstructionView _branch, InstructionViewer.InstructionView _target, String _endLabel, String _startLabel) -
showAndTell
- Specified by:
showAndTellin interfaceConfig.InstructionListener
-
main
public static void main(String[] _args) throws ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException, AparapiException
-