public class ShapeSet extends AbstractShape implements PropertyChangeListener
Modifier and Type | Field and Description |
---|---|
protected Vector |
shapes |
EPS, EPSSQR, moebiusShapeChangeSupport, propertyChangeSupport, toolList
Constructor and Description |
---|
ShapeSet() |
Modifier and Type | Method and Description |
---|---|
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() |
Vector |
getShapes()
Get the Vector of Shapes.
|
Vector |
getTools() |
void |
propertyChange(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) |
addMoebiusShapeChangeListener, addPropertyChangeListener, clone, dontFirePropertyChange, equals, fireMoebiusShapeChange, fireMoebiusShapeChange, firePropertyChange, firePropertyChange, getColor, getFilled, getLabel, getLineWidth, getPickable, getPointOutline, getPointRadius, getShowLabel, getString, isDoFirePropertyChange, isPickable, removeMoebiusShapeChangeListener, removePropertyChangeListener, reset, setColor, setDoFirePropertyChange, setFilled, setLabel, setLineWidth, setPickable, setPointOutline, setPointRadius, setShowLabel
protected Vector shapes
public void add(MoebiusShape aShape)
{de.jtem.moebiusViewer.MoebiusShape}
- public void add(MoebiusShape[] shape)
Shape2D
- []public void clear()
public void draw(MoebiusGraphics G)
draw
in interface MoebiusShape
draw
in class AbstractShape
public int getNumOfShapes()
public Vector getShapes()
public Vector getTools()
getTools
in interface MoebiusShape
getTools
in class AbstractShape
public void propertyChange(PropertyChangeEvent e)
propertyChange
in interface PropertyChangeListener
public boolean remove(MoebiusShape aShape)
{de.jtem.moebiusViewer.MoebiusShape}
- public void remove(MoebiusShape[] shape)
public boolean remove(MoebiusShape aShape, boolean doFirePropertyChange)
public void removeAll()
public void set(int index, MoebiusShape newShape)
public void set(MoebiusShape[] newShapes)