ilog.views.svg
Class IlvSVGGraphicSet

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

public class IlvSVGGraphicSet
extends IlvGraphicSet

A subclass of IlvGraphicSet that allows you to load the contents of an SVG file into it. When saving an IlvSVGGraphicSet to an IVL file, only the reference to the SVG file will be saved, not all the IlvGraphic returned by IlvGraphicSet.getObjects(); this means that if you manually added some IlvGraphic to the set in addition to the one loaded from the SVG file, they will not be saved. Warning: this class has been moved from ilog.views.graphic to ilog.views.svg from JViews 5.5 to JViews 6.0 version.

Since:
JViews 5.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
IlvSVGGraphicSet()
          Creates a new empty IlvSVGGraphicSet instance.
IlvSVGGraphicSet(IlvInputStream in)
          Reads a new IlvSVGGraphicSet from an input stream.
IlvSVGGraphicSet(IlvSVGGraphicSet source)
          Creates a new copy of an IlvSVGGraphicSet.
 
Method Summary
 IlvGraphic copy()
          Returns a new copy of this IlvSVGGraphicSet.
 String getFileURL()
          Gets the String URL of the SVG file.
 String getURL()
          Deprecated. Beginning with ILOG JViews 8.0, use the method getFileURL() instead.
 void setFileURL(String file)
          Sets the SVG file of the graphic set.
 void setURL(String file)
          Deprecated. Beginning with ILOG JViews 8.0, use the method setFileURL(java.lang.String) instead.
 void write(IlvOutputStream stream)
          Writes the object to an IlvOutputStream.
 
Methods inherited from class ilog.views.graphic.IlvGraphicSet
addGraphicBagHierarchyListener, addManagerViewsHierarchyListener, addObject, addObjectAt, 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

IlvSVGGraphicSet

public IlvSVGGraphicSet()
Creates a new empty IlvSVGGraphicSet instance.


IlvSVGGraphicSet

public IlvSVGGraphicSet(IlvInputStream in)
                 throws IlvReadFileException,
                        IOException
Reads a new IlvSVGGraphicSet from an input stream.

Parameters:
in - The input stream.
Throws:
IlvReadFileException - if the stream is not correctly formatted.
IOException - if an error occurs while reading the stream.

IlvSVGGraphicSet

public IlvSVGGraphicSet(IlvSVGGraphicSet source)
Creates a new copy of an IlvSVGGraphicSet.

Parameters:
source - The graphic to copy.
Method Detail

copy

public IlvGraphic copy()
Returns a new copy of this IlvSVGGraphicSet.

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

setURL

public void setURL(String file)
Deprecated. Beginning with ILOG JViews 8.0, use the method setFileURL(java.lang.String) instead.

Sets the SVG file for the graphic set.

Parameters:
file - The String URL of the SVG file.

getURL

public String getURL()
Deprecated. Beginning with ILOG JViews 8.0, use the method getFileURL() instead.

Gets the String URL of the SVG file.


setFileURL

public void setFileURL(String file)
                throws IlvReadFileException,
                       IOException
Sets the SVG file of the graphic set.

Parameters:
file - The String URL of the SVG file.
Throws:
IlvReadFileException - if the stream is not correctly formatted.
IOException - if an error occurs while reading the stream.
Since:
JViews 8.0

getFileURL

public String getFileURL()
Gets the String URL of the SVG file.

Since:
JViews 8.0

write

public void write(IlvOutputStream stream)
           throws IOException
Writes the object to an IlvOutputStream. You should not call this method directly; instead, you should use the write methods of the manager.

Specified by:
write in interface IlvPersistentObject
Overrides:
write in class IlvGraphicSet
Parameters:
stream - The output stream.
Throws:
IOException - thrown when an exception occurs during the write operation for this object.


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