ilog.views.maps.graphic
Class IlvGeodeticPathComputation.PointVector

java.lang.Object
  extended by ilog.views.maps.graphic.IlvGeodeticPathComputation.PointVector
Enclosing class:
IlvGeodeticPathComputation

public static class IlvGeodeticPathComputation.PointVector
extends Object

Stores an array of points that possibly contains null values for interruptions. It is is possible to transform this array into a Shape or PointArray instance.

Since:
JViews 7.5

Constructor Summary
IlvGeodeticPathComputation.PointVector()
          Creates a new PointVector instance.
 
Method Summary
 void addPoint(float x, float y)
          Adds a point to the vector
 void addPoint(IlvPoint current)
          Add a point or null to the vector.
 void append(IlvGeodeticPathComputation.PointVector append)
          Adds a complete vector.
 IlvPoint getPoint(int idx)
          Retrieves a point.
 int getPointCount()
          Returns the number of points and interruptions in the vector.
 IlvPointArray[] makeArrays(boolean close)
          Creates a point array for each uninterrupted point sequence.
 GeneralPath makeShape()
          Creates a general path composed of MOVETO and LINETO.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvGeodeticPathComputation.PointVector

public IlvGeodeticPathComputation.PointVector()
Creates a new PointVector instance.

Method Detail

addPoint

public void addPoint(IlvPoint current)
Add a point or null to the vector.

Parameters:
current - The point to add.

addPoint

public void addPoint(float x,
                     float y)
Adds a point to the vector

Parameters:
x - The manager x coordinate of point.
y - The manager y coordinate of point.

append

public void append(IlvGeodeticPathComputation.PointVector append)
Adds a complete vector.

Parameters:
append - The vector to append.

getPointCount

public int getPointCount()
Returns the number of points and interruptions in the vector.

Returns:
The number of points and interruptions in the vector.

getPoint

public IlvPoint getPoint(int idx)
Retrieves a point.

Parameters:
idx - The index of the point to retrieve.
Returns:
The point at idx or null.

makeShape

public GeneralPath makeShape()
Creates a general path composed of MOVETO and LINETO.

Returns:
A newly created path.

makeArrays

public IlvPointArray[] makeArrays(boolean close)
Creates a point array for each uninterrupted point sequence.

Parameters:
close - Set to true for a point to be added to each point array to close the shape.
Returns:
A newly created IlvPointArray instance.


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