Package org.jfree.xml.writer.coretypes
Class ColorWriteHandler
- java.lang.Object
-
- org.jfree.xml.writer.AbstractXmlWriteHandler
-
- org.jfree.xml.writer.coretypes.ColorWriteHandler
-
- All Implemented Interfaces:
XmlWriteHandler
public class ColorWriteHandler extends AbstractXmlWriteHandler
A handler for writing aColorobject.
-
-
Constructor Summary
Constructors Constructor Description ColorWriteHandler()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.StringencodeColor(java.awt.Color color)private java.lang.StringencodeInt(int i)voidwrite(java.lang.String tagName, java.lang.Object object, XMLWriter writer, java.lang.String mPlexAttribute, java.lang.String mPlexValue)Performs the writing of aColorobject.-
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, XMLWriterExceptionPerforms the writing of aColorobject.- Parameters:
tagName- the tag name.object- theColorobject.writer- the writer.mPlexAttribute- ??.mPlexValue- ??.- Throws:
java.io.IOException- if there is an I/O error.XMLWriterException- if there is a writer error.
-
encodeColor
private java.lang.String encodeColor(java.awt.Color color)
-
encodeInt
private java.lang.String encodeInt(int i)
-
-