Class InstructionViewer
java.lang.Object
com.aparapi.internal.tool.InstructionViewer
- All Implemented Interfaces:
Config.InstructionListener
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classclassstatic classprivate static classprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int(package private) Polygon(package private) ClassModelprivate final JPanel(package private) Instructionstatic final intprivate booleanstatic InstructionViewer.DoorBellprivate InstructionViewer.XYstatic final int(package private) Instructionstatic final intstatic final intstatic final intprivate final Map<Instruction, InstructionViewer.InstructionView> private Graphics2Dprivate BufferedImageprivate Dimensionprivate final Strokeprivate final Colorprivate final Strokeprivate final Strokeprivate final Colorstatic final intprivate final InstructionViewer.Viewstatic 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) (package private) doubleflatPlace(Graphics2D _g, InstructionViewer.InstructionView _instructionView, double _x, double _y) (package private) voidflatRender(Graphics2D _g, InstructionViewer.InstructionView _instructionView) (package private) doublefoldPlace(Graphics2D _g, InstructionViewer.InstructionView _instructionView, double _x, double _y, boolean _dim) (package private) voidfoldRender(Graphics2D _g, InstructionViewer.InstructionView _instructionView) (package private) InstructionViewer.InstructionViewgetInstructionView(Instruction _instruction) 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:
-
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:
showAndTellin interfaceConfig.InstructionListener
-
main
public static void main(String[] _args) throws ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException, AparapiException
-