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
A handler that can write the XML description for a
BasicStroke
object.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate String
toString
(float[] dashArray) A utility method that converts a dash array (from aBasicStroke
object) to aString
.void
Performs the writing of a single object.Methods inherited from class org.jfree.xml.writer.AbstractXmlWriteHandler
getRootHandler, setRootHandler
-
Constructor Details
-
BasicStrokeWriteHandler
public BasicStrokeWriteHandler()Creates a new handler.
-
-
Method Details
-
write
public void write(String tagName, Object object, XMLWriter writer, String mPlexAttribute, String mPlexValue) throws 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:
IOException
- if there is an I/O problem.XMLWriterException
- if there is a problem with the writer.
-
toString
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.
-