public class Layer
extends java.lang.Object
implements java.io.Externalizable
Constructor and Description |
---|
Layer() |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Registers
listener so that it will receive events when
the properties of this layer change. |
boolean |
getLocked()
Gets a value indicating whether the layer is locked.
|
java.lang.String |
getTitle()
Gets a title associated with the layer.
|
boolean |
getVisible()
Gets a value indicating whether the layer is visible.
|
int |
getZIndex()
Gets the z-index of the layer.
|
void |
readExternal(java.io.ObjectInput in)
Implements Externalizable.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Unregisters
listener so that it will no longer
receive layer events. |
void |
setLocked(boolean value)
Sets a value indicating whether the layer is locked.
|
void |
setTitle(java.lang.String value)
Sets a title associated with the layer.
|
void |
setVisible(boolean value)
Sets a value indicating whether the layer is visible.
|
void |
setZIndex(int value)
Sets the z-index of the layer.
|
void |
writeExternal(java.io.ObjectOutput out)
Implements Externalizable.
|
public int getZIndex()
public void setZIndex(int value)
value
- An integer value specifying the position of the layer
within the diagram Z order.public boolean getVisible()
Visible
property.public void setVisible(boolean value)
Visible
property.value
- A boolean value specifying if the layer is visible.public boolean getLocked()
Locked
property.public void setLocked(boolean value)
Locked
property.value
- A boolean value specifying if the layer is locked.public java.lang.String getTitle()
public void setTitle(java.lang.String value)
value
- A String containing the layer's title.public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
so that it will receive events when
the properties of this layer change.listener
- An object implementing the PropertyChangeListener
interface.public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
so that it will no longer
receive layer events.listener
- An object implementing the PropertyChangeListener
interface.