Package com.aparapi.internal.tool
Class InstructionViewer
java.lang.Object
com.aparapi.internal.tool.InstructionViewer
- All Implemented Interfaces:
Config.InstructionListener
public class InstructionViewer extends Object implements Config.InstructionListener
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InstructionViewer.DoorBell
static class
InstructionViewer.Form<T extends InstructionViewer.Form.Template>
class
InstructionViewer.InstructionView
static class
InstructionViewer.Options
-
Field Summary
Fields Modifier and Type Field Description static int
ARROWGAP
Polygon
arrowHeadOut
InstructionViewer.Options
config
static int
CURVEBOW
static InstructionViewer.DoorBell
doorbell
static int
EDGEGAP
static int
HGAP
static int
HGAPROOT
static int
HMARGIN
static int
VGAP
static int
VMARGIN
-
Constructor Summary
Constructors Constructor Description InstructionViewer()
InstructionViewer(Color _background, String _name)
-
Method Summary
Modifier and Type Method Description void
dirty()
void
draw(Graphics _g)
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)
Component
getContainer()
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
main(String[] _args)
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:
- Constant Field Values
-
HMARGIN
public static final int HMARGIN- See Also:
- Constant Field Values
-
HGAPROOT
public static final int HGAPROOT- See Also:
- Constant Field Values
-
HGAP
public static final int HGAP- See Also:
- Constant Field Values
-
VGAP
public static final int VGAP- See Also:
- Constant Field Values
-
ARROWGAP
public static final int ARROWGAP- See Also:
- Constant Field Values
-
EDGEGAP
public static final int EDGEGAP- See Also:
- Constant Field Values
-
CURVEBOW
public static final int CURVEBOW- See Also:
- Constant Field Values
-
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
-