Class PointSym

java.lang.Object
  |
  +--Symbol
        |
        +--PointSym
All Implemented Interfaces:
Aligner, AlignmentListener, Element, java.io.Serializable
Direct Known Subclasses:
Anchor

public class PointSym
extends Symbol
implements Aligner

See Also:
Serialized Form

Field Summary
(package private)  java.awt.geom.Point2D dragpoint
           
 ViewTransform position
           
private static long serialVersionUID
           
(package private)  PrefTrans trans
           
(package private)  boolean valid
           
 
Fields inherited from class Symbol
makenames, name, namefield
 
Fields inherited from interface Aligner
absolute, datum, floating
 
Constructor Summary
PointSym()
           
PointSym(java.awt.geom.Point2D pos, View view, java.lang.Object arg)
           
 
Method Summary
 void abandonPropertyEdit()
           
 void acceptPropertyEdit()
           
 void alignmentChanged()
           
 ViewTransform defaultPosition()
           
 void drag(int command, java.awt.geom.Point2D where, View view)
           
 ViewTransform getAlignTransform()
           
 java.awt.geom.Rectangle2D getBounds(java.awt.geom.AffineTransform trans)
           
 int getLevel()
           
 void getPropertyEdit(java.lang.Object[] edits, int slot, java.util.Set sub, Symbol parent)
           
 void paint(View view)
           
(package private)  java.awt.Container pointPropertyEdit()
           
private  void readObject(java.io.ObjectInputStream stream)
          Reads Symbol from a stream.
 boolean selectProbe(java.awt.geom.Point2D where, View view)
           
 void showAlignee(View view)
           
 java.awt.geom.Point2D showAligner(View view)
           
 void showSelected(View view)
           
 void startDrag(int command, java.awt.geom.Point2D where, View view)
           
 
Methods inherited from class Symbol
checkName, editProperties, endDrag, 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

serialVersionUID

private static final long serialVersionUID

valid

boolean valid

position

public ViewTransform position

trans

transient PrefTrans trans

dragpoint

transient java.awt.geom.Point2D dragpoint
Constructor Detail

PointSym

public PointSym()

PointSym

public PointSym(java.awt.geom.Point2D pos,
                View view,
                java.lang.Object arg)
Method Detail

defaultPosition

public ViewTransform defaultPosition()

getAlignTransform

public ViewTransform getAlignTransform()
Specified by:
getAlignTransform in interface Aligner

readObject

private void readObject(java.io.ObjectInputStream stream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Description copied from class: Symbol
Reads Symbol from a stream. We define this method so it will appear in the stacktrace if something goes wrong. It does the default.

java.io.IOException
java.lang.ClassNotFoundException

getLevel

public int getLevel()
Overrides:
getLevel in class Symbol

getPropertyEdit

public void getPropertyEdit(java.lang.Object[] edits,
                            int slot,
                            java.util.Set sub,
                            Symbol parent)
Overrides:
getPropertyEdit in class Symbol

pointPropertyEdit

java.awt.Container pointPropertyEdit()

acceptPropertyEdit

public void acceptPropertyEdit()
Overrides:
acceptPropertyEdit in class Symbol

abandonPropertyEdit

public void abandonPropertyEdit()
Overrides:
abandonPropertyEdit in class Symbol

alignmentChanged

public void alignmentChanged()
Specified by:
alignmentChanged in interface AlignmentListener

selectProbe

public boolean selectProbe(java.awt.geom.Point2D where,
                           View view)
Overrides:
selectProbe in class Symbol

getBounds

public java.awt.geom.Rectangle2D getBounds(java.awt.geom.AffineTransform trans)
Overrides:
getBounds in class Symbol

showSelected

public void showSelected(View view)
Overrides:
showSelected in class Symbol

startDrag

public void startDrag(int command,
                      java.awt.geom.Point2D where,
                      View view)

drag

public void drag(int command,
                 java.awt.geom.Point2D where,
                 View view)

paint

public void paint(View view)
Overrides:
paint in class Symbol

showAlignee

public void showAlignee(View view)
Specified by:
showAlignee in interface AlignmentListener

showAligner

public java.awt.geom.Point2D showAligner(View view)
Specified by:
showAligner in interface Aligner