@ALDDataIOProvider
public class AwtPoint2dDataIOCmdline
extends de.unihalle.informatik.Alida.dataio.provider.cmdline.ALDStandardizedDataIOCmdline
java.awt.geom.Point2D.Double
objects.
java.awt.geom.Point2D.Double object are represented by a string in the following format:
(x;y)
Constructor and Description |
---|
AwtPoint2dDataIOCmdline() |
Modifier and Type | Method and Description |
---|---|
String |
formatAsString(Object obj)
Converts an java.awt.geom.Point2D.Double object to a string-representation in the format
(x;y) . |
Object |
parse(Field field,
Class<?> cl,
String valueString)
A java.awt.geom.Point2D.Double object is created from a string, which holds coordinates
in the following format:
"x;y" "rINT:bINT:gINT[:aINT]" where INT is an integer value in the range [0,255]. |
Collection<Class<?>> |
providedClasses() |
public Collection<Class<?>> providedClasses()
public Object parse(Field field, Class<?> cl, String valueString) throws de.unihalle.informatik.Alida.exceptions.ALDDataIOProviderException
parse
in class de.unihalle.informatik.Alida.dataio.provider.cmdline.ALDStandardizedDataIOCmdline
de.unihalle.informatik.Alida.exceptions.ALDDataIOProviderException
public String formatAsString(Object obj)
(x;y)
.
See ALDStandardizedDataIOCmdline.readData(Field, Class, String)
for further format information.formatAsString
in class de.unihalle.informatik.Alida.dataio.provider.cmdline.ALDStandardizedDataIOCmdline
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.