public class InstructionViewer extends Object implements Config.InstructionListener
Modifier and Type | Class and Description |
---|---|
static class |
InstructionViewer.DoorBell |
static class |
InstructionViewer.Form<T extends InstructionViewer.Form.Template> |
class |
InstructionViewer.InstructionView |
static class |
InstructionViewer.Options |
Modifier and Type | Field and 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 and Description |
---|
InstructionViewer() |
InstructionViewer(Color _background,
String _name) |
Modifier and Type | Method and 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) |
public static final int VMARGIN
public static final int HMARGIN
public static final int HGAPROOT
public static final int HGAP
public static final int VGAP
public static final int ARROWGAP
public static final int EDGEGAP
public static final int CURVEBOW
public InstructionViewer.Options config
public Polygon arrowHeadOut
public static InstructionViewer.DoorBell doorbell
public void dirty()
public void draw(Graphics _g)
public Component getContainer()
public void text(Graphics2D _g, String _text, double _x, double _y)
public void text(Graphics2D _g, Color _color, String _text, double _x, double _y)
public void line(Graphics2D _g, Stroke _stroke, double _x1, double _y1, double _x2, double _y2)
public void stroke(Graphics2D _g, Stroke _stroke, Shape _rect)
public void fill(Graphics2D _g, Color _color, Shape _rect)
public void fillStroke(Graphics2D _g, Color _fillColor, Color _strokeColor, Stroke _stroke, Shape _rect)
public void line(Graphics2D _g, double _x1, double _y1, double _x2, double _y2)
public void draw(Graphics2D _g, Shape _rectangle)
public void fill(Graphics2D _g, Shape _rectangle)
public boolean select(double _x, double _y)
public void render(Graphics2D _g)
public void edge(Graphics2D _g, Color _color, InstructionViewer.InstructionView _branch, InstructionViewer.InstructionView _target, String _endLabel, String _startLabel)
public void showAndTell(String message, Instruction head, Instruction _instruction)
showAndTell
in interface Config.InstructionListener
public static void main(String[] _args) throws ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException, AparapiException
Copyright © 2016 Syncleus. All rights reserved.