| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ShapeSet2D<T extends Shape2D>
A shape that is composed of several other shapes.
| Field Summary | 
|---|
| Fields inherited from interface math.geom2d.Shape2D | 
|---|
ACCURACY | 
| Method Summary | |
|---|---|
 void | 
add(int index,
    T shape)
Inserts the specified shape at the specified position in this set (optional operation).  | 
 boolean | 
add(T shape)
Appends the specified shape to the end of this set (optional operation).  | 
 void | 
clear()
Removes all the shapes stored in this set.  | 
 boolean | 
contains(T shape)
Returns true if this set contains the shape.  | 
 T | 
get(int index)
Returns the shape at a given position.  | 
 int | 
indexOf(T shape)
Returns the index of the shape in this set.  | 
 T | 
remove(int index)
Removes the shape at the specified position in this set (optional operation).  | 
 boolean | 
remove(T shape)
Removes the first occurrence of the specified element from this list, if it is present.  | 
 int | 
size()
Returns the number of shapes stored in this set.  | 
| Methods inherited from interface math.geom2d.Shape2D | 
|---|
boundingBox, clip, contains, contains, distance, distance, draw, isBounded, isEmpty, transform | 
| Methods inherited from interface math.geom2d.GeometricObject2D | 
|---|
almostEquals | 
| Methods inherited from interface java.lang.Iterable | 
|---|
iterator | 
| Method Detail | 
|---|
boolean add(T shape)
void add(int index,
         T shape)
T get(int index)
index - the position of the shape
boolean remove(T shape)
T remove(int index)
boolean contains(T shape)
int indexOf(T shape)
int size()
void clear()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||