|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--Symbol
|
+--PointSym
|
+--Anchor
A control point on a Curve. Consists of a point and two tangent directions determined by guide points.
| Field Summary | |
(package private) static int |
ALL
Indicates that the anchor as a whole is selected. |
Arrow |
arrow
The arrow head to draw at this point. |
(package private) javax.swing.JComboBox |
arrowfield
|
boolean |
arrowreverse
Reverse the direction of the arrow?. |
(package private) static int |
CONSISTANT
Indicates guide and guidelocal are valid and consistant |
(package private) static int |
GLOBAL
Indicates guide is valid but not guidelocal |
java.awt.geom.Point2D[] |
guide
The two guide points. |
(package private) static int |
GUIDE0
Indictes that the first guide point is selected. |
(package private) static int |
GUIDE1
Indictes that the second guide point is selected. |
java.awt.geom.Point2D[] |
guidelocal
The two guide points in local coords. |
(package private) int |
guidestate
Indicates which form of the guide point is official. |
(package private) boolean |
kink
If true, curve has a kink at this point. |
(package private) static int |
LOCAL
Indicates guidelocal is valid but not guide |
(package private) javax.swing.JCheckBox |
reversebox
|
(package private) int |
selmode
The selection state of this anchor. |
private static long |
serialVersionUID
|
(package private) static int |
SMOOTH
Indicates smooth mode. |
| Fields inherited from class PointSym |
dragpoint, position, trans, valid |
| Fields inherited from class Symbol |
makenames, name, namefield |
| Fields inherited from interface Aligner |
absolute, datum, floating |
| Constructor Summary | |
Anchor(java.awt.geom.Point2D where,
View view,
java.lang.Object arg)
Creates a new anchor at the specified location. |
|
| Method Summary | |
void |
abandonPropertyEdit()
|
void |
acceptPropertyEdit()
|
void |
alignmentChanged()
Take notice of change in position, caused by alignment. |
(package private) java.awt.Container |
anchorPropertyEdit()
|
void |
drag(int command,
java.awt.geom.Point2D where,
View view)
Drag the Anchor. |
void |
endDrag(int comand,
java.awt.geom.Point2D pos,
View view)
Ends drag. |
int |
getLevel()
|
void |
getPropertyEdit(java.lang.Object[] edits,
int slot,
java.util.Set sub,
Symbol parent)
|
void |
guideUpdate()
sets the local and global coords to match. |
void |
paint(View view)
Paint the Anchor. |
private void |
readObject(java.io.ObjectInputStream stream)
Read the anchor and re-constitute its transient variables. |
boolean |
selectProbe(java.awt.geom.Point2D where,
View view)
Determines if a mouse press selects this anchor. |
void |
showSelected(View view)
Draw the drag box of the Anchor as selected. |
void |
startDrag(int command,
java.awt.geom.Point2D where,
View view)
Start dragging this Anchor. |
private void |
writeObject(java.io.ObjectOutputStream stream)
Writes the anchor and the positions of its guide points. |
| Methods inherited from class PointSym |
defaultPosition, getAlignTransform, getBounds, pointPropertyEdit, showAlignee, showAligner |
| Methods inherited from class Symbol |
checkName, editProperties, getName, getNew, importSym, prepareForSurveyUpdate, recursiveDelete, setName, stripSurveys, toString, useSurveyUpdate, valid |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private static final long serialVersionUID
static int SMOOTH
static int ALL
static int GUIDE0
static int GUIDE1
static int GLOBAL
static int LOCAL
static int CONSISTANT
public transient java.awt.geom.Point2D[] guide
public transient java.awt.geom.Point2D[] guidelocal
transient int guidestate
boolean kink
public Arrow arrow
public boolean arrowreverse
int selmode
transient javax.swing.JComboBox arrowfield
transient javax.swing.JCheckBox reversebox
| Constructor Detail |
public Anchor(java.awt.geom.Point2D where,
View view,
java.lang.Object arg)
| Method Detail |
private void readObject(java.io.ObjectInputStream stream)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
private void writeObject(java.io.ObjectOutputStream stream)
throws java.io.IOException
java.io.IOExceptionpublic void alignmentChanged()
alignmentChanged in interface AlignmentListeneralignmentChanged in class PointSympublic void guideUpdate()
public int getLevel()
getLevel in class PointSym
public void getPropertyEdit(java.lang.Object[] edits,
int slot,
java.util.Set sub,
Symbol parent)
getPropertyEdit in class PointSymjava.awt.Container anchorPropertyEdit()
public void acceptPropertyEdit()
acceptPropertyEdit in class PointSympublic void abandonPropertyEdit()
abandonPropertyEdit in class PointSym
public boolean selectProbe(java.awt.geom.Point2D where,
View view)
selectProbe in class PointSym
public void startDrag(int command,
java.awt.geom.Point2D where,
View view)
startDrag in interface DragableSymbolstartDrag in class PointSym
public void drag(int command,
java.awt.geom.Point2D where,
View view)
drag in interface DragableSymboldrag in class PointSym
public void endDrag(int comand,
java.awt.geom.Point2D pos,
View view)
endDrag in interface DragableSymbolendDrag in class Symbolpublic void showSelected(View view)
showSelected in class PointSympublic void paint(View view)
paint in class PointSym
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||