Class Survey

java.lang.Object
  |
  +--Symbol
        |
        +--Survey
All Implemented Interfaces:
Element, java.io.Serializable

public class Survey
extends Symbol
implements Element

See Also:
Serialized Form

Field Summary
(package private)  java.util.Hashtable dict
           
(package private)  Survey next
           
(package private)  Survey old
           
private static long serialVersionUID
           
(package private)  java.util.Vector shotlist
           
(package private)  java.util.TreeSet shots
           
static Size shotsize
           
(package private)  java.util.Vector stationlist
           
(package private)  java.util.TreeSet stations
           
 
Fields inherited from class Symbol
makenames, name, namefield
 
Constructor Summary
Survey()
           
Survey(java.lang.String name, Survey older)
           
 
Method Summary
(package private)  void addShot(Line s)
           
(package private)  Vertex addStation(Vertex v, Survey undo)
           
 void draw(java.awt.Graphics g, java.awt.geom.AffineTransform trans)
           
 java.awt.geom.Rectangle2D getBounds(java.awt.geom.AffineTransform trans)
           
 java.lang.String getName()
           
 Vertex getStation(Vertex old)
           
 Symbol importSym(Carto dest, Carto source)
          Called when this Symbol is moved to a new Carto file.
Some Symbols hold references to parts of the old file.
static Survey open(Survey older)
           
 void paint(View view)
           
 void purge(Carto user)
           
private  void readObject(java.io.ObjectInputStream stream)
          Reads Symbol from a stream.
(package private)  void redo()
           
 int shotnum()
           
(package private)  void undo()
           
 void update(java.io.File file)
           
 int vertexnum()
           
 
Methods inherited from class Symbol
abandonPropertyEdit, acceptPropertyEdit, checkName, editProperties, endDrag, getLevel, getNew, getPropertyEdit, prepareForSurveyUpdate, recursiveDelete, selectProbe, setName, showSelected, stripSurveys, toString, useSurveyUpdate, valid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface Element
setName
 

Field Detail

serialVersionUID

private static final long serialVersionUID

stationlist

java.util.Vector stationlist

dict

java.util.Hashtable dict

shotlist

java.util.Vector shotlist

stations

java.util.TreeSet stations

shots

java.util.TreeSet shots

old

Survey old

next

Survey next

shotsize

public static Size shotsize
Constructor Detail

Survey

public Survey()

Survey

public Survey(java.lang.String name,
              Survey older)
Method Detail

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

open

public static Survey open(Survey older)

importSym

public Symbol importSym(Carto dest,
                        Carto source)
Description copied from class: Symbol
Called when this Symbol is moved to a new Carto file.
Some Symbols hold references to parts of the old file. Get rid of them, and replace them with what they should be int the new context.

Overrides:
importSym in class Symbol

purge

public void purge(Carto user)

update

public void update(java.io.File file)
            throws java.io.IOException
java.io.IOException

addStation

Vertex addStation(Vertex v,
                  Survey undo)

getStation

public Vertex getStation(Vertex old)

undo

void undo()

redo

void redo()

addShot

void addShot(Line s)

getName

public java.lang.String getName()
Specified by:
getName in interface Element
Overrides:
getName in class Symbol

draw

public void draw(java.awt.Graphics g,
                 java.awt.geom.AffineTransform trans)

shotnum

public int shotnum()

vertexnum

public int vertexnum()

getBounds

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

paint

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