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 a BasicStroke object.
  • 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

      private String toString(float[] dashArray)
      A utility method that converts a dash array (from a BasicStroke object) to a String.
      Parameters:
      dashArray - the dash array.
      Returns:
      a String representing the dash array.