|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectza.co.luma.geom.SegmentSet
public class SegmentSet
A SegmentSet is an iterable collection of Segments.
Constructor Summary | |
---|---|
SegmentSet()
Creates a new empty SegmentSet. |
Method Summary | |
---|---|
boolean |
add(Segment segment)
Adds a new Segment to this SegementSet. |
boolean |
addAll(java.util.Collection<? extends Segment> c)
Adss all the Segments in the given collection to this SegmentSet. |
boolean |
addAll(SegmentSet set)
Add all the segments in the given SegmentSet to this SegmentSet. |
void |
clear()
Removes all Segments from this SegmentSet. |
java.util.Iterator<Segment> |
iterator()
Returns an ierator for this SegmentSet. |
boolean |
remove(java.lang.Object segment)
Removes a Segment from this SegmentSet. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SegmentSet()
Method Detail |
---|
public boolean addAll(java.util.Collection<? extends Segment> c)
public boolean addAll(SegmentSet set)
public boolean add(Segment segment)
segment
- The segment to add
public void clear()
public java.util.Iterator<Segment> iterator()
iterator
in interface java.lang.Iterable<Segment>
public boolean remove(java.lang.Object segment)
segment
- The segment to remove.
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |