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 int | 
getDefaultState()
Returns the default state for this layer. 
 | 
abstract String | 
getName()
Returns the name of this layer. 
 | 
abstract boolean | 
isLocked()
Returns whether this layer is locked. 
 | 
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 | 
setDefaultState(int state)
Sets the default state for this layer. 
 | 
abstract void | 
setLocked(boolean locked)
Sets the locked state of the layer. 
 | 
abstract void | 
setName(String name)
Sets the name of this layer. 
 | 
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 void setName(String name)
public abstract boolean isVisible()
public abstract void setVisible(boolean visible)
visible - The new visibility.public abstract int getDefaultState()
public abstract void setDefaultState(int state)
state - The new initial visibility.public abstract boolean isLocked()
public abstract void setLocked(boolean locked)
locked - The new locked state.public abstract void addLayerListener(LayerListener l)
l - The new layer listener.public abstract void removeLayerListener(LayerListener l)
l - The listener to remove.