|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.freecol.common.resources.Resource
net.sf.freecol.common.resources.ColorResource
public class ColorResource
A Resource
wrapping a Color
.
Resource
,
Color
Field Summary | |
---|---|
static java.lang.String |
SCHEME
|
Method Summary | |
---|---|
java.awt.Color |
getColor()
Gets the Color represented by this resource. |
static java.awt.Color |
getColor(java.lang.String colorName)
Returns the Color identified by the given
string. |
Methods inherited from class net.sf.freecol.common.resources.Resource |
---|
getResourceLocator |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SCHEME
Method Detail |
---|
public static java.awt.Color getColor(java.lang.String colorName)
Color
identified by the given
string. This is either a hexadecimal integer prefixed with
"0x", or the name of a field of the Color class.
colorName
- a String
value
Color
valuepublic java.awt.Color getColor()
Color
represented by this resource.
Color
in it's original size.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |