ilog.views.maps.geometry
Interface IlvMapSegment

All Known Implementing Classes:
IlvMapArcSegment, IlvMapArcString, IlvMapBezierSegment, IlvMapBezierString, IlvMapCurveString, IlvMapLinearSegment, IlvMapLineString, IlvMapSegmentString

public interface IlvMapSegment

This class defines a common interface for the geometry elements that describe a connected curve that has a start point and an end point.

Since:
JViews 3.5

Method Summary
 Rectangle2D getBounds(Rectangle2D result)
          Returns the bounds of this IlvMapSegment
 IlvCoordinate getEndPoint()
          Returns the end point of the segment.
 int getHorizontalIntersectionCount(IlvCoordinate c)
          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 the segment.
 void setEndPoint(IlvCoordinate c)
          Sets the end point of the segment.
 void setStartPoint(IlvCoordinate c)
          Sets the start point of the segment.
 

Method Detail

getStartPoint

IlvCoordinate getStartPoint()
Returns the start point of the segment.


getEndPoint

IlvCoordinate getEndPoint()
Returns the end point of the segment.


setStartPoint

void setStartPoint(IlvCoordinate c)
Sets the start point of the segment.

Parameters:
c - The start point of the segment.

setEndPoint

void setEndPoint(IlvCoordinate c)
Sets the end point of the segment.

Parameters:
c - The end point of the segment.

getHorizontalIntersectionCount

int getHorizontalIntersectionCount(IlvCoordinate c)
Returns the number of intersections between an horizontal half line defined by its right extremity point and the segment.

Parameters:
c - The point defining the half line.

getBounds

Rectangle2D getBounds(Rectangle2D result)
Returns the bounds of this IlvMapSegment

Since:
JViews 7.5


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.