public abstract class IlvMapControllingPolyline extends IlvMapPolyline
Modifier and Type | Class and Description |
---|---|
static interface |
IlvMapControllingPolyline.ComputeListener
Listener interface that can be attached to the line of view, to track its
changes.
|
style
Modifier | Constructor and Description |
---|---|
|
IlvMapControllingPolyline(IlvInputStream stream)
reads a
IlvMapControllingPolyline from a IlvInputStream . |
protected |
IlvMapControllingPolyline(IlvMapControllingPolyline source)
Creates a
IlvMapControllingPolyline by copying an existing one. |
|
IlvMapControllingPolyline(IlvPoint[] points)
Creates a new
IlvMapControllingPolyline . |
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(IlvMapControllingPolyline.ComputeListener c)
Adds a listener to the line of view that will be called whenever visibility
information has changed.
|
void |
applyTransform(IlvTransformer t)
Calls
geometryChanged() . |
IlvGraphic |
copy(IlvCoordinateTransformation transform)
Copies the element and applies the specified transformation to its coordinates.
|
protected void |
fireChange()
Fires a change in the line of visibility that will execute all registered
listeners.
|
void |
geometryChanged()
Method called whenever the polyline location is changed.
|
protected IlvCoordinateTransformation |
getKernelToSystemTransformation()
Returns the kernelToSystemTransformation.
|
protected IlvCoordinate |
getLatLon(int iPoint)
Returns a point of the line in lat/lon.
|
IlvCoordinate[] |
getLatLongs()
Computes or returns the current table of lat/lon coordinates.
|
protected ArrayList<IlvMapControllingPolyline.ComputeListener> |
getListeners()
Returns the
ArrayList containing the listeners registered for
this component. |
protected IlvCoordinateTransformation |
getSystemToKernelTransformation()
Returns the systemToKernelTransformation.
|
void |
insertPoint(int index,
double x,
double y,
IlvTransformer t)
Calls
geometryChanged() . |
void |
move(double x,
double y)
Moves the object.
|
void |
movePoint(int index,
double x,
double y,
IlvTransformer t)
Calls
geometryChanged() . |
void |
removeChangeListener(IlvMapControllingPolyline.ComputeListener c)
Removes a listener from the listener list.
|
void |
removePoint(int index,
IlvTransformer t)
Calls
geometryChanged() . |
boundingBox, contains, copy, draw, drawDecoration, getBackground, getDecoration, getDecorationPaint, getEndCap, getForeground, getLineJoin, getLineStyle, getLineWidth, getLineWidth, getMaximumLineWidth, getStyle, isDecorationOnly, isPreciseContains, makeGeometry, setBackground, setDecoration, setDecorationOnly, setDecorationPaint, setEndCap, setForeground, setLineJoin, setLineStyle, setLineWidth, setPreciseContains, setStyle, write, zoomable
computeBBox, finalize, getIntersectionWithOutline, pointsInBBox, setMaximumLineWidth
allowsPointInsertion, allowsPointMove, allowsPointRemoval, getPointAt, getPoints, getPointsCardinal, inBBox, intersects, makeSelection, recomputeBBox, translate
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, invalidateBBoxCache, invalidateBidiCache, isBaseTextDirectionSensitive, isComponentOrientationSensitive, isDataFlavorSupported, isEditable, isInApplyToObject, isLocaleSensitive, isMovable, isPersistent, isSelectable, isVisible, localeChanged, move, moveResize, needsViewNotification, notifyObjectInteractorToManager, processActionEvent, reDraw, registerBlinkingResource, removeActionListener, removeNamedProperty, removeNamedPropertyListener, removeProperty, replaceProperty, resize, rotate, scale, setBaseTextDirection, setBaseTextDirectionDuringConstruction, setBlinkingAction, setBlinkingOffPeriod, setBlinkingOnPeriod, setEditable, setFillOn, setGraphicBag, setInApplyToObject, setMovable, setName, setNamedProperty, setNameImpl, setObjectInteractor, setPopupMenu, setPopupMenuName, setProperty, setSelectable, setStrokeOn, setToolTipBaseTextDirection, setToolTipText, setVisible, setZOrderIndex, toString, updateNeedsViewNotification, usesBidiMarkers, viewAddedOrRemoved
public IlvMapControllingPolyline(IlvPoint[] points)
IlvMapControllingPolyline
.points
- The array of points defining the polyline.protected IlvMapControllingPolyline(IlvMapControllingPolyline source)
IlvMapControllingPolyline
by copying an existing one.source
- The source IlvMapControllingPolyline.public IlvMapControllingPolyline(IlvInputStream stream) throws IlvReadFileException
IlvMapControllingPolyline
from a IlvInputStream
.stream
- The stream to read from.IlvReadFileException
public IlvGraphic copy(IlvCoordinateTransformation transform) throws IlvCoordinateTransformationException
copy
in interface IlvMapGraphic
copy
in class IlvMapPolyline
transform
- Transformation to apply.IlvCoordinateTransformationException
IlvMapGraphic.copy(ilog.views.maps.srs.coordtrans.IlvCoordinateTransformation)
protected IlvCoordinateTransformation getSystemToKernelTransformation()
protected IlvCoordinateTransformation getKernelToSystemTransformation()
protected IlvCoordinate getLatLon(int iPoint)
iPoint
- the index of the point of the polylinepublic IlvCoordinate[] getLatLongs()
public void applyTransform(IlvTransformer t)
geometryChanged()
.applyTransform
in class IlvPolyPoints
t
- The transformer to be applied.IlvPolyPoints.applyTransform(ilog.views.IlvTransformer)
public void removePoint(int index, IlvTransformer t)
geometryChanged()
.removePoint
in interface IlvPolyPointsInterface
removePoint
in class IlvPolyPoints
index
- The index of the point to be removed.t
- The transformer used to draw the object.IlvPolyPoints.removePoint(int, ilog.views.IlvTransformer)
public void insertPoint(int index, double x, double y, IlvTransformer t)
geometryChanged()
.insertPoint
in interface IlvPolyPointsInterface
insertPoint
in class IlvPolyPoints
index
- The index at which the new point will be inserted.x
- The x coordinate of the new point.y
- The y coordinate of the new point.t
- The transformer used to draw the object.IlvPolyPoints.insertPoint(int, double, double, ilog.views.IlvTransformer)
public void movePoint(int index, double x, double y, IlvTransformer t)
geometryChanged()
.movePoint
in interface IlvPolyPointsInterface
movePoint
in class IlvPolyPoints
index
- The index of the point to be moved.x
- The new x position in untransformed coordinates.y
- The new y position in untransformed coordinates.t
- The transformer used to draw the object.IlvPolyPoints.movePoint(int, double, double, ilog.views.IlvTransformer)
public void move(double x, double y)
(x, y)
.
The position must be given in untransformed coordinates.
The default implementation calls IlvGraphic.translate(double, double)
(and this calls
IlvGraphic.applyTransform(ilog.views.IlvTransformer)
).move
in class IlvGraphic
x
- The new horizontal position.y
- The new vertical position.IlvGraphic.move(double, double)
public final void geometryChanged()
addChangeListener(ComputeListener)
public void addChangeListener(IlvMapControllingPolyline.ComputeListener c)
c
- listener to add.public void removeChangeListener(IlvMapControllingPolyline.ComputeListener c)
c
- listener to remove.protected void fireChange()
protected ArrayList<IlvMapControllingPolyline.ComputeListener> getListeners()
ArrayList
containing the listeners registered for
this component.ArrayList
containing the listeners registered for
this component.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.