|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.maps.geometry.IlvMapArcSegment
public class IlvMapArcSegment
This class defines a circular arc segment.
An IlvMapArcSegment is a circular arc defined by
three control points called the start point, the intermediate point
and the end point.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvMapArcSegment()
public IlvMapArcSegment(IlvCoordinate start,
IlvCoordinate intermediate,
IlvCoordinate end)
start - The start point.intermediate - The intermediate point.end - The end point.| Method Detail |
|---|
public IlvCoordinate getStartPoint()
getStartPoint in interface IlvMapSegmentpublic void setStartPoint(IlvCoordinate start)
setStartPoint in interface IlvMapSegmentstart - The start point.public IlvCoordinate getEndPoint()
getEndPoint in interface IlvMapSegmentpublic void setEndPoint(IlvCoordinate end)
setEndPoint in interface IlvMapSegmentend - The end point.public void setIntermediatePoint(IlvCoordinate intermediate)
intermediate - The intermediate point.public IlvCoordinate getIntermediatePoint()
public int getHorizontalIntersectionCount(IlvCoordinate point)
IlvMapRingInterface.
getHorizontalIntersectionCount in interface IlvMapSegmentpoint - 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||