public class IlvMapCurveString extends IlvMapSegmentString
IlvMapSegmentString
class supports
sequences of IlvMapSegment
.
The instances of this class can be
rendered by an IlvDefaultFeatureRenderer
or by an
IlvDefaultCurveRenderer
.Constructor and Description |
---|
IlvMapCurveString()
Initializes an instance of
IlvMapCurveString . |
Modifier and Type | Method and Description |
---|---|
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.
|
public IlvMapCurveString()
IlvMapCurveString
.
The created instance has an empty segment list.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 IlvMapSegment
getBounds
in class IlvMapGeometry
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.