Class SegBoundary

java.lang.Object
  |
  +--java.awt.Polygon
        |
        +--SegBoundary
All Implemented Interfaces:
Dragable, java.io.Serializable, java.awt.Shape

public class SegBoundary
extends java.awt.Polygon
implements Dragable

See Also:
Serialized Form

Field Summary
(package private)  java.awt.Graphics draggraphics
           
 SaveablePoint[] mapped
           
protected  int oldx
           
protected  int oldy
           
protected  int select
           
private static long serialVersionUID
           
 
Fields inherited from class java.awt.Polygon
bounds, npoints, xpoints, ypoints
 
Constructor Summary
SegBoundary()
           
 
Method Summary
 boolean contains(double x, double y)
           
 void delete()
           
(package private)  void drawPoint()
           
 void fix()
           
private  double[] getUnit(int i, int offset)
           
 void locate(java.lang.Object what, int x, int y)
           
 void map(Mapping map)
           
 void move(int x, int y)
           
private  void readObject(java.io.ObjectInputStream stream)
           
 boolean select(int x, int y, java.awt.Graphics g)
           
 
Methods inherited from class java.awt.Polygon
addPoint, contains, contains, contains, contains, contains, getBoundingBox, getBounds, getBounds2D, getPathIterator, getPathIterator, inside, intersects, intersects, invalidate, reset, translate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

select

protected transient int select

oldx

protected transient int oldx

oldy

protected transient int oldy

draggraphics

transient java.awt.Graphics draggraphics

mapped

public SaveablePoint[] mapped
Constructor Detail

SegBoundary

public SegBoundary()
Method Detail

readObject

private void readObject(java.io.ObjectInputStream stream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException

getUnit

private double[] getUnit(int i,
                         int offset)

locate

public void locate(java.lang.Object what,
                   int x,
                   int y)
Specified by:
locate in interface Dragable

fix

public void fix()
Specified by:
fix in interface Dragable

map

public void map(Mapping map)

delete

public void delete()
Specified by:
delete in interface Dragable

move

public void move(int x,
                 int y)
Specified by:
move in interface Dragable

drawPoint

void drawPoint()

select

public boolean select(int x,
                      int y,
                      java.awt.Graphics g)
Specified by:
select in interface Dragable

contains

public boolean contains(double x,
                        double y)
Specified by:
contains in interface java.awt.Shape
Overrides:
contains in class java.awt.Polygon