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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromString(@NonNull CharBuffer buf, @Nullable org.jhotdraw8.base.converter.IdResolver idResolver) <TT extends BezierPath>
voidtoString(@NonNull Appendable out, @Nullable org.jhotdraw8.base.converter.IdSupplier idSupplier, @Nullable TT value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jhotdraw8.base.converter.Converter
fromString, fromString, fromString, getHelpText, needsIdResolver, toString, toString, toString
-
Constructor Details
-
BezierPathXmlConverter
public BezierPathXmlConverter(boolean nullable)
-
-
Method Details
-
fromString
public @Nullable BezierPath fromString(@NonNull CharBuffer buf, @Nullable org.jhotdraw8.base.converter.IdResolver idResolver) throws ParseException - Specified by:
fromStringin interfaceorg.jhotdraw8.base.converter.Converter<BezierPath>- Throws:
ParseException
-
toString
public <TT extends BezierPath> void toString(@NonNull Appendable out, @Nullable org.jhotdraw8.base.converter.IdSupplier idSupplier, @Nullable TT value) throws IOException - Specified by:
toStringin interfaceorg.jhotdraw8.base.converter.Converter<BezierPath>- Throws:
IOException
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceorg.jhotdraw8.base.converter.Converter<BezierPath>
-