public class IlvMapArcSegment extends Object implements IlvMapSegment
IlvMapArcSegment
is a circular arc defined by
three control points called the start point, the intermediate point
and the end point.Constructor and Description |
---|
IlvMapArcSegment()
Initializes an instance of the class.
|
IlvMapArcSegment(IlvCoordinate start,
IlvCoordinate intermediate,
IlvCoordinate end)
Creates an arc segment that goes through the start, the intermediate,
and end point given as argument.
|
Modifier and Type | Method and Description |
---|---|
Rectangle2D |
getBounds(Rectangle2D result)
Returns the bounds of this
IlvMapSegment |
IlvCoordinate |
getEndPoint()
Returns the end point of the segment.
|
int |
getHorizontalIntersectionCount(IlvCoordinate point)
Returns the number of intersections between an horizontal
half line defined by its right extremity point and the segment.
|
IlvCoordinate |
getIntermediatePoint()
Returns the intermediate point of the segment.
|
IlvCoordinate |
getStartPoint()
Returns the start point of the segment.
|
void |
setEndPoint(IlvCoordinate end)
Sets the end point of the segment.
|
void |
setIntermediatePoint(IlvCoordinate intermediate)
Sets the intermediate point of the segment.
|
void |
setStartPoint(IlvCoordinate start)
Sets the start point of the segment.
|
public IlvMapArcSegment()
public IlvMapArcSegment(IlvCoordinate start, IlvCoordinate intermediate, IlvCoordinate end)
start
- The start point.intermediate
- The intermediate point.end
- The end point.public IlvCoordinate getStartPoint()
getStartPoint
in interface IlvMapSegment
public void setStartPoint(IlvCoordinate start)
setStartPoint
in interface IlvMapSegment
start
- The start point.public IlvCoordinate getEndPoint()
getEndPoint
in interface IlvMapSegment
public void setEndPoint(IlvCoordinate end)
setEndPoint
in interface IlvMapSegment
end
- The end point.public void setIntermediatePoint(IlvCoordinate intermediate)
intermediate
- The intermediate point.public IlvCoordinate getIntermediatePoint()
public int getHorizontalIntersectionCount(IlvCoordinate point)
IlvMapRingInterface
.getHorizontalIntersectionCount
in interface IlvMapSegment
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)
IlvMapSegment
getBounds
in interface IlvMapSegment
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.