|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdevisor2.foundation.boundary.Boundary
This class represents one Boundary of the Domain. All Boundaries form the
DomainBoundary (see there for details), and every Boundary contains
several Segments.
A Boundary has a natural parametrisation: Every segment has parameter
values from 0 inclusive to 1 exclusive, thus the boundary has parameter
values (or a total length if you prefer that term) from 0 to its number of
segments.
This class provides methods to add and remove Segments from the Boundary,
to add and remove BondaryNodes, and to support copy and paste.
Field Summary | |
protected ControlCenter |
cc
the ControlCenter reference |
java.util.Vector |
segments
the segments itselves |
Constructor Summary | |
Boundary()
Creates a new (empty) boundary |
Method Summary | |
void |
addSegment(Segment s)
adds a segment as last segment to the Boundary |
java.lang.Object |
clone()
clones the Boundary shallowly |
void |
delSegment(Segment s)
deletes the given segment |
int |
getNumber()
|
double |
getParaMax()
|
Segment |
getSegment(int segmentnumber)
returns the segmentnumber-th segment in a boundary |
int |
getSegmentCount()
returns the number of segments in a boundary |
java.util.Vector |
getSegments()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public java.util.Vector segments
protected ControlCenter cc
Constructor Detail |
public Boundary()
Method Detail |
public java.util.Vector getSegments()
public int getSegmentCount()
public int getNumber()
public double getParaMax()
public Segment getSegment(int segmentnumber)
segmentnumber
- segment number from 0 to getSegmentCount()-1
public void addSegment(Segment s)
s
- segment to be insertedpublic void delSegment(Segment s)
public java.lang.Object clone()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |