|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mapquest.ColorStyle
Constants used for specifying color values. When using DTStyles you may reset the color back to the its default color from the style file state by specifying INVALID.
| Field Summary | |
static ColorStyle |
BLACK
The color black. |
static ColorStyle |
BLUE
The color blue. |
static ColorStyle |
CYAN
The color cyan. |
static ColorStyle |
DARK_GRAY
The color dark gray. |
static ColorStyle |
GRAY
The color gray. |
static ColorStyle |
GREEN
The color green. |
static ColorStyle |
INVALID
Invalid color. |
static ColorStyle |
INVALID_COLOR
Deprecated. Use INVALID instead. |
static ColorStyle |
LIGHT_GRAY
The color light gray. |
static ColorStyle |
MAGENTA
The color magenta. |
static ColorStyle |
mqBlack
Deprecated. Use BLACK instead. |
static ColorStyle |
mqBlue
Deprecated. Use BLUE instead. |
static ColorStyle |
mqCyan
Deprecated. Use CYAN instead. |
static ColorStyle |
mqDarkGray
Deprecated. Use DARK_GRAY instead. |
static ColorStyle |
mqGray
Deprecated. Use GRAY instead. |
static ColorStyle |
mqGreen
Deprecated. Use GREEN instead. |
static ColorStyle |
mqInvalidColor
Deprecated. Use INVALID instead. |
static ColorStyle |
mqLightGray
Deprecated. Use LIGHT_GRAY instead. |
static ColorStyle |
mqMagenta
Deprecated. Use MAGENTA instead. |
static ColorStyle |
mqOrange
Deprecated. Use ORANGE instead. |
static ColorStyle |
mqPink
Deprecated. Use PINK instead. |
static ColorStyle |
mqRed
Deprecated. Use RED instead. |
static ColorStyle |
mqWhite
Deprecated. Use WHITE instead. |
static ColorStyle |
mqYellow
Deprecated. Use YELLOW instead. |
static ColorStyle |
ORANGE
The color orange. |
static ColorStyle |
PINK
The color pink. |
static ColorStyle |
RED
The color red. |
static ColorStyle |
WHITE
The color white. |
static ColorStyle |
YELLOW
The color yellow. |
| Method Summary | |
boolean |
equals(java.lang.Object otherObject)
Compares this object to the specified object. |
static ColorStyle |
from_int(int i)
Deprecated. Use fromInt instead. |
static ColorStyle |
fromInt(int i)
Creates a ColorStyle object based on the specified combined int value consisting of the blue component in bits 16-23, the green component in bits 8-15, and the red component in bits 0-7. |
static ColorStyle |
fromRGB(int rgb)
Creates a ColorStyle object based on the specified combined RGB value consisting of the red component in bits 16-23, the green component in bits 8-15, and the blue component in bits 0-7. |
static ColorStyle |
fromRGB(int r,
int g,
int b)
Creates a ColorStyle object based on the specified red, green, and blue values in the range (0 - 255). |
int |
getRGB()
Returns the RGB value representing the color in the default sRGB ColorModel. |
int |
hashCode()
Returns a hash code for this ColorStyle. |
int |
intValue()
Returns an int type representing this object consisting of the blue component in bits 16-23, the green component in bits 8-15, and the red component in bits 0-7. |
java.lang.String |
toString()
Returns a string representation of this object. |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final ColorStyle mqInvalidColor
INVALID instead.
public static final ColorStyle INVALID_COLOR
INVALID instead.
public static final ColorStyle INVALID
public static final ColorStyle mqBlack
BLACK instead.
public static final ColorStyle BLACK
public static final ColorStyle mqBlue
BLUE instead.
public static final ColorStyle BLUE
public static final ColorStyle mqCyan
CYAN instead.
public static final ColorStyle CYAN
public static final ColorStyle mqDarkGray
DARK_GRAY instead.
public static final ColorStyle DARK_GRAY
public static final ColorStyle mqGray
GRAY instead.
public static final ColorStyle GRAY
public static final ColorStyle mqGreen
GREEN instead.
public static final ColorStyle GREEN
public static final ColorStyle mqLightGray
LIGHT_GRAY instead.
public static final ColorStyle LIGHT_GRAY
public static final ColorStyle mqMagenta
MAGENTA instead.
public static final ColorStyle MAGENTA
public static final ColorStyle mqOrange
ORANGE instead.
public static final ColorStyle ORANGE
public static final ColorStyle mqPink
PINK instead.
public static final ColorStyle PINK
public static final ColorStyle mqRed
RED instead.
public static final ColorStyle RED
public static final ColorStyle mqWhite
WHITE instead.
public static final ColorStyle WHITE
public static final ColorStyle mqYellow
YELLOW instead.
public static final ColorStyle YELLOW
| Method Detail |
public static final ColorStyle fromInt(int i)
i - the combined BGR components
ColorStyle object.public static final ColorStyle from_int(int i)
fromInt instead.
i - the combined BGR components
ColorStyle object.public static final ColorStyle fromRGB(int rgb)
rgb - the combined RGB components
ColorStyle object.
public static final ColorStyle fromRGB(int r,
int g,
int b)
r - the Red component (0 - 255).g - the Green component (0 - 255).b - the Blue component (0 - 255).
ColorStyle object.public java.lang.String toString()
ColorStyle.public int intValue()
public int getRGB()
public boolean equals(java.lang.Object otherObject)
otherObject - the object to compare this ColorStyle against.
public int hashCode()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||