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, zoomable
computeBBox, finalize, getIntersectionWithOutline, pointsInBBox, setMaximumLineWidth
allowsPointInsertion, allowsPointMove, allowsPointRemoval, getPointAt, getPoints, getPointsCardinal, inBBox, intersects, makeSelection, recomputeBBox
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, 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
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
copy, getStyle, makeGeometry, setStyle
public MapPolyline(IlvInputStream stream) throws IlvReadFileException
MapPolyline
from an IlvInputStream
.stream
- The stream to read from.IlvReadFileException
public 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 IlvPolyPoints
dx
- 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 IlvPolyPoints
t
- The transformer to be applied.IlvGraphic
public IlvGraphic copy()
copy
in class IlvMapPolyline
IlvMapPolyline
instance.IlvGraphic
public void insertPoint(int index, double x, double y, IlvTransformer t)
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.public boolean isClosed()
true
, the polyline is closed, false
otherwise.public void movePoint(int index, double x, double y, IlvTransformer t)
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.public void removePoint(int index, IlvTransformer t)
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.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 IlvPersistentObject
write
in class IlvMapPolyline
stream
- The stream to write to.IOException
public String getAnnotationType()
getAnnotationType
in interface IlvMapAnnotationToolBar.AnnotationGraphic
IlvMapAnnotationModel.getDataSource(IlvManager, String)
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.