com.davisor.graphics.chart
Class ChartXMLDataBufferFactory

java.lang.Object
  extended bycom.davisor.graphics.chart.ChartXMLDataBufferFactory
All Implemented Interfaces:
com.davisor.xml.sax.DocumentHandlerFactory

public class ChartXMLDataBufferFactory
extends java.lang.Object
implements com.davisor.xml.sax.DocumentHandlerFactory

ChartXMLDataBufferFactory is a content and document handler factory that produces and configures new ChartXMLDocumentHandler instances. These document handlers can read Chart XML data documents, and create corresponding ChartXMLDataBuffer instances from them.

See Also:
ChartXMLDocumentHandler, ChartXMLDataBuffer

Field Summary
protected  java.net.URL context
          Factory URL context for ChartXMLDataBuffers.
protected  java.util.Map pageAttributesMap
          holder for objects from the jsp page context
 
Constructor Summary
ChartXMLDataBufferFactory()
          Constructs a new ChartXMLDataBufferFactory without any spesific URL context.
ChartXMLDataBufferFactory(java.net.URL context)
          Constructs a new ChartXMLDataBufferFactory with a spesific URL context.
 
Method Summary
 org.xml.sax.ContentHandler createContentHandler()
          Creates a new ChartXMLDataBuffer instance with current factory URL context.
 org.xml.sax.DocumentHandler createDocumentHandler()
          Creates a new ChartXMLDataBuffer instance with current factory URL context.
 java.net.URL getURLContext()
          Gets the current factory URL context.
 void setAttributesMap(java.util.Map attributesMap)
          Way to pass objects from the jsp page context to the data sources
 void setURLContext(java.net.URL context)
          Sets the URL context for this factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected java.net.URL context
Factory URL context for ChartXMLDataBuffers.


pageAttributesMap

protected java.util.Map pageAttributesMap
holder for objects from the jsp page context

Constructor Detail

ChartXMLDataBufferFactory

public ChartXMLDataBufferFactory()
Constructs a new ChartXMLDataBufferFactory without any spesific URL context.

See Also:
setURLContext(java.net.URL)

ChartXMLDataBufferFactory

public ChartXMLDataBufferFactory(java.net.URL context)
Constructs a new ChartXMLDataBufferFactory with a spesific URL context.

Parameters:
context - URL context for ChartXMLDocumentHandlers created by this factory (may be null)
See Also:
setURLContext(java.net.URL)
Method Detail

setAttributesMap

public void setAttributesMap(java.util.Map attributesMap)
Way to pass objects from the jsp page context to the data sources

Parameters:
attributesMap - attribute name -> object mappping

createContentHandler

public org.xml.sax.ContentHandler createContentHandler()
Creates a new ChartXMLDataBuffer instance with current factory URL context.

Specified by:
createContentHandler in interface com.davisor.xml.sax.DocumentHandlerFactory
See Also:
ChartXMLDataBuffer.ChartXMLDataBuffer(URL)

createDocumentHandler

public org.xml.sax.DocumentHandler createDocumentHandler()
Creates a new ChartXMLDataBuffer instance with current factory URL context.

Specified by:
createDocumentHandler in interface com.davisor.xml.sax.DocumentHandlerFactory
See Also:
ChartXMLDataBuffer.ChartXMLDataBuffer(URL)

getURLContext

public java.net.URL getURLContext()
Gets the current factory URL context.

Returns:
URL context for ChartXMLDocumentHandlers created by this factory (may be null)
See Also:
setURLContext(java.net.URL)

setURLContext

public void setURLContext(java.net.URL context)
Sets the URL context for this factory. The URL context will be used to locale images and textures specified with incomplete relative URL addresses.

Parameters:
context - URL context for ChartXMLDocumentHandlers created by this factory (may be null)
See Also:
getURLContext()


Copyright © 2001-2004 Davisor Oy. All Rights Reserved.