|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectecologylab.generic.Debug
ecologylab.xml.types.scalar.ScalarType<java.awt.Color>
ecologylab.xml.types.scalar.ColorType
public class ColorType
Type system entry for java.awt.Color. Uses a hex string as initialization.
| Field Summary |
|---|
| Fields inherited from class ecologylab.xml.types.scalar.ScalarType |
|---|
DEFAULT_DELIMS, DEFAULT_VALUE, DEFAULT_VALUE_STRING |
| Constructor Summary | |
|---|---|
ColorType()
This constructor should only be called once per session, through a static initializer, typically in TypeRegistry. |
|
| Method Summary | |
|---|---|
java.awt.Color |
getInstance(java.lang.String value)
If this is a reference type, build an appropriate Object, given a String
representation. |
java.lang.String |
marshall(java.awt.Color color)
Get a String representation of the instance, using this. |
java.lang.String |
toString(java.lang.reflect.Field field,
java.lang.Object context)
The string representation for a Field of this type |
| Methods inherited from class ecologylab.xml.types.scalar.ScalarType |
|---|
affordsInterestExpression, allowDelimitersInTokens, allowNewLines, appendValue, appendValue, appendValue, appendValue, composedOfTerms, defaultValue, defaultValueLength, defaultValueString, delimeters, getClassName, getTypeClass, illegalChars, isDefaultValue, isDefaultValue, isFloatingPoint, isPrimitive, isReference, needsEscaping, setField, setFieldError |
| Methods inherited from class ecologylab.generic.Debug |
|---|
classSimpleName, closeLoggingFile, debug, debug, debug, debug, debugA, debugA, debugA, debugI, debugI, debugI, error, error, getClassName, getInteractive, getPackageName, getPackageName, getPackageName, initialize, level, level, level, logToFile, print, print, println, println, println, println, println, println, printlnA, printlnA, printlnA, printlnI, printlnI, printlnI, printlnI, setLoggingFile, show, show, superString, toggleInteractive, toString, toString, warning, warning, weird, weird |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ColorType()
To get the instance of this type object for use in translations, call
TypeRegistry.get("java.awt.Color").
| Method Detail |
|---|
public java.awt.Color getInstance(java.lang.String value)
ScalarTypethis is a reference type, build an appropriate Object, given a String
representation. If it is a primitive type, return a boxed value.
getInstance in class ScalarType<java.awt.Color>value - is interpreted as hex-encoded RGB value, in the
same style as HTML & CSS. A # character at the start is unneccesary,
but acceptable.ScalarType.getInstance(java.lang.String)
public java.lang.String toString(java.lang.reflect.Field field,
java.lang.Object context)
toString in class ScalarType<java.awt.Color>public java.lang.String marshall(java.awt.Color color)
marshall in class ScalarType<java.awt.Color>color -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||