Package com.aparapi.internal.tool
Class InstructionViewer
java.lang.Object
com.aparapi.internal.tool.InstructionViewer
- All Implemented Interfaces:
Config.InstructionListener
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
class
static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static InstructionViewer.DoorBell
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dirty()
void
void
draw
(Graphics2D _g, Shape _rectangle) void
edge
(Graphics2D _g, Color _color, InstructionViewer.InstructionView _branch, InstructionViewer.InstructionView _target, String _endLabel, String _startLabel) void
fill
(Graphics2D _g, Color _color, Shape _rect) void
fill
(Graphics2D _g, Shape _rectangle) void
fillStroke
(Graphics2D _g, Color _fillColor, Color _strokeColor, Stroke _stroke, Shape _rect) void
line
(Graphics2D _g, double _x1, double _y1, double _x2, double _y2) void
line
(Graphics2D _g, Stroke _stroke, double _x1, double _y1, double _x2, double _y2) static void
void
render
(Graphics2D _g) boolean
select
(double _x, double _y) void
showAndTell
(String message, Instruction head, Instruction _instruction) void
stroke
(Graphics2D _g, Stroke _stroke, Shape _rect) void
text
(Graphics2D _g, Color _color, String _text, double _x, double _y) void
text
(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:
showAndTell
in interfaceConfig.InstructionListener
-
main
public static void main(String[] _args) throws ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException, AparapiException
-