org.jfree.xml.parser.coretypes

Class BasicStrokeReadHandler

Implemented Interfaces:
XmlReadHandler

public class BasicStrokeReadHandler
extends AbstractXmlReadHandler

A SAX handler for reading a BasicStroke object from XML.

To do: this should have a multiplexer in front like the PaintReadHandler

Constructor Summary

BasicStrokeReadHandler()
Creates a new handler.

Method Summary

Object
getObject()
Returns the stroke under construction.
protected void
startParsing(Attributes attrs)
Called at the start of parsing a BasicStroke element, this method reads the attributes and constructs the stroke.

Methods inherited from class org.jfree.xml.parser.AbstractXmlReadHandler

characters, doneParsing, endElement, getHandlerForChild, getRootHandler, getTagName, init, startElement, startParsing

Constructor Details

BasicStrokeReadHandler

public BasicStrokeReadHandler()
Creates a new handler.

Method Details

getObject

public Object getObject()
Returns the stroke under construction.
Specified by:
getObject in interface XmlReadHandler
Returns:
the stroke.

startParsing

protected void startParsing(Attributes attrs)
            throws SAXException
Called at the start of parsing a BasicStroke element, this method reads the attributes and constructs the stroke.
Overrides:
startParsing in interface AbstractXmlReadHandler
Parameters:
attrs - the attributes.