ilog.views.maps.measures
Class IlvMapOrthodromyPath

java.lang.Object
  extended by ilog.views.IlvGraphic
      extended by ilog.views.graphic.IlvGeneralPath
          extended by ilog.views.maps.graphic.IlvMapGeneralPath
              extended by ilog.views.maps.measures.IlvMapOrthodromyPath
All Implemented Interfaces:
IlvPolyPointsInterface, IlvPersistentObject, IlvMapGraphic, Transferable, Serializable

public class IlvMapOrthodromyPath
extends IlvMapGeneralPath

This class displays an orthodromy path between each pair or polygon points.

Since:
JViews 7.5
See Also:
Serialized Form

Field Summary
static String BEARING_PROPERTY
          Name of the bearing property
static String DISTANCE_PROPERTY
          Name of the distance property
static IlvAttributeInfoProperty info
          Property description.
 
Constructor Summary
IlvMapOrthodromyPath(IlvInputStream stream)
          Creates a path from stored data.
IlvMapOrthodromyPath(IlvMapOrthodromyPath source)
          Creates a copy of the source path.
IlvMapOrthodromyPath(Shape shape, IlvAttributeProperty distanceAndBearing)
          Creates a path with the specified shape and properties.
 
Method Summary
 boolean allowsPointInsertion()
          Prevent point insertion
 void applyTransform(IlvTransformer t)
          Make sure shape and distance are updated.
 IlvGraphic copy()
          Copies the objects.
static IlvMapOrthodromyPath createMapOrthodromyPath(IlvManager manager, IlvPoint p1, IlvPoint p2)
          Creates an orthodromy trajectory for this manager
static void fillProperties(IlvGeodeticPathComputation pc, IlvAttributeProperty property)
          Sets the BEARING_PROPERTY and DISTANCE_PROPERTY values of the property with the bearing and distance computed by the .
 IlvPoint getPointAt(int i, IlvTransformer t)
          Return extrema points only.
 int getPointsCardinal()
          Return a fake number of points (2)
 IlvSelection makeSelection()
          Creates the selection object for this IlvGeneralPath instance.
 void movePoint(int index, float x, float y, IlvTransformer t)
          Make sure shape and distance properties are updated.
 
Methods inherited from class ilog.views.maps.graphic.IlvMapGeneralPath
copy, draw, getFillPaint, getStroke, getStrokePaint, getStrokeWidth, getStyle, isFillOn, isPaintAbsolute, isPaintZoomed, isStrokeOn, makeGeometry, setFillOn, setFillPaint, setPaintAbsolute, setPaintZoomed, setStroke, setStrokeOn, setStrokePaint, setStrokeWidth, setStyle, write
 
Methods inherited from class ilog.views.graphic.IlvGeneralPath
adaptPaint, allowsPointMove, allowsPointRemoval, boundingBox, calcBoundingBox, contains, getAlpha, getClip, getIntersectionWithOutline, getMaximumStrokeWidth, getShape, getShapeBounds, getTransformer, insertPoint, isContainsWhenNotFilled, isMovePointAllowed, isPointEditionAllowed, isTransformedShapeMode, moveResize, pointsInBBox, removePoint, resize, setAlpha, setBackground, setClip, setContainsWhenNotFilled, setForeground, setInternalShape, setMaximumStrokeWidth, setMovePointAllowed, setPointEditionAllowed, setShape, setShapeBounds, setTransformedShapeMode, setTransformer
 
Methods inherited from class ilog.views.IlvGraphic
addActionListener, addNamedPropertyListener, boundingBox, getAndAssociateObjectInteractor, getCenter, getDefaultInteractor, getGraphicBag, GetGraphicObject, getName, getNamedProperty, getObjectInteractor, getPopupMenu, getPopupMenu, getPopupMenuName, getProperty, getToolTipText, getToolTipText, getTopLevelGraphicBag, getTransferData, getTransferDataFlavors, hasProperty, inside, intersects, isDataFlavorSupported, isEditable, isInApplyToObject, isMovable, isPersistent, isSelectable, isVisible, move, move, notifyObjectInteractorToManager, processActionEvent, reDraw, removeActionListener, removeNamedProperty, removeNamedPropertyListener, removeProperty, replaceProperty, rotate, scale, setEditable, setGraphicBag, setInApplyToObject, setMovable, setName, setNamedProperty, setNameImpl, setObjectInteractor, setPopupMenu, setPopupMenuName, setProperty, setSelectable, setToolTipText, setVisible, toString, translate, zoomable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DISTANCE_PROPERTY

