public abstract class Layer extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
STATE_OFF |
static int |
STATE_ON |
| Constructor and Description |
|---|
Layer() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addLayerListener(LayerListener l)
Adds an object that will listen to changes in the layer's visible state.
|
abstract String |
getName()
Returns the name of this layer.
|
abstract boolean |
isVisible()
Returns whether this layer is currently visible.
|
abstract void |
removeLayerListener(LayerListener l)
Removes a layer listener from the list of active listeners.
|
abstract void |
setVisible(boolean visible)
Sets the visibility for this layer.
|
public static final int STATE_OFF
public static final int STATE_ON
public abstract String getName()
public abstract boolean isVisible()
public abstract void setVisible(boolean visible)
visible - The new visibility.public abstract void addLayerListener(LayerListener l)
l - The new layer listener.public abstract void removeLayerListener(LayerListener l)
l - The listener to remove.