moebiusViewer.shape
Class ShapeSet

java.lang.Object
  extended bymoebiusViewer.shape.AbstractShape
      extended bymoebiusViewer.shape.ShapeSet
All Implemented Interfaces:
java.lang.Cloneable, java.util.EventListener, MoebiusShape, java.beans.PropertyChangeListener, java.io.Serializable

public class ShapeSet
extends AbstractShape
implements java.beans.PropertyChangeListener

See Also:
Serialized Form

Field Summary
protected  java.util.Vector shapes
           
 
Fields inherited from class moebiusViewer.shape.AbstractShape
EPS, EPSSQR, propertyChangeSupport, toolList
 
Constructor Summary
ShapeSet()
           
 
Method Summary
 void add(MoebiusShape aShape)
          Adds a shape to the set of shapes.
 void add(MoebiusShape[] shape)
          Adds an array of shapes to the set
 void clear()
          Makes the shapeset empty.
 void draw(MoebiusGraphics G)
           
 int getNumOfShapes()
           
 java.util.Vector getShapes()
          Get the Vector of Shapes.
 java.util.Vector getTools()
           
 void propertyChange(java.beans.PropertyChangeEvent e)
           
 boolean remove(MoebiusShape aShape)
          Removes the shape @param Shape2D from the shape set.
 void remove(MoebiusShape[] shape)
           
 boolean remove(MoebiusShape aShape, boolean doFirePropertyChange)
           
 void removeAll()
           
 void set(int index, MoebiusShape newShape)
           
 void set(MoebiusShape[] newShapes)
           
 
Methods inherited from class moebiusViewer.shape.AbstractShape
addPropertyChangeListener, clone, dontFirePropertyChange, equals, firePropertyChange, firePropertyChange, getColor, getFilled, getLabel, getLineWidth, getPickable, getPointOutline, getPointRadius, getShowLabel, getString, isDoFirePropertyChange, isPickable, removePropertyChangeListener, reset, setColor, setDoFirePropertyChange, setFilled, setLabel, setLineWidth, setPickable, setPointOutline, setPointRadius, setShowLabel
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

shapes

protected java.util.Vector shapes
Constructor Detail

ShapeSet

public ShapeSet()
Method Detail

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent e)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener

getShapes

public java.util.Vector getShapes()
Get the Vector of Shapes.

Returns:
Vector of Shapes.

set

public void set(MoebiusShape[] newShapes)

set

public void set(int index,
                MoebiusShape newShape)

add

public void add(MoebiusShape aShape)
Adds a shape to the set of shapes.


add

public void add(MoebiusShape[] shape)
Adds an array of shapes to the set


remove

public boolean remove(MoebiusShape aShape)
Removes the shape @param Shape2D from the shape set.

Returns:
true if the argument was a component of the shapeset; false otherwise

remove

public boolean remove(MoebiusShape aShape,
                      boolean doFirePropertyChange)

remove

public void remove(MoebiusShape[] shape)

clear

public void clear()
Makes the shapeset empty.


removeAll

public void removeAll()

getNumOfShapes

public int getNumOfShapes()

draw

public void draw(MoebiusGraphics G)
Specified by:
draw in interface MoebiusShape
Overrides:
draw in class AbstractShape

getTools

public java.util.Vector getTools()
Specified by:
getTools in interface MoebiusShape
Overrides:
getTools in class AbstractShape