ilog.views.maps.graphic
Class IlvMapGraphicSet

java.lang.Object
  extended by ilog.views.IlvGraphic
      extended by ilog.views.graphic.IlvGraphicSet
          extended by ilog.views.maps.graphic.IlvMapGraphicSet
All Implemented Interfaces:
GraphicBagHierarchyEventReceiver, ManagerViewsHierarchyEventReceiver, IlvGraphicBag, IlvPersistentObject, IlvMapGraphic, Transferable, Serializable

public class IlvMapGraphicSet
extends IlvGraphicSet
implements IlvMapGraphic

IlvMapGraphicSet represents an IlvGraphicSet that transmits its IlvMapStyle to the objects that it contains.

Since:
JViews 7.5
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class ilog.views.graphic.IlvGraphicSet
IlvGraphicSet.DelegateObjectInteractor
 
Field Summary
 
Fields inherited from class ilog.views.graphic.IlvGraphicSet
list
 
Constructor Summary
IlvMapGraphicSet()
          The default constructor.
IlvMapGraphicSet(IlvInputStream stream)
          Reads the object from an IlvInputStream.
IlvMapGraphicSet(IlvMapGraphicSet source)
          Creates a new IlvMapGraphicSet instance by copying an existing one.
 
Method Summary
 void addObjectAt(IlvGraphic g, int index, boolean redraw)
          If the object added to this graphic set is a subclass of IlvMapGraphic, the style of this graphic set is set to that of the object added.
 IlvGraphic copy()
          Copies the object.
 IlvGraphic copy(IlvCoordinateTransformation transform)
          Copies the element and applies the specified transformation to its coordinates.
 IlvMapStyle getStyle()
          Retrieves the IlvMapStyle.
 IlvMapGeometry makeGeometry()
          Returns an IlvMapGeometryCollection instance.
 void setStyle(IlvMapStyle style)
          Setting the style of an IlvGraphicSet also sets the style of all IlvMapGraphic objects contained in the graphic set.
 void write(IlvOutputStream stream)
          Writes this IlvMapGraphicPath object to the IlvOutputStream passed as a parameter.
 
Methods inherited from class ilog.views.graphic.IlvGraphicSet
addGraphicBagHierarchyListener, addManagerViewsHierarchyListener, addObject, applyToObject, applyTransform, boundingBox, contains, contains, draw, drawCore, enableGraphicBagHierarchyEventForwarding, enableManagerViewsHierarchyEventForwarding, fireGraphicBagHierarchyEvent, fireManagerViewsHierarchyEvent, firstContains, getAlpha, getCardinal, getClip, getIndex, getIntersectionWithOutline, getObject, getObject, getObjectName, getObjects, getOriginalPopupMenu, getPopupMenu, getToolTipText, isPersistent, moveObject, needsGraphicBagHierarchyEvent, needsManagerViewsHierarchyEvent, reDrawObj, reDrawRegion, removeAll, removeGraphicBagHierarchyListener, removeManagerViewsHierarchyListener, removeObject, removeObjectAt, reshapeObject, setAlpha, setClip, setGraphicBag, setObjectName, zoomable
 
Methods inherited from class ilog.views.IlvGraphic
addActionListener, addNamedPropertyListener, boundingBox, getAndAssociateObjectInteractor, getCenter, getDefaultInteractor, getGraphicBag, GetGraphicObject, getName, getNamedProperty, getObjectInteractor, getPopupMenu, getPopupMenuName, getProperty, getToolTipText, getTopLevelGraphicBag, getTransferData, getTransferDataFlavors, hasProperty, inside, intersects, isDataFlavorSupported, isEditable, isInApplyToObject, isMovable, isSelectable, isVisible, makeSelection, move, move, moveResize, notifyObjectInteractorToManager, processActionEvent, reDraw, removeActionListener, removeNamedProperty, removeNamedPropertyListener, removeProperty, replaceProperty, resize, rotate, scale, setBackground, setEditable, setFillOn, setForeground, setInApplyToObject, setMovable, setName, setNamedProperty, setNameImpl, setObjectInteractor, setPopupMenu, setPopupMenuName, setProperty, setSelectable, setStrokeOn, setToolTipText, setVisible, toString, translate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ilog.views.IlvGraphicBag
getGraphicBag
 

Constructor Detail

IlvMapGraphicSet

public IlvMapGraphicSet()
The default constructor.


IlvMapGraphicSet

public IlvMapGraphicSet(IlvMapGraphicSet source)
Creates a new IlvMapGraphicSet instance by copying an existing one.

Parameters:
source - The object to be copied.

IlvMapGraphicSet

public IlvMapGraphicSet(IlvInputStream stream)
                 throws IlvReadFileException
Reads the object from an IlvInputStream.

Parameters:
stream - The input stream to read from.
Throws:
IlvReadFileException - if the format is not correct.
Method Detail

write

public void write(IlvOutputStream stream)
           throws IOException
Writes this IlvMapGraphicPath object to the IlvOutputStream passed as a parameter.

Specified by:
write in interface IlvPersistentObject
Overrides:
write in class IlvGraphicSet
Parameters:
stream - The stream to write to.
Throws:
IOException - if there is a problem writing to stream.

copy

public IlvGraphic copy(IlvCoordinateTransformation transform)
                throws IlvCoordinateTransformationException
Copies the element and applies the specified transformation to its coordinates.

Specified by:
copy in interface IlvMapGraphic
Parameters:
transform - Transformation to apply.
Returns:
A new copied object.
Throws:
IlvCoordinateTransformationException
See Also:
IlvMapGraphic.copy(ilog.views.maps.srs.coordtrans.IlvCoordinateTransformation)

copy

public IlvGraphic copy()
Copies the object. This method copies the object by calling the copy constructor.

Overrides:
copy in class IlvGraphicSet
Returns:
A copy of the object.
See Also:
IlvGraphic

getStyle

public IlvMapStyle getStyle()
Retrieves the IlvMapStyle.

Specified by:
getStyle in interface IlvMapGraphic
Returns:
The IlvMapStyle.
See Also:
IlvMapGraphic.getStyle()

setStyle

public void setStyle(IlvMapStyle style)
Setting the style of an IlvGraphicSet also sets the style of all IlvMapGraphic objects contained in the graphic set.

Specified by:
setStyle in interface IlvMapGraphic
Parameters:
style - The new style.
See Also:
IlvMapGraphic.setStyle(ilog.views.maps.graphic.style.IlvMapStyle)

addObjectAt

public void addObjectAt(IlvGraphic g,
                        int index,
                        boolean redraw)
If the object added to this graphic set is a subclass of IlvMapGraphic, the style of this graphic set is set to that of the object added.

Overrides:
addObjectAt in class IlvGraphicSet
Parameters:
g - The graphic object to add.
index - The index to add g to.
redraw - Set to true to redraw this object.
See Also:
IlvGraphicSet.addObjectAt(ilog.views.IlvGraphic, int, boolean)

makeGeometry

public IlvMapGeometry makeGeometry()
Returns an IlvMapGeometryCollection instance.

Specified by:
makeGeometry in interface IlvMapGraphic
Returns:
An IlvMapGeometryCollection instance.
Since:
JViews 8.0
See Also:
IlvMapGraphic.makeGeometry()


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