ilog.cpl.graph.background
Class IlpSVGBackground

java.lang.Object
  extended by ilog.cpl.graph.background.IlpAbstractBackground
      extended by ilog.cpl.graph.background.IlpSVGBackground
All Implemented Interfaces:
IlpBackground, IlvBatchable
Direct Known Subclasses:
IlpSVGZBackground

public class IlpSVGBackground
extends IlpAbstractBackground

Support for using Scalable Vector Graphics (SVG) files as background.

This background type ignores load-on-demand hints and always loads the entire file.

Since:
JViews 7.5

Field Summary
 
Fields inherited from class ilog.cpl.graph.background.IlpAbstractBackground
managerLayers
 
Fields inherited from interface ilog.cpl.graph.background.IlpBackground
LOAD_ON_DEMAND_PROPERTY, THREADED_PROPERTY, URL_PROPERTY, VISIBLE_PROPERTY
 
Constructor Summary
IlpSVGBackground()
           
 
Method Summary
 void create(IlvManager manager, int index, IlpViewsView view)
          Populates the IlvManager with the contents of the background file at the specified index.
protected  void readFromStream(IlvGraphicSet svgGraphic, InputStream stream)
          Reads the SVG file into a given IlvGraphicSet.
 
Methods inherited from class ilog.cpl.graph.background.IlpAbstractBackground
addLayer, addLayers, addPropertyChangeListener, dispose, endBatch, getManagerLayer, getManagerLayers, getManagerLayersCount, getProperties, getProperty, getUrl, isLoadOnDemand, isThreaded, isVisible, removeLayer, removeLayers, removePropertyChangeListener, setLoadOnDemand, setProperty, setThreaded, setUrl, setVisible, startBatch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlpSVGBackground

public IlpSVGBackground()
Method Detail

create

public void create(IlvManager manager,
                   int index,
                   IlpViewsView view)
            throws IlpBackgroundHandlingException
Populates the IlvManager with the contents of the background file at the specified index.

Specified by:
create in interface IlpBackground
Overrides:
create in class IlpAbstractBackground
Parameters:
manager - the manager where the graphics should be added to
index - the IlvManagerLayer index in the manager from which this background should start inserting the graphics.
view - the associated IlpViewsView
Throws:
IlpBackgroundHandlingException - in case there is a problem handling this operation.
See Also:
IlpAbstractBackground.create(ilog.views.IlvManager, int, ilog.cpl.graphic.views.IlpViewsView)

readFromStream

protected void readFromStream(IlvGraphicSet svgGraphic,
                              InputStream stream)
                       throws IOException,
                              IlvReadFileException
Reads the SVG file into a given IlvGraphicSet.

Should be overridden in subclasses.

Throws:
IOException
IlvReadFileException
Internal method or field: do not use!


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