Class PathMetricsXmlConverter

java.lang.Object
org.jhotdraw8.draw.xml.converter.PathMetricsXmlConverter
All Implemented Interfaces:
org.jhotdraw8.base.converter.Converter<PathMetrics>

public class PathMetricsXmlConverter extends Object implements org.jhotdraw8.base.converter.Converter<PathMetrics>
Converts an BezierNodeList path to an XML attribute value.

The null value will be converted to the CSS identifier "none".

Author:
Werner Randelshofer
  • Constructor Details

    • PathMetricsXmlConverter

      public PathMetricsXmlConverter(boolean nullable)
  • Method Details

    • fromString

      public @Nullable PathMetrics fromString(CharBuffer buf, @Nullable org.jhotdraw8.base.converter.IdResolver idResolver) throws ParseException
      Specified by:
      fromString in interface org.jhotdraw8.base.converter.Converter<PathMetrics>
      Throws:
      ParseException
    • toString

      public <TT extends PathMetrics> void toString(Appendable out, @Nullable org.jhotdraw8.base.converter.IdSupplier idSupplier, @Nullable TT value) throws IOException
      Specified by:
      toString in interface org.jhotdraw8.base.converter.Converter<PathMetrics>
      Throws:
      IOException
    • getDefaultValue

      public @Nullable PathMetrics getDefaultValue()
      Specified by:
      getDefaultValue in interface org.jhotdraw8.base.converter.Converter<PathMetrics>