ilog.views.maps.beans
Class IlvMapAnnotationToolBar.MapGraphicPath

java.lang.Object
  extended by ilog.views.IlvGraphic
      extended by ilog.views.graphic.IlvGraphicPath
          extended by ilog.views.maps.graphic.IlvMapGraphicPath
              extended by ilog.views.maps.beans.IlvMapAnnotationToolBar.MapGraphicPath
All Implemented Interfaces:
IlvPolyPointsInterface, IlvPersistentObject, IlvMapGraphic, Transferable, Serializable
Enclosing class:
IlvMapAnnotationToolBar

public static class IlvMapAnnotationToolBar.MapGraphicPath
extends IlvMapGraphicPath
implements IlvPolyPointsInterface

An IlvMapGraphicPath for annotations. This graphic path should be created with an array of IlvPointArray of only one element.

Since:
JViews 8.0
See Also:
Serialized Form

Field Summary
 
Fields inherited from class ilog.views.graphic.IlvGraphicPath
FILL_ONLY, STROKE_AND_FILL, STROKE_ONLY
 
Constructor Summary
IlvMapAnnotationToolBar.MapGraphicPath(IlvInputStream stream)
          Reads a MapGraphicPath from an IlvInputStream.
IlvMapAnnotationToolBar.MapGraphicPath(IlvMapAnnotationToolBar.MapGraphicPath path)
          Creates a MapGraphicPath by copying an existing one.
IlvMapAnnotationToolBar.MapGraphicPath(IlvPointArray[] pa)
          Creates a MapGraphicPath from a one length array of IlvPointArray.
 
Method Summary
 boolean allowsPointInsertion()
          Returns true if the interactors are allowed to add points, and false otherwise. This component allows point insertion.
 boolean allowsPointMove(int index)
          Returns true if the interactors are allowed to move the point with the specified index, and returns false otherwise. This component allows point movement.
 boolean allowsPointRemoval()
          Returns true if the interactors are allowed to remove points, and false otherwise. This component allows point removal.
 void applyTransform(IlvTransformer t)
          Applies a transformation to the shape of the object. Possibly perform a label layout
 IlvGraphic copy()
          Copies the objects.
 IlvPoint getPointAt(int index, IlvTransformer t)
          Returns the point at a specified index. Possibly perform a label layout.
 int getPointsCardinal()
          Returns the number of points. Possibly perform a label layout.
 void insertPoint(int index, float x, float y, IlvTransformer t)
          Inserts a point.
 void movePoint(int index, float x, float y, IlvTransformer t)
          Changes the position of a point. Possibly perform a label layout.
 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.
 
Methods inherited from class ilog.views.maps.graphic.IlvMapGraphicPath
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
 
Methods inherited from class ilog.views.graphic.IlvGraphicPath
getIntersectionWithOutline, getNumPaths, getPaths, setDrawRule, setPaths, setPaths
 
Methods inherited from class ilog.views.IlvGraphic
addActionListener, addNamedPropertyListener, boundingBox, getAndAssociateObjectInteractor, getCenter, getDefaultInteractor, getGraphicBag, GetGraphicObject, getName, getNamedProperty, getObjectInteractor, getPopupMenu, getPopupMenu, getPopupMenuName, getProperty, getToolTipText, getToolTipText, getTopLevelGraphicBag, getTransferData, getTransferDataFlavors, hasProperty, inside, intersects, isDataFlavorSupported, isEditable, isInApplyToObject, isMovable, isPersistent, isSelectable, isVisible, makeSelection, move, move, moveResize, notifyObjectInteractorToManager, processActionEvent, reDraw, removeActionListener, removeNamedProperty, removeNamedPropertyListener, removeProperty, replaceProperty, resize, rotate, scale, setEditable, setFillOn, setGraphicBag, setInApplyToObject, setMovable, setName, setNamedProperty, setNameImpl, setObjectInteractor, setPopupMenu, setPopupMenuName, setProperty, setSelectable, setStrokeOn, setToolTipText, setVisible, toString, translate, zoomable
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ilog.views.IlvPolyPointsInterface
boundingBox
 

Constructor Detail

IlvMapAnnotationToolBar.MapGraphicPath

public IlvMapAnnotationToolBar.MapGraphicPath(IlvPointArray[] pa)
Creates a MapGraphicPath from a one length array of IlvPointArray.

Parameters:
pa - The one length array of IlvPointArray.

IlvMapAnnotationToolBar.MapGraphicPath

public IlvMapAnnotationToolBar.MapGraphicPath(IlvInputStream stream)
                                       throws IlvReadFileException
Reads a MapGraphicPath from an IlvInputStream.

Parameters:
stream - The stream to read from.
Throws:
IlvReadFileException

IlvMapAnnotationToolBar.MapGraphicPath

public IlvMapAnnotationToolBar.MapGraphicPath(IlvMapAnnotationToolBar.MapGraphicPath path)
Creates a MapGraphicPath by copying an existing one.

Parameters:
path - The MapGraphicPath to copy.
Method Detail

copy

public IlvGraphic copy()
Copies the objects.

Overrides:
copy in class IlvMapGraphicPath
Returns:
A new IlvMapGraphicPath object.
See Also:
IlvGraphic

applyTransform

public void applyTransform(IlvTransformer t)
Applies a transformation to the shape of the object. Possibly perform a label layout

Overrides:
applyTransform in class IlvGraphicPath
Parameters:
t - The transformer to be applied.
See Also:
IlvGraphic

getPointsCardinal

public int getPointsCardinal()
Returns the number of points. Possibly perform a label layout.

Specified by:
getPointsCardinal in interface IlvPolyPointsInterface

getPointAt

public IlvPoint getPointAt(int index,
                           IlvTransformer t)
Returns the point at a specified index. Possibly perform a label layout.

Specified by:
getPointAt in interface IlvPolyPointsInterface
Parameters:
index - The index.
t - The transformer used to draw the object.

movePoint

public void movePoint(int index,
                      float x,
                      float y,
                      IlvTransformer t)
Changes the position of a point. Possibly perform a label layout.

Specified by:
movePoint in interface IlvPolyPointsInterface
Parameters:
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.

allowsPointInsertion

public boolean allowsPointInsertion()
Returns true if the interactors are allowed to add points, and false otherwise. This component allows point insertion.

Specified by:
allowsPointInsertion in interface IlvPolyPointsInterface

allowsPointRemoval

public boolean allowsPointRemoval()
Returns true if the interactors are allowed to remove points, and false otherwise. This component allows point removal.

Specified by:
allowsPointRemoval in interface IlvPolyPointsInterface

allowsPointMove

public boolean allowsPointMove(int index)
Returns true if the interactors are allowed to move the point with the specified index, and returns false otherwise. This component allows point movement.

Specified by:
allowsPointMove in interface IlvPolyPointsInterface
Parameters:
index - The index of the point.

insertPoint

public void insertPoint(int index,
                        float x,
                        float y,
                        IlvTransformer t)
Inserts a point.

Specified by:
insertPoint in interface IlvPolyPointsInterface
Parameters:
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.

removePoint

public void removePoint(int index,
                        IlvTransformer t)
Removes a point.

Specified by:
removePoint in interface IlvPolyPointsInterface
Parameters:
index - The index of the point to remove.
t - The transformer used to draw the polypoint.

pointsInBBox

public boolean pointsInBBox()
Returns true if all points are contained inside the bounding rectangle of the object.

Specified by:
pointsInBBox in interface IlvPolyPointsInterface


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.