public class IlvSVGGraphicSet extends IlvGraphicSet
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.IlvGraphicSet.DelegateObjectInteractor
list
Constructor and Description |
---|
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 . |
Modifier and Type | Method and Description |
---|---|
IlvGraphic |
copy()
Returns a new copy of this
IlvSVGGraphicSet . |
String |
getFileURL()
Gets the
String URL of the SVG file. |
String |
getURL()
Deprecated.
Beginning with Perforce 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 Perforce JViews 8.0, use the method
setFileURL(java.lang.String) instead. |
void |
write(IlvOutputStream stream)
Writes the object to an
IlvOutputStream . |
addGraphicBagHierarchyListener, addManagerViewsHierarchyListener, addObject, addObjectAt, applyToObject, applyToObjectImpl, applyTransform, baseTextDirectionChanged, boundingBox, componentOrientationChanged, contains, contains, draw, drawCore, enableGraphicBagHierarchyEventForwarding, enableManagerViewsHierarchyEventForwarding, fireGraphicBagHierarchyEvent, fireManagerViewsHierarchyEvent, firstContains, getAlpha, getCardinal, getClip, getIndex, getIntersectionWithOutline, getObject, getObject, getObjectName, getObjects, getOriginalPopupMenu, getPopupMenu, getToolTipText, invalidateAndApplyToObject, invalidateBBoxCache, isBaseTextDirectionSensitive, isComponentOrientationSensitive, isLocaleSensitive, isPersistent, moveObject, needsGraphicBagHierarchyEvent, needsManagerViewsHierarchyEvent, reDrawObj, reDrawRegion, removeAll, removeGraphicBagHierarchyListener, removeManagerViewsHierarchyListener, removeObject, removeObjectAt, reshapeObject, setAlpha, setBaseTextDirection, setClip, setGraphicBag, setInsideApply, setObjectName, shouldElementBePartOfClip, shouldRestrictListOfElementsForClip, zoomable
calcResolvedBaseTextDirection, getBaseTextDirection, getComponentOrientation, getResolvedBaseTextDirection, getULocale, invalidateBidiCache, setBaseTextDirection, setBaseTextDirectionDuringConstruction
addActionListener, addNamedPropertyListener, allViewsRemoved, blinkingStateOn, boundingBox, callDraw, getAndAssociateObjectInteractor, getBlinkingAction, getBlinkingObjectOwner, getBlinkingOffPeriod, getBlinkingOnPeriod, getCenter, getDefaultInteractor, getGraphicBag, GetGraphicObject, getLocale, getName, getNamedProperty, getObjectInteractor, getPopupMenu, getPopupMenuName, getProperty, getToolTipBaseTextDirection, getToolTipText, getTopLevelGraphicBag, getTransferData, getTransferDataFlavors, getZOrderIndex, hasProperty, inside, intersects, isDataFlavorSupported, isEditable, isInApplyToObject, isMovable, isSelectable, isVisible, localeChanged, makeSelection, move, move, moveResize, needsViewNotification, notifyObjectInteractorToManager, processActionEvent, reDraw, registerBlinkingResource, removeActionListener, removeNamedProperty, removeNamedPropertyListener, removeProperty, replaceProperty, resize, rotate, scale, setBackground, setBlinkingAction, setBlinkingOffPeriod, setBlinkingOnPeriod, setEditable, setFillOn, setForeground, setInApplyToObject, setMovable, setName, setNamedProperty, setNameImpl, setObjectInteractor, setPopupMenu, setPopupMenuName, setProperty, setSelectable, setStrokeOn, setToolTipBaseTextDirection, setToolTipText, setVisible, setZOrderIndex, toString, translate, updateNeedsViewNotification, usesBidiMarkers, viewAddedOrRemoved
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGraphicBag
public IlvSVGGraphicSet()
IlvSVGGraphicSet
instance.public IlvSVGGraphicSet(IlvInputStream in) throws IlvReadFileException, IOException
IlvSVGGraphicSet
from an input stream.in
- The input stream.IlvReadFileException
- if the stream is not
correctly formatted.IOException
- if an error occurs while reading
the stream.public IlvSVGGraphicSet(IlvSVGGraphicSet source)
IlvSVGGraphicSet
.source
- The graphic to copy.public IlvGraphic copy()
IlvSVGGraphicSet
.copy
in class IlvGraphicSet
IlvGraphic
@Deprecated public void setURL(String file)
setFileURL(java.lang.String)
instead.file
- The String
URL of the SVG file.@Deprecated public String getURL()
getFileURL()
instead.String
URL of the SVG file.public void setFileURL(String file) throws IlvReadFileException, IOException
file
- The String
URL of the SVG file.IlvReadFileException
- if the stream is not
correctly formatted.IOException
- if an error occurs while reading
the stream.public String getFileURL()
String
URL of the SVG file.public void write(IlvOutputStream stream) throws IOException
IlvOutputStream
.
You should not call this
method directly; instead, you should use the write
methods of the manager.write
in interface IlvPersistentObject
write
in class IlvGraphicSet
stream
- The output stream.IOException
- thrown when an exception occurs during
the write operation for this object.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.