|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.models.RGBList
public class RGBList
A class that has a list of color names associated with its RGB values(integer). This list is used by the com.sas.awt.Color class.
Color,
Serialized Form| Field Summary |
|---|
| Fields inherited from class com.sas.collection.AssociationList |
|---|
items, keys, RB_KEY |
| Fields inherited from class com.sas.collection.BaseCollection |
|---|
allContentsChangedListeners, mappingObject |
| Constructor Summary | |
|---|---|
RGBList()
The default constructor which fills the list with java defined color names as keys and corresponding rgb value as values. |
|
RGBList(java.util.Enumeration e)
A constructor that takes enumeration of java.awt.Color or com.sas.awt.Color objects and creates a list based on that. |
|
| Method Summary | |
|---|---|
void |
add(int hexValue)
Add a RGB value to this list only if the name does not exist. |
void |
add(java.lang.Object c)
Add a com.sas.awt.color object into this list only if the name is not in the list. |
void |
add(java.lang.String name,
int hexValue)
Add a color name and corresponding RGB value to this list only if the name is not in the list. |
java.lang.Object |
clone()
Create a copy of the current model |
Color |
getColor(java.awt.Color jcolor)
Return the java.awt.Color Object corresponding to the color object passed in. |
Color |
getColor(int rgb)
Return the Color corresponding to the rgb value provided. |
Color |
getColor(java.lang.String colorName)
Return the Color corresponding to the name provided. |
java.util.Enumeration |
getColors()
Returns an enumeration of com.sas.awt.Color objects. |
static com.sas.beans.ExtendedBeanInfo |
getExtendedBeanInfo()
|
java.util.Enumeration |
getItems()
Return an enumeration of all the names in the list |
| Methods inherited from class com.sas.collection.AssociationList |
|---|
add, add, addItems, addItems, apply, applyToPairs, clone, contains, containsKey, count, count, countKey, dumpComponent, equals, equals, equals, fireContentsChanged, get, get, get, getIndex, getItems, getKey, getKey, getKey, getKeys, getKeys, getLastIndex, getPairs, getPairs, remove, removeAll, removeAll, removeAllAt, removeAt, removeAt, removeAt, set, set, set, setKey, setSize, sort, sort, toString, toString |
| Methods inherited from class com.sas.collection.BaseCollection |
|---|
addContentsChangedListener, anyContentsChangedListeners, disableEvents, enableEvents, enableEvents, fireContentsChanged, map, removeContentsChangedListener, unmap |
| Methods inherited from interface com.sas.collection.ContentsChangedSource |
|---|
addContentsChangedListener, removeContentsChangedListener |
| Methods inherited from interface com.sas.beans.PropertyChangeSource |
|---|
addPropertyChangeListener, removePropertyChangeListener |
| Constructor Detail |
|---|
public RGBList()
public RGBList(java.util.Enumeration e)
Enumeration - of com.sas.awt.Color objects| Method Detail |
|---|
public static com.sas.beans.ExtendedBeanInfo getExtendedBeanInfo()
public void add(java.lang.String name,
int hexValue)
name - Name of the color to be added.hexValue - int referring to RGB value of the colorpublic void add(int hexValue)
hexValue - RGB value of the color to be added.public void add(java.lang.Object c)
add in interface CollectionInterfaceadd in class AssociationListcom.sas.awt.Color - object to be added.
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface AssociationListInterfaceclone in interface CollectionInterfaceclone in interface DictionaryInterfaceclone in interface OrderedCollectionInterfaceclone in interface StaticCollectionInterfaceclone in interface StaticDictionaryInterfaceclone in interface StaticOrderedCollectionInterfaceclone in interface com.sas.PublicClonableclone in class AssociationListjava.lang.CloneNotSupportedException - if the clone fails.public Color getColor(java.lang.String colorName)
colorName - a String corresponding to a value in this list.
The String must be one of the keys in this list.
Otherwise, the color corresponding to "white" is returned as
a default value.
public Color getColor(int rgb)
rgb - an integer corresponding to an item in the hashtable. If more
than one item exists, the first one is returned.
The rgb value must be one of the items in the hashtable.
Otherwise, the color corresponding to "white" is returned as
a default value.
public Color getColor(java.awt.Color jcolor)
colorobj - a java.awt.Color object.
public java.util.Enumeration getColors()
public java.util.Enumeration getItems()
getItems in interface com.sas.util.EnumerablegetItems in class AssociationListEnumerable.getItems()
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||