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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromString(@NonNull CharBuffer buf, @Nullable org.jhotdraw8.base.converter.IdResolver idResolver) <TT extends PathMetrics>
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
-
PathMetricsXmlConverter
public PathMetricsXmlConverter(boolean nullable)
-
-
Method Details
-
fromString
public @Nullable PathMetrics fromString(@NonNull CharBuffer buf, @Nullable org.jhotdraw8.base.converter.IdResolver idResolver) throws ParseException - Specified by:
fromStringin interfaceorg.jhotdraw8.base.converter.Converter<PathMetrics>- Throws:
ParseException
-
toString
public <TT extends PathMetrics> 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<PathMetrics>- Throws:
IOException
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceorg.jhotdraw8.base.converter.Converter<PathMetrics>
-