moebiusViewer.shape
Class ShapeSet
java.lang.Object
moebiusViewer.shape.AbstractShape
moebiusViewer.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
|
| 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 |
shapes
protected java.util.Vector shapes
ShapeSet
public ShapeSet()
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