public static class IlvMapAnnotationToolBar.MapGraphicPath extends IlvMapGraphicPath implements IlvPolyPointsInterface, IlvMapAnnotationToolBar.AnnotationGraphic
IlvMapGraphicPath
for annotations. This graphic path should be created
with an array of IlvPointArray
of only one element.FILL_ONLY, STROKE_AND_FILL, STROKE_ONLY
Constructor and Description |
---|
MapGraphicPath(IlvInputStream stream)
Reads a
MapGraphicPath from an IlvInputStream . |
MapGraphicPath(IlvMapAnnotationToolBar.MapGraphicPath path)
Creates a
MapGraphicPath by copying an existing one. |
MapGraphicPath(IlvPointArray[] pa)
Creates a
MapGraphicPath from a one length array of
IlvPointArray . |
Modifier and Type | Method and Description |
---|---|
boolean |
allowsPointInsertion()
Returns
true if the interactors are allowed to add points, and
false otherwise. |
boolean |
allowsPointMove(int index)
Returns
true if the interactors are allowed to move the point
with the specified index, and returns false otherwise. |
boolean |
allowsPointRemoval()
Returns
true if the interactors are allowed to remove points,
and false otherwise. |
void |
applyTransform(IlvTransformer t)
Applies a transformation to the shape of the object.
|
IlvGraphic |
copy()
Copies the objects.
|
String |
getAnnotationType()
Returns the type of annotation for a polygon.
|
IlvPoint |
getPointAt(int index,
IlvTransformer t)
Returns the point at a specified index.
|
int |
getPointsCardinal()
Returns the number of points.
|
void |
insertPoint(int index,
double x,
double y,
IlvTransformer t)
Inserts a point.
|
void |
movePoint(int index,
double x,
double y,
IlvTransformer t)
Changes the position of a point.
|
boolean |
pointsInBBox()
Returns
true if all points are contained inside
the bounding rectangle of the object. |
void |
removePoint(int index,
IlvTransformer t)
Removes a point.
|
boundingBox, contains, copy, draw, equals, getBackground, getDecoration, getDecorationPaint, getDrawRule, getForeground, getLineStyle, getLineWidth, getMaximumLineWidth, getPaint, getStyle, isDecorationOnly, makeGeometry, setBackground, setDecoration, setDecorationOnly, setDecorationPaint, setForeground, setLineStyle, setLineWidth, setMaximumLineWidth, setPaint, setStyle, write
getIntersectionWithOutline, getNumPaths, getPaths, setDrawRule, setPaths, setPaths
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, makeSelection, 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, translate, updateNeedsViewNotification, usesBidiMarkers, viewAddedOrRemoved, zoomable
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
boundingBox
copy, getStyle, makeGeometry, setStyle
public MapGraphicPath(IlvInputStream stream) throws IlvReadFileException
MapGraphicPath
from an IlvInputStream
.stream
- The stream to read from.IlvReadFileException
public MapGraphicPath(IlvPointArray[] pa)
MapGraphicPath
from a one length array of
IlvPointArray
.pa
- The one length array of IlvPointArray
.public MapGraphicPath(IlvMapAnnotationToolBar.MapGraphicPath path)
MapGraphicPath
by copying an existing one.path
- The MapGraphicPath
to copy.public boolean allowsPointInsertion()
true
if the interactors are allowed to add points, and
false
otherwise.
This component allows point insertion.allowsPointInsertion
in interface IlvPolyPointsInterface
public boolean allowsPointMove(int index)
true
if the interactors are allowed to move the point
with the specified index, and returns false
otherwise.
This component allows point movement.allowsPointMove
in interface IlvPolyPointsInterface
index
- The index of the point.public boolean allowsPointRemoval()
true
if the interactors are allowed to remove points,
and false
otherwise.
This component allows point removal.allowsPointRemoval
in interface IlvPolyPointsInterface
public void applyTransform(IlvTransformer t)
applyTransform
in class IlvGraphicPath
t
- The transformer to be applied.IlvGraphic
public IlvGraphic copy()
copy
in class IlvMapGraphicPath
IlvMapGraphicPath
object.IlvGraphic
public IlvPoint getPointAt(int index, IlvTransformer t)
getPointAt
in interface IlvPolyPointsInterface
index
- The index.t
- The transformer used to draw the object.public int getPointsCardinal()
getPointsCardinal
in interface IlvPolyPointsInterface
public void insertPoint(int index, double x, double y, IlvTransformer t)
insertPoint
in interface IlvPolyPointsInterface
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 polypoint.public void movePoint(int index, double x, double y, IlvTransformer t)
movePoint
in interface IlvPolyPointsInterface
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.public boolean pointsInBBox()
true
if all points are contained inside
the bounding rectangle of the object.pointsInBBox
in interface IlvPolyPointsInterface
public void removePoint(int index, IlvTransformer t)
removePoint
in interface IlvPolyPointsInterface
index
- The index of the point to remove.t
- The transformer used to draw the polypoint.public String getAnnotationType()
getAnnotationType
in interface IlvMapAnnotationToolBar.AnnotationGraphic
IlvMapAnnotationModel.getDataSource(IlvManager, String)
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.