@ALDDataIOProvider
public class AwtColorDataIOCmdline
extends de.unihalle.informatik.Alida.dataio.provider.cmdline.ALDStandardizedDataIOCmdline
java.awt.Color
objects.
java.awt.Color object are represented by a string in the following format:
"rINT:bINT:gINT[:aINT]"
where INT is an integer value in the range [0,255]. The specification of an alpha-value (aINT)
is optional and defaults to a255 if not specified.
TODO: Change to more readable format that is valid as argument for ALDOpRunner !!
Constructor and Description |
---|
AwtColorDataIOCmdline() |
Modifier and Type | Method and Description |
---|---|
String |
formatAsString(Object obj)
Converts an java.awt.Color object to a string-representation in the format "rINT:bINT:gINT:aINT".
|
Object |
parse(Field field,
Class<?> cl,
String valueString)
A java.awt.Color object is created from a string, which holds color information
in the following format:
"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)
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.