public class SegmentGraphVE extends java.lang.Object implements BuildPaintInstructor, PickListener
Modifier and Type | Field and Description |
---|---|
(package private) static java.lang.String[] |
actionNames |
(package private) boolean |
antialias |
static int |
DELETE |
static int |
EDIT |
(package private) SegmentGraph |
graph |
(package private) boolean |
modifiable |
static int |
MOVE |
static int |
PATH |
(package private) double |
pressRadius |
(package private) double |
pressX |
(package private) double |
pressY |
(package private) boolean |
selectable |
(package private) int |
selectAction |
(package private) SegmentGraphPoint |
sgp1 |
(package private) SegmentGraphPoint |
sgp2 |
static int |
TRACE |
static int |
TREE |
static int |
VIEW |
Constructor and Description |
---|
SegmentGraphVE() |
Modifier and Type | Method and Description |
---|---|
boolean |
antialias() |
void |
backgroundPressed(int i,
int x,
int y) |
void |
clearSelect() |
void |
drawSegment(Painter painter,
SegmentGraphPoint sgpa,
SegmentGraphPoint sgpb) |
Box |
getLimitBox() |
Box |
getLimitBox(Painter p) |
void |
instruct(Painter painter,
Builder builder) |
void |
paintProto(SegmentGraphPoint sgp,
Painter painter,
Builder builder) |
void |
paintReal(SegmentGraphPoint sgp,
Painter painter,
Builder builder) |
void |
pickDragged(Pickable pbl,
Position pos,
int button,
int ix,
int iy) |
void |
pickEnteredTrash(Pickable pbl) |
void |
pickHovered(Pickable hoverItem) |
void |
pickLeftTrash(Pickable pbl) |
void |
pickPressed(Pickable pbl,
int button,
int ix,
int iy) |
void |
pickReleased(Pickable pbl,
int button) |
void |
pickTrashed(Pickable pbl) |
void |
setAntialias(boolean b) |
void |
setSegmentGraph(SegmentGraph sg) |
void |
setSelectAction(int act) |
void |
setSelectAction(java.lang.String sin) |
void |
trashPressed() |
private void |
tryHighlight(SegmentGraphPoint sgp) |
SegmentGraph graph
double pressX
double pressY
double pressRadius
boolean selectable
boolean modifiable
boolean antialias
int selectAction
public static final int VIEW
public static final int EDIT
public static final int MOVE
public static final int DELETE
public static final int PATH
public static final int TREE
public static final int TRACE
static final java.lang.String[] actionNames
SegmentGraphPoint sgp1
SegmentGraphPoint sgp2
public void setSegmentGraph(SegmentGraph sg)
public void setAntialias(boolean b)
public void setSelectAction(java.lang.String sin)
public void setSelectAction(int act)
public void clearSelect()
public boolean antialias()
antialias
in interface BuildPaintInstructor
public void instruct(Painter painter, Builder builder)
instruct
in interface BuildPaintInstructor
public void paintProto(SegmentGraphPoint sgp, Painter painter, Builder builder)
public void paintReal(SegmentGraphPoint sgp, Painter painter, Builder builder)
public void drawSegment(Painter painter, SegmentGraphPoint sgpa, SegmentGraphPoint sgpb)
public void backgroundPressed(int i, int x, int y)
backgroundPressed
in interface PickListener
public void pickPressed(Pickable pbl, int button, int ix, int iy)
pickPressed
in interface PickListener
public void pickDragged(Pickable pbl, Position pos, int button, int ix, int iy)
pickDragged
in interface PickListener
public void pickReleased(Pickable pbl, int button)
pickReleased
in interface PickListener
private void tryHighlight(SegmentGraphPoint sgp)
public void pickEnteredTrash(Pickable pbl)
pickEnteredTrash
in interface PickListener
public void pickLeftTrash(Pickable pbl)
pickLeftTrash
in interface PickListener
public void pickTrashed(Pickable pbl)
pickTrashed
in interface PickListener
public void trashPressed()
trashPressed
in interface PickListener
public void pickHovered(Pickable hoverItem)
pickHovered
in interface PickListener
public Box getLimitBox()
public Box getLimitBox(Painter p)
getLimitBox
in interface BuildPaintInstructor
Copyright © 2013. All Rights Reserved.