Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.ka2ddo.yaac.gui
Class TopoLayer.ElevationColor

    java.lang.Object
      org.ka2ddo.yaac.gui.TopoLayer.ElevationColor

All Implemented Interfaces:
  java.io.Serializable, java.lang.Cloneable

Enclosing class:
  TopoLayer

    public static class TopoLayer.ElevationColor

extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

Object representing a rendering color and corresponding elevation level in meters.

See Also:
  Serialized Form

Field Summary
`int` | `alpha`
`int` | `blue`
`int` | `elevation`
`int` | `green`
`int` | `red`
`int` | `rgb`

Method Summary
`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.

Methods inherited from class java.lang.Object
`finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### elevation

    public int elevation

### red

    public int red

### green

    public int green

### blue

    public int blue

### alpha

    public int alpha

### rgb

    public int rgb

Method Detail

### setColor

    public void setColor(java.awt.Color color)

  Set the Color associated with this elevation.

  Parameters:
    `color` - Color to use

### clone

    public java.lang.Object clone()

  Creates and returns a copy of this object.

  Overrides:
    `clone` in class `java.lang.Object`
  Returns:
    a clone of this instance.

### equals

    public boolean equals(java.lang.Object obj)

  Indicates whether some other object is "equal to" this one.

  Overrides:
    `equals` in class `java.lang.Object`
  Parameters:
    `obj` - the reference object with which to compare.
  Returns:
    `true` if this object is the same as the obj argument; `false` otherwise.
  See Also:
    `hashCode()`, `HashMap`

### hashCode

    public int hashCode()

  Returns a hash code value for the object.

  Overrides:
    `hashCode` in class `java.lang.Object`
  Returns:
    a hash code value for this object.
  See Also:
    `equals(Object)`

### getEncoding

    public long getEncoding()

  Return encoding for storing an ElevationColor in the Preferences.

  Returns:
    long encoding of ElevationColor's internal value

### setEncoding

    public void setEncoding(long enc)

  Set the ElevationColor to the values associated with the internal encoding.

  Parameters:
    `enc` - long encoding value

### setColor

    public void setColor(int argb)

  Set the ElevationColor's color to the specified ARGB value.

  Parameters:
    `argb` - ARGB value of color to set

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD