public class IlvMapOrthodromyPath extends IlvMapGeneralPath
Modifier and Type | Field and Description |
---|---|
static String |
BEARING_PROPERTY
Name of the bearing property
|
static String |
DISTANCE_PROPERTY
Name of the distance property
|
static IlvAttributeInfoProperty |
info
Property description.
|
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
allowsPointInsertion()
Prevent point insertion
|
void |
applyTransform(IlvTransformer t)
Make sure shape and distance are updated.
|
IlvGraphic |
copy()
Copies the objects.
|
IlvGraphic |
copy(IlvCoordinateTransformation transform)
Copies the element and applies the specified transformation to its coordinates.
|
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 last path computation. |
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,
double x,
double y,
IlvTransformer t)
Make sure shape and distance properties are updated.
|
draw, getFillPaint, getLineStyle, getStroke, getStrokePaint, getStrokeWidth, getStyle, isFillOn, isPaintAbsolute, isPaintZoomed, isStrokeOn, makeGeometry, setFillOn, setFillPaint, setLineStyle, setPaintAbsolute, setPaintZoomed, setStroke, setStrokeOn, setStrokePaint, setStrokeWidth, setStyle, write
adaptPaint, allowsPointMove, allowsPointRemoval, boundingBox, calcBoundingBox, contains, getAlpha, getApplyTransformer, getClip, getIntersectionWithOutline, getMaximumStrokeWidth, getOriginalShape, getShape, getShapeBounds, getTransformer, insertPoint, isContainsWhenNotFilled, isPointEditionAllowed, isTransformedShapeMode, moveResize, pointsInBBox, removePoint, resize, setAlpha, setBackground, setClip, setContainsWhenNotFilled, setForeground, setInternalShape, setMaximumStrokeWidth, setPointEditionAllowed, setShape, setShapeBounds, setTransformedShapeMode, setTransformer
addActionListener, addNamedPropertyListener, allViewsRemoved, baseTextDirectionChanged, blinkingStateOn, boundingBox, callDraw, componentOrientationChanged, getAndAssociateObjectInteractor, getBaseTextDirection, getBlinkingAction, getBlinkingObjectOwner, getBlinkingOffPeriod, getBlinkingOnPeriod, getCenter, getComponentOrientation, getDefaultInteractor, getGraphicBag, GetGraphicObject, getLocale, getName, getNamedProperty, getObjectInteractor, getPopupMenu, getPopupMenu, getPopupMenuName, getProperty, getResolvedBaseTextDirection, getToolTipBaseTextDirection, getToolTipText, getToolTipText, getTopLevelGraphicBag, getTransferData, getTransferDataFlavors, getULocale, getZOrderIndex, hasProperty, inside, intersects, invalidateBBoxCache, invalidateBidiCache, isBaseTextDirectionSensitive, isComponentOrientationSensitive, isDataFlavorSupported, isEditable, isInApplyToObject, isLocaleSensitive, isMovable, isPersistent, isSelectable, isVisible, localeChanged, move, move, needsViewNotification, notifyObjectInteractorToManager, processActionEvent, reDraw, registerBlinkingResource, removeActionListener, removeNamedProperty, removeNamedPropertyListener, removeProperty, replaceProperty, rotate, scale, setBaseTextDirection, setBaseTextDirectionDuringConstruction, setBlinkingAction, setBlinkingOffPeriod, setBlinkingOnPeriod, setEditable, setGraphicBag, setInApplyToObject, setMovable, setName, setNamedProperty, setNameImpl, setObjectInteractor, setPopupMenu, setPopupMenuName, setProperty, setSelectable, setToolTipBaseTextDirection, setToolTipText, setVisible, setZOrderIndex, toString, translate, updateNeedsViewNotification, usesBidiMarkers, viewAddedOrRemoved, zoomable
public static final String DISTANCE_PROPERTY
public static final String BEARING_PROPERTY
public static final IlvAttributeInfoProperty info
public IlvMapOrthodromyPath(IlvInputStream stream) throws IlvReadFileException
stream
- the stream to read from.IlvReadFileException
public IlvMapOrthodromyPath(IlvMapOrthodromyPath source)
source
- source to copy.public IlvMapOrthodromyPath(Shape shape, IlvAttributeProperty distanceAndBearing)
shape
- distanceAndBearing
- public void applyTransform(IlvTransformer t)
applyTransform
in class IlvGeneralPath
t
- The transformer to be applied.IlvGeneralPath.applyTransform(ilog.views.IlvTransformer)
public IlvGraphic copy()
copy
in class IlvMapGeneralPath
IlvMapOrthodromyPath
.IlvGraphic
public boolean allowsPointInsertion()
allowsPointInsertion
in interface IlvPolyPointsInterface
allowsPointInsertion
in class IlvGeneralPath
IlvGeneralPath.allowsPointInsertion()
public int getPointsCardinal()
getPointsCardinal
in interface IlvPolyPointsInterface
getPointsCardinal
in class IlvGeneralPath
IlvGeneralPath.getPointsCardinal()
public IlvPoint getPointAt(int i, IlvTransformer t)
getPointAt
in interface IlvPolyPointsInterface
getPointAt
in class IlvGeneralPath
i
- The index.t
- The transformer used to draw the object.IlvGeneralPath.getPointAt(int, ilog.views.IlvTransformer)
public void movePoint(int index, double x, double y, IlvTransformer t)
movePoint
in interface IlvPolyPointsInterface
movePoint
in class IlvGeneralPath
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.IlvGeneralPath.movePoint(int, double, double, ilog.views.IlvTransformer)
public static IlvMapOrthodromyPath createMapOrthodromyPath(IlvManager manager, IlvPoint p1, IlvPoint p2)
manager
- manager to add object top1
- manager coordinate of point 1p2
- manager coordinate of point 2public IlvGraphic copy(IlvCoordinateTransformation transform) throws IlvCoordinateTransformationException
copy
in interface IlvMapGraphic
copy
in class IlvMapGeneralPath
transform
- Transformation to apply.IlvCoordinateTransformationException
IlvMapGraphic.copy(ilog.views.maps.srs.coordtrans.IlvCoordinateTransformation)
public IlvSelection makeSelection()
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
.makeSelection
in class IlvGeneralPath
IlvGraphic.makeSelection()
public static void fillProperties(IlvGeodeticPathComputation pc, IlvAttributeProperty property)
BEARING_PROPERTY
and DISTANCE_PROPERTY
values of the property with the bearing and distance computed by the last path computation.pc
- path computation previously done.property
- to fill up distance and bearing values.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.