ilog.views.maps.beans
Class IlvMapAnnotationToolBar.MapPolyline

java.lang.Object
  extended by ilog.views.IlvGraphic
      extended by ilog.views.graphic.IlvPolyPoints
          extended by ilog.views.graphic.IlvPolyline
              extended by ilog.views.maps.graphic.IlvMapPolyline
                  extended by ilog.views.maps.beans.IlvMapAnnotationToolBar.MapPolyline
All Implemented Interfaces:
IlvPolyPointsInterface, IlvPersistentObject, IlvMapGraphic, Transferable, Serializable
Enclosing class:
IlvMapAnnotationToolBar

public static class IlvMapAnnotationToolBar.MapPolyline
extends IlvMapPolyline

An IlvMapPolyline with annotation extensions.

Since:
JViews 8.0
See Also:
Serialized Form

Field Summary
 
Fields inherited from class ilog.views.maps.graphic.IlvMapPolyline
style
 
Constructor Summary
IlvMapAnnotationToolBar.MapPolyline(IlvInputStream stream)
          Reads a MapPolyline from an IlvInputStream.
IlvMapAnnotationToolBar.MapPolyline(IlvMapAnnotationToolBar.MapPolyline polyline)
          Constructs a MapPolyline from an existing one.
IlvMapAnnotationToolBar.MapPolyline(IlvPoint[] points)
          Constructs a MapPolyline from an array of points.
 
Method Summary
 void applyTransform(IlvTransformer t)
          Applies the given transformer to this IlvPolyPoints. Possibly perform a label layout
 IlvGraphic copy()
          Copies the object.
 void insertPoint(int index, float x, float y, IlvTransformer t)
          Inserts a point at a specified index. Possibly perform a label layout
 boolean isClosed()
          Indicates if this polyline is closed or not.
 void movePoint(int index, float x, float y, IlvTransformer t)
          Changes the position of a point. Possibly perform a label layout
 void removePoint(int index, IlvTransformer t)
          Removes a point at a specified index. Possibly perform a label layout
 void setClosed(boolean closed)
          Determines whether this polyline is closed or not.
 void write(IlvOutputStream stream)
          Writes this polyline in an IlvOutputStream.
 
Methods inherited from class ilog.views.maps.graphic.IlvMapPolyline
boundingBox, contains, copy, draw, drawDecoration, getBackground, getDecoration, getDecorationPaint, getEndCap, getForeground, getLineJoin, getLineStyle, getLineWidth, getMaximumLineWidth, getStyle, isDecorationOnly, isPreciseContains, makeGeometry, setBackground, setDecoration, setDecorationOnly, setDecorationPaint, setEndCap, setForeground, setLineJoin, setLineStyle, setLineWidth, setPreciseContains, setStyle
 
Methods inherited from class ilog.views.graphic.IlvPolyline
computeBBox, finalize, getIntersectionWithOutline, getLineWidth, pointsInBBox, setMaximumLineWidth
 
Methods inherited from class ilog.views.graphic.IlvPolyPoints
allowsPointInsertion, allowsPointMove, allowsPointRemoval, getPointAt, getPoints, getPointsCardinal, inBBox, intersects, makeSelection, recomputeBBox
 
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, isDataFlavorSupported, isEditable, isInApplyToObject, isMovable, isPersistent, isSelectable, isVisible, 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, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IlvMapAnnotationToolBar.MapPolyline

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

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

IlvMapAnnotationToolBar.MapPolyline

public IlvMapAnnotationToolBar.MapPolyline(IlvPoint[] points)
Constructs a MapPolyline from an array of points.

Parameters:
points - The points in the array.

IlvMapAnnotationToolBar.MapPolyline

public IlvMapAnnotationToolBar.MapPolyline(IlvMapAnnotationToolBar.MapPolyline polyline)
Constructs a MapPolyline from an existing one.

Parameters:
polyline - The MapPolyline to copy.
Method Detail

write

public void write(IlvOutputStream stream)
           throws IOException
Writes this polyline in an IlvOutputStream.

Specified by:
write in interface IlvPersistentObject
Overrides:
write in class IlvMapPolyline
Parameters:
stream - The stream to write to.
Throws:
IOException

copy

public IlvGraphic copy()
Copies the object.

Overrides:
copy in class IlvMapPolyline
Returns:
A new IlvMapPolyline instance.
See Also:
IlvGraphic

applyTransform

public void applyTransform(IlvTransformer t)
Applies the given transformer to this IlvPolyPoints. Possibly perform a label layout

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

insertPoint

public void insertPoint(int index,
                        float x,
                        float y,
                        IlvTransformer t)
Inserts a point at a specified index. Elements with an index greater than or equal to the current index are shifted up. Possibly perform a label layout

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

removePoint

public void removePoint(int index,
                        IlvTransformer t)
Removes a point at a specified index. Possibly perform a label layout

Specified by:
removePoint in interface IlvPolyPointsInterface
Overrides:
removePoint in class IlvPolyPoints
Parameters:
index - The index of the point to be removed.
t - The transformer used to draw the object.

isClosed

public boolean isClosed()
Indicates if this polyline is closed or not.

Returns:
If set to true, the polyline is closed, false otherwise.

setClosed

public void setClosed(boolean closed)
Determines whether this polyline is closed or not.

Parameters:
closed - If set to true the polyline is closed, false otherwise.


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