Class BezierPathXmlConverter

java.lang.Object
org.jhotdraw8.draw.xml.converter.BezierPathXmlConverter
All Implemented Interfaces:
org.jhotdraw8.base.converter.Converter<BezierPath>
Direct Known Subclasses:
PathConnectionBezierPathXmlConverter

public class BezierPathXmlConverter extends Object implements org.jhotdraw8.base.converter.Converter<BezierPath>
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

    • BezierPathXmlConverter

      public BezierPathXmlConverter(boolean nullable)
  • Method Details

    • fromString

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

      public <TT extends BezierPath> 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<BezierPath>
      Throws:
      IOException
    • getDefaultValue

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