org.omegahat.Graphics.Utils
Class ColorTable

java.lang.Object
  |
  +--java.util.Dictionary
        |
        +--java.util.Hashtable
              |
              +--java.util.Properties
                    |
                    +--org.omegahat.Environment.Utils.TrimmedProperties
                          |
                          +--org.omegahat.Graphics.Utils.ColorTable
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class ColorTable
extends TrimmedProperties

Table of named Java AWT colors, usually read from a properties file and resolved on demand.

See Also:
Serialized Form

Inner classes inherited from class java.util.Map
java.util.Map.Entry
 
Fields inherited from class org.omegahat.Environment.Utils.TrimmedProperties
booleanStrings, stripQuotes
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
ColorTable()
           
ColorTable(java.lang.Class c)
           
ColorTable(java.io.File file)
           
ColorTable(java.io.InputStream stream)
           
 
Method Summary
 java.awt.Color getColor(java.lang.Class c)
           
 java.awt.Color getColor(java.lang.Class c, boolean recursive)
           
 ColorParserInt parser()
           
 java.lang.String shortClassName(java.lang.Class c)
           
 java.lang.String shortClassName(java.lang.String str)
           
 
Methods inherited from class org.omegahat.Environment.Utils.TrimmedProperties
asBoolean, isBoolean, load, load, merge, merge, parse, processElement, processElements, stringList, stringList, stripQuotes, stripQuotes, trim
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, propertyNames, save, setProperty, store
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ColorTable

public ColorTable()

ColorTable

public ColorTable(java.io.InputStream stream)

ColorTable

public ColorTable(java.io.File file)

ColorTable

public ColorTable(java.lang.Class c)
Method Detail

getColor

public java.awt.Color getColor(java.lang.Class c)

getColor

public java.awt.Color getColor(java.lang.Class c,
                               boolean recursive)

shortClassName

public java.lang.String shortClassName(java.lang.Class c)

shortClassName

public java.lang.String shortClassName(java.lang.String str)

parser

public ColorParserInt parser()