|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.maps.IlvMapGeometry
ilog.views.maps.geometry.IlvMapCurve
ilog.views.maps.geometry.IlvMapSegmentString
ilog.views.maps.geometry.IlvMapCurveString
public class IlvMapCurveString
This implementation of the IlvMapSegmentString class supports
sequences of IlvMapSegment.
The instances of this class can be
rendered by an IlvDefaultFeatureRenderer or by an
IlvDefaultCurveRenderer.
| Constructor Summary | |
|---|---|
IlvMapCurveString()
Initializes an instance of IlvMapCurveString. |
|
| Method Summary | |
|---|---|
Rectangle2D |
getBounds(Rectangle2D result)
Returns the bounds of this IlvMapGeometry |
IlvCoordinate |
getEndPoint()
Returns the end point of the last segment, if it exists. |
int |
getHorizontalIntersectionCount(IlvCoordinate point)
Returns the number of intersections between an horizontal half line defined by its right extremity point and the segment. |
IlvMapSegment |
getSegment(int index)
Returns the segment of index index. |
int |
getSegmentCount()
Returns the number of segments contained in this curve string. |
IlvCoordinate |
getStartPoint()
Returns the start point of the first segment, if it exists. |
void |
joinSegment(IlvMapSegment segment)
Joins a segment at the end of the string. |
void |
removeAll()
Removes all the segments in the string. |
void |
setEndPoint(IlvCoordinate end)
Sets the end point of the last segment, if it exists. |
void |
setStartPoint(IlvCoordinate start)
Sets the start point of the first segment, if it exists. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvMapCurveString()
IlvMapCurveString.
The created instance has an empty segment list.
| Method Detail |
|---|
public int getSegmentCount()
public IlvMapSegment getSegment(int index)
index.
index - The index of the segment to be retrieved.
index must
have a value between 0 and
getSegmentCount() - 1.
IlvMapSegment object that should not be
modified by the user. The returned IlvMapSegment is
volatile. This means that it may be modified by the
IlvMapSegmentString itself after
another call to this function, or after any modification.public void removeAll()
public void joinSegment(IlvMapSegment segment)
segment parameter is not copied, this parameter
should not be modified after being joined.
segment - The segment to be joined.public IlvCoordinate getStartPoint()
public IlvCoordinate getEndPoint()
public void setStartPoint(IlvCoordinate start)
start - The start point.public void setEndPoint(IlvCoordinate end)
end - The end point.public int getHorizontalIntersectionCount(IlvCoordinate point)
IlvMapRingInterface.
point - The point at the right extremity of the horizontal
half line.
1 if
the point is on the segment, 2 if the point is
not on the segment. If the point is on the segment where the
tangent is not horizontal, the intersection should not be
counted.public Rectangle2D getBounds(Rectangle2D result)
IlvMapGeometry
getBounds in interface IlvMapSegmentgetBounds in class IlvMapGeometry
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||