public static final String DISTANCE_PROPERTY
Name of the distance property


BEARING_PROPERTY

public static final String BEARING_PROPERTY
Name of the bearing property


info

public static final IlvAttributeInfoProperty info
Property description.

Constructor Detail

IlvMapOrthodromyPath

public IlvMapOrthodromyPath(IlvInputStream stream)
                     throws IlvReadFileException
Creates a path from stored data.

Parameters:
stream - the stream to read from.
Throws:
IlvReadFileException

IlvMapOrthodromyPath

public IlvMapOrthodromyPath(IlvMapOrthodromyPath source)
Creates a copy of the source path.

Parameters:
source - source to copy.

IlvMapOrthodromyPath

public IlvMapOrthodromyPath(Shape shape,
                            IlvAttributeProperty distanceAndBearing)
Creates a path with the specified shape and properties.

Parameters:
shape -
distanceAndBearing -
Method Detail

applyTransform

public void applyTransform(IlvTransformer t)
Make sure shape and distance are updated.

Overrides:
applyTransform in class IlvGeneralPath
Parameters:
t - The transformer to be applied.
See Also:
IlvGeneralPath.applyTransform(ilog.views.IlvTransformer)

copy

public IlvGraphic copy()
Copies the objects.

Overrides:
copy in class IlvMapGeneralPath
Returns:
A new IlvMapOrthodromyPath.
See Also:
IlvGraphic

allowsPointInsertion

public boolean allowsPointInsertion()
Prevent point insertion

Specified by:
allowsPointInsertion in interface IlvPolyPointsInterface
Overrides:
allowsPointInsertion in class IlvGeneralPath
See Also:
IlvGeneralPath.allowsPointInsertion()

getPointsCardinal

public int getPointsCardinal()
Return a fake number of points (2)

Specified by:
getPointsCardinal in interface IlvPolyPointsInterface
Overrides:
getPointsCardinal in class IlvGeneralPath
See Also:
IlvGeneralPath.getPointsCardinal()

getPointAt

public IlvPoint getPointAt(int i,
                           IlvTransformer t)
Return extrema points only.

Specified by:
getPointAt in interface IlvPolyPointsInterface
Overrides:
getPointAt in class IlvGeneralPath
Parameters:
i - The index.
t - The transformer used to draw the object.
See Also:
IlvGeneralPath.getPointAt(int, ilog.views.IlvTransformer)

movePoint

public void movePoint(int index,
                      float x,
                      float y,
                      IlvTransformer t)
Make sure shape and distance properties are updated.

Specified by:
movePoint in interface IlvPolyPointsInterface
Overrides:
movePoint in class IlvGeneralPath
Parameters:
index - The index of the point to be moved.
x - The new x location.
y - The new y location.
t - The transformer used to draw the object. Note that the x, y coordinates are not transformed by the transformer.
See Also:
IlvGeneralPath.movePoint(int, float, float, ilog.views.IlvTransformer)

createMapOrthodromyPath

public static IlvMapOrthodromyPath createMapOrthodromyPath(IlvManager manager,
                                                           IlvPoint p1,
                                                           IlvPoint p2)
Creates an orthodromy trajectory for this manager

Parameters:
manager - manager to add object to
p1 - manager coordinate of point 1
p2 - manager coordinate of point 2
Returns:
the path with its properties set.

makeSelection

public IlvSelection makeSelection()
Creates the selection object for this IlvGeneralPath instance. The default implementation creates an instance of IlvPolyPointsSelection if the object is in allow move point mode. In other cases it returns an instance of IlvReshapeSelection.

Overrides:
makeSelection in class IlvGeneralPath
See Also:
IlvGraphic.makeSelection()

fillProperties

public static void fillProperties(IlvGeodeticPathComputation pc,
                                  IlvAttributeProperty property)
Sets the BEARING_PROPERTY and DISTANCE_PROPERTY values of the property with the bearing and distance computed by the .

Parameters:
pc - path computation previously done.
property - to fill up distance and bearing values.


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