public static class TopoLayer.ElevationColor
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
int |
alpha
The alpha (transparency) of this object, from 0 to 255.
|
int |
blue
The blue color strength of this object, from 0 to 255.
|
int |
elevation
The elevation value in the default short
DistanceUnit . |
int |
green
The green color strength of this object, from 0 to 255.
|
int |
red
The red color strength of this object, from 0 to 255.
|
int |
rgb
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Creates and returns a copy of this object.
|
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.
|
long |
getEncoding()
Return encoding for storing an ElevationColor in the Preferences.
|
int |
hashCode()
Returns a hash code value for the object.
|
void |
setColor(java.awt.Color color)
Set the Color associated with this elevation.
|
void |
setColor(int argb)
Set the ElevationColor's color to the specified ARGB value.
|
void |
setEncoding(long enc)
Set the ElevationColor to the values associated with the internal encoding.
|
public int elevation
DistanceUnit
.public int red
public int green
public int blue
public int alpha
public int rgb
public void setColor(java.awt.Color color)
color
- Color to usepublic java.lang.Object clone()
clone
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the reference object with which to compare.true
if this object is the same as the obj
argument; false
otherwise.hashCode()
,
HashMap
public int hashCode()
hashCode
in class java.lang.Object
equals(Object)
public long getEncoding()
public void setEncoding(long enc)
enc
- long encoding valuepublic void setColor(int argb)
argb
- ARGB value of color to set