Package com.aparapi.internal.tool
Class InstructionViewer
java.lang.Object
com.aparapi.internal.tool.InstructionViewer
- All Implemented Interfaces:
Config.InstructionListener
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
class
static class
private static class
private static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
(package private) Polygon
(package private) ClassModel
private final JPanel
(package private) Instruction
static final int
private boolean
static InstructionViewer.DoorBell
private InstructionViewer.XY
static final int
(package private) Instruction
static final int
static final int
static final int
private final Map
<Instruction, InstructionViewer.InstructionView> private Graphics2D
private BufferedImage
private Dimension
private final Stroke
private final Color
private final Stroke
private final Stroke
private final Color
static final int
private final InstructionViewer.View
static final int
-
Constructor Summary
Constructors -
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) (package private) double
flatPlace
(Graphics2D _g, InstructionViewer.InstructionView _instructionView, double _x, double _y) (package private) void
flatRender
(Graphics2D _g, InstructionViewer.InstructionView _instructionView) (package private) double
foldPlace
(Graphics2D _g, InstructionViewer.InstructionView _instructionView, double _x, double _y, boolean _dim) (package private) void
foldRender
(Graphics2D _g, InstructionViewer.InstructionView _instructionView) (package private) InstructionViewer.InstructionView
getInstructionView
(Instruction _instruction) 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:
-
container
-
offscreen
-
offscreensize
-
offgraphics
-
dirty
private boolean dirty -
view
-
dragStart
-
config
-
unselectedColor
-
selectedColor
-
thickStroke
-
thinStroke
-
outlineStroke
-
arrowHeadOut
-
arrowHeadIn
Polygon arrowHeadIn -
locationToInstructionViewMap
-
classModel
ClassModel classModel -
first
-
current
-
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
-
getInstructionView
-
foldPlace
double foldPlace(Graphics2D _g, InstructionViewer.InstructionView _instructionView, double _x, double _y, boolean _dim) -
foldRender
-
flatPlace
double flatPlace(Graphics2D _g, InstructionViewer.InstructionView _instructionView, double _x, double _y) -
flatRender
-
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
-