Package org.jfree.xml.writer.coretypes
Class BasicStrokeWriteHandler
- java.lang.Object
-
- org.jfree.xml.writer.AbstractXmlWriteHandler
-
- org.jfree.xml.writer.coretypes.BasicStrokeWriteHandler
-
- All Implemented Interfaces:
XmlWriteHandler
public class BasicStrokeWriteHandler extends AbstractXmlWriteHandler
A handler that can write the XML description for aBasicStroke
object.
-
-
Constructor Summary
Constructors Constructor Description BasicStrokeWriteHandler()
Creates a new handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.String
toString(float[] dashArray)
A utility method that converts a dash array (from aBasicStroke
object) to aString
.void
write(java.lang.String tagName, java.lang.Object object, XMLWriter writer, java.lang.String mPlexAttribute, java.lang.String mPlexValue)
Performs the writing of a single object.-
Methods inherited from class org.jfree.xml.writer.AbstractXmlWriteHandler
getRootHandler, setRootHandler
-
-
-
-
Method Detail
-
write
public void write(java.lang.String tagName, java.lang.Object object, XMLWriter writer, java.lang.String mPlexAttribute, java.lang.String mPlexValue) throws java.io.IOException, XMLWriterException
Performs the writing of a single object.- Parameters:
tagName
- the tag name.object
- the object (BasicStroke
expected).writer
- the writer.mPlexAttribute
- ??mPlexValue
- ??- Throws:
java.io.IOException
- if there is an I/O problem.XMLWriterException
- if there is a problem with the writer.
-
toString
private java.lang.String toString(float[] dashArray)
A utility method that converts a dash array (from aBasicStroke
object) to aString
.- Parameters:
dashArray
- the dash array.- Returns:
- a
String
representing the dash array.
-
-