java.lang.Object
org.jhotdraw8.draw.xml.converter.Path2DDoubleXmlConverter
- All Implemented Interfaces:
org.jhotdraw8.base.converter.Converter<Path2D.Double>
public class Path2DDoubleXmlConverter
extends Object
implements org.jhotdraw8.base.converter.Converter<Path2D.Double>
Converts an
Path2D.Double from/to an XML attribute text.
unicode = '\' , ( 6 * hexd
| hexd , 5 * [hexd] , w
);
escape = ( unicode
| '\' , -( newline | hexd)
) ;
string = string1 | string2 ;
string1 = '"' , { -( '"' ) | '\\' , newline | escape } , '"' ;
string2 = "'" , { -( "'" ) | '\\' , newline | escape } , "'" ;
- Author:
- Werner Randelshofer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable Path2D.DoublefromString(CharBuffer buf, @Nullable org.jhotdraw8.base.converter.IdResolver idResolver) @Nullable Path2D.DoublevoidtoString(Appendable out, @Nullable org.jhotdraw8.base.converter.IdSupplier idSupplier, @Nullable Path2D.Double 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, fromStringNonNull, fromStringNonNull, fromStringNonNull, fromStringNonNull, getHelpText, needsIdResolver, toString, toString, toString
-
Constructor Details
-
Path2DDoubleXmlConverter
public Path2DDoubleXmlConverter()
-
-
Method Details
-
fromString
public @Nullable Path2D.Double fromString(CharBuffer buf, @Nullable org.jhotdraw8.base.converter.IdResolver idResolver) throws ParseException - Specified by:
fromStringin interfaceorg.jhotdraw8.base.converter.Converter<Path2D.Double>- Throws:
ParseException
-
toString
public void toString(Appendable out, @Nullable org.jhotdraw8.base.converter.IdSupplier idSupplier, @Nullable Path2D.Double value) throws IOException - Specified by:
toStringin interfaceorg.jhotdraw8.base.converter.Converter<Path2D.Double>- Throws:
IOException
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceorg.jhotdraw8.base.converter.Converter<Path2D.Double>
-