public class IlvMapLinearSegment extends Object implements IlvMapSegment
Constructor and Description |
---|
IlvMapLinearSegment()
Initializes an instance of the class.
|
IlvMapLinearSegment(IlvCoordinate start,
IlvCoordinate end)
Creates a linear segment by specifying the start
and end point.
|
Modifier and Type | Method and Description |
---|---|
Rectangle2D |
getBounds(Rectangle2D result)
Returns the bounds of this
IlvMapSegment |
IlvCoordinate |
getEndPoint()
Returns the end point of this segment.
|
int |
getHorizontalIntersectionCount(IlvCoordinate p)
Returns the number of intersections between an horizontal
half line defined by its right extremity point and the segment.
|
IlvCoordinate |
getStartPoint()
Returns the start point of this segment.
|
void |
setEndPoint(IlvCoordinate end)
Sets the end point of this segment.
|
void |
setStartPoint(IlvCoordinate start)
Sets the start point of this segment.
|
public IlvMapLinearSegment()
public IlvMapLinearSegment(IlvCoordinate start, IlvCoordinate end)
start
- The start 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 of this segment.public IlvCoordinate getEndPoint()
getEndPoint
in interface IlvMapSegment
public void setEndPoint(IlvCoordinate end)
setEndPoint
in interface IlvMapSegment
end
- The end point of this segment.public int getHorizontalIntersectionCount(IlvCoordinate p)
IlvMapRingInterface
.getHorizontalIntersectionCount
in interface IlvMapSegment
p
- The point at the right extremity of the horizontal
half line.public Rectangle2D getBounds(Rectangle2D result)
IlvMapSegment
getBounds
in interface IlvMapSegment
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.