public static class IlvMapAnnotationToolBar.MapPolyline extends IlvMapPolyline implements IlvMapAnnotationToolBar.AnnotationGraphic
IlvMapPolyline with annotation extensions.style| Constructor and Description |
|---|
MapPolyline(IlvInputStream stream)
Reads a
MapPolyline from an IlvInputStream. |
MapPolyline(IlvMapAnnotationToolBar.MapPolyline polyline)
Constructs a
MapPolyline from an existing one. |
MapPolyline(IlvPoint[] points)
Constructs a
MapPolyline from an array of points. |
| Modifier and Type | Method and Description |
|---|---|
void |
applyTransform(IlvTransformer t)
Applies the given transformer to this
IlvPolyPoints. |
IlvGraphic |
copy()
Copies the object.
|
String |
getAnnotationType()
Returns the type of annotation for a polyline.
|
void |
insertPoint(int index,
double x,
double y,
IlvTransformer t)
Inserts a point at a specified index.
|
boolean |
isClosed()
Indicates if this polyline is closed or not.
|
void |
movePoint(int index,
double x,
double y,
IlvTransformer t)
Changes the position of a point.
|
void |
removePoint(int index,
IlvTransformer t)
Removes a point at a specified index.
|
void |
setClosed(boolean closed)
Determines whether this polyline is closed or not.
|
void |
translate(double dx,
double dy)
Translates the object by the vector (
dx, dy). |
void |
write(IlvOutputStream stream)
Writes this polyline in an
IlvOutputStream. |
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, zoomablecomputeBBox, finalize, getIntersectionWithOutline, pointsInBBox, setMaximumLineWidthallowsPointInsertion, allowsPointMove, allowsPointRemoval, getPointAt, getPoints, getPointsCardinal, inBBox, intersects, makeSelection, recomputeBBoxaddActionListener, 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, 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, viewAddedOrRemovedclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitcopy, getStyle, makeGeometry, setStylepublic MapPolyline(IlvInputStream stream) throws IlvReadFileException
MapPolyline from an IlvInputStream.stream - The stream to read from.IlvReadFileExceptionpublic MapPolyline(IlvPoint[] points)
MapPolyline from an array of points.points - The points in the array.public MapPolyline(IlvMapAnnotationToolBar.MapPolyline polyline)
MapPolyline from an existing one.polyline - The MapPolyline to copy.public void translate(double dx,
double dy)
dx, dy).
The vector must be given in untransformed coordinates.
Possibly perform a label layouttranslate in class IlvPolyPointsdx - The horizontal translation factor.dy - The vertical translation factor.IlvGraphic,
IlvGraphic.applyTransform(IlvTransformer)public void applyTransform(IlvTransformer t)
IlvPolyPoints.
Possibly perform a label layoutapplyTransform in class IlvPolyPointst - The transformer to be applied.IlvGraphicpublic IlvGraphic copy()
copy in class IlvMapPolylineIlvMapPolyline instance.IlvGraphicpublic void insertPoint(int index,
double x,
double y,
IlvTransformer t)
insertPoint in interface IlvPolyPointsInterfaceinsertPoint in class IlvPolyPointsindex - 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.public boolean isClosed()
true, the polyline is closed, false otherwise.public void movePoint(int index,
double x,
double y,
IlvTransformer t)
movePoint in interface IlvPolyPointsInterfacemovePoint in class IlvPolyPointsindex - 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.public void removePoint(int index,
IlvTransformer t)
removePoint in interface IlvPolyPointsInterfaceremovePoint in class IlvPolyPointsindex - The index of the point to be removed.t - The transformer used to draw the object.public void setClosed(boolean closed)
closed - If set to true the polyline is closed, false otherwise.public void write(IlvOutputStream stream) throws IOException
IlvOutputStream.write in interface IlvPersistentObjectwrite in class IlvMapPolylinestream - The stream to write to.IOExceptionpublic String getAnnotationType()
getAnnotationType in interface IlvMapAnnotationToolBar.AnnotationGraphicIlvMapAnnotationModel.getDataSource(IlvManager, String)© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.