Class Section

java.lang.Object
  |
  +--Symbol
        |
        +--Section
All Implemented Interfaces:
java.awt.event.ActionListener, DragableSymbol, Element, java.util.EventListener, java.io.Serializable

public class Section
extends Symbol
implements DragableSymbol, java.awt.event.ActionListener

See Also:
Serialized Form

Field Summary
 PointSym[] anchors
           
 Symbol contents
           
 int direction
           
static java.lang.String DIRFLIP
           
 double end1
           
(package private)  javax.swing.JTextField end1field
           
 double end2
           
(package private)  javax.swing.JTextField end2field
           
static java.lang.String ENDFLIP
           
 Size line1size
           
 LineType line1style
           
 Size line2size
           
 LineType line2style
           
 Size margin
           
(package private)  javax.swing.JComboBox marginfield
           
(package private)  int selmode
           
private static long serialVersionUID
           
(package private)  javax.swing.JComboBox size1field
           
(package private)  javax.swing.JComboBox size2field
           
(package private)  javax.swing.JComboBox style1field
           
(package private)  javax.swing.JComboBox style2field
           
 Size tick
           
(package private)  javax.swing.JComboBox tickfield
           
 
Fields inherited from class Symbol
makenames, name, namefield
 
Constructor Summary
Section()
           
Section(java.awt.geom.Point2D where, View view, java.lang.Object arg)
           
 
Method Summary
 void abandonPropertyEdit()
           
 void acceptPropertyEdit()
           
 void actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void clear()
           
 void drag(int command, java.awt.geom.Point2D where, View view)
           
 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)
           
 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.
 void paint(View view)
           
 boolean selectProbe(java.awt.geom.Point2D pos, 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, prepareForSurveyUpdate, recursiveDelete, setName, 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 DragableSymbol
endDrag
 

Field Detail

serialVersionUID

private static final long serialVersionUID

ENDFLIP

public static java.lang.String ENDFLIP

DIRFLIP

public static java.lang.String DIRFLIP

anchors

public PointSym[] anchors

contents

public Symbol contents

direction

public int direction

end1

public double end1

end2

public double end2

tick

public Size tick

margin

public Size margin

line1size

public Size line1size

line1style

public LineType line1style

line2size

public Size line2size

line2style

public LineType line2style

selmode

transient int selmode

end1field

transient javax.swing.JTextField end1field

end2field

transient javax.swing.JTextField end2field

tickfield

transient javax.swing.JComboBox tickfield

marginfield

transient javax.swing.JComboBox marginfield

size1field

transient javax.swing.JComboBox size1field

size2field

transient javax.swing.JComboBox size2field

style1field

transient javax.swing.JComboBox style1field

style2field

transient javax.swing.JComboBox style2field
Constructor Detail

Section

public Section()

Section

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

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

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

paint

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

selectProbe

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

startDrag

public void startDrag(int command,
                      java.awt.geom.Point2D where,
                      View view)
Specified by:
startDrag in interface DragableSymbol

drag

public void drag(int command,
                 java.awt.geom.Point2D where,
                 View view)
Specified by:
drag in interface DragableSymbol

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

acceptPropertyEdit

public void acceptPropertyEdit()
Overrides:
acceptPropertyEdit in class Symbol

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

abandonPropertyEdit

public void abandonPropertyEdit()
Overrides:
abandonPropertyEdit in class Symbol

clear

void clear()