public class RMPageLayer extends RMObject
Modifier and Type | Field and Description |
---|---|
static int |
StateInvisible |
static int |
StateLocked |
static int |
StateVisible |
Constructor and Description |
---|
RMPageLayer()
Creates a plain layer.
|
RMPageLayer(RMPage aPage,
java.lang.String aName)
Creates a page layer for a given page and name.
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(RMShape aChild)
Adds a child to this layer.
|
void |
addChild(RMShape aChild,
int anIndex)
Adds a child to this layer at the given index.
|
void |
addChildren(java.util.List<RMShape> theShapes)
Adds a list of children to this layer.
|
void |
bringShapesToFront(java.util.List shapes)
Moves the shapes specified in the given list to the front of this layer's list of shapes.
|
java.lang.Object |
clone()
Standard clone implementation.
|
RMShape |
getChild(int anIndex)
Returns the specific child of this layer at the given index.
|
int |
getChildCount()
Returns the number of children in this layer.
|
int |
getChildIndex(RMShape aChild)
Returns the index of a given child.
|
java.util.List<RMShape> |
getChildren()
Returns the list of children for this layer.
|
int |
getIndex()
Returns the index of this layer in its page.
|
int |
getLayerState()
Returns the state of this layer (locked, visible, invisible).
|
java.lang.String |
getName()
Returns the layer's name.
|
RMPage |
getPage()
Returns the page associated with this layer.
|
int |
getPageChildIndex()
Returns the index of this layer's first child in the page.
|
boolean |
isLocked()
Returns whether this layer is editable.
|
boolean |
isSelectable()
Sets whether this layer is selectable.
|
boolean |
isVisible()
Returns whether this layer is to be drawn.
|
java.lang.Object |
removeChild(int anIndex)
Removes a child from this layer.
|
int |
removeChild(RMShape aChild)
Removes a child from this layer.
|
void |
removeChildren()
Removes all children from this layer.
|
void |
removeChildren(java.util.List<RMShape> theShapes)
Removes a list of children from this layer.
|
void |
sendShapesToBack(java.util.List shapes)
Moves the shapes specified in the given list to the back of this layer's list of shapes.
|
void |
setLayerState(int aState)
Returns the state of this layer (locked, visible, invisible).
|
void |
setLocked(boolean aFlag)
Sets whether this layer is editable.
|
void |
setName(java.lang.String aName)
Sets the layer's name.
|
void |
setVisible(boolean aFlag)
Sets whether this layer is to be drawn.
|
addPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange, toString
addListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
public static final int StateVisible
public static final int StateInvisible
public static final int StateLocked
public RMPageLayer()
public RMPageLayer(RMPage aPage, java.lang.String aName)
public RMPage getPage()
public java.lang.String getName()
public void setName(java.lang.String aName)
public boolean isVisible()
public void setVisible(boolean aFlag)
public boolean isLocked()
public void setLocked(boolean aFlag)
public boolean isSelectable()
public int getLayerState()
public void setLayerState(int aState)
public int getChildCount()
public RMShape getChild(int anIndex)
public java.util.List<RMShape> getChildren()
public void addChild(RMShape aChild)
public void addChild(RMShape aChild, int anIndex)
public java.lang.Object removeChild(int anIndex)
public int removeChild(RMShape aChild)
public void addChildren(java.util.List<RMShape> theShapes)
public void removeChildren(java.util.List<RMShape> theShapes)
public void removeChildren()
public int getIndex()
public int getChildIndex(RMShape aChild)
public int getPageChildIndex()
public void bringShapesToFront(java.util.List shapes)
public void sendShapesToBack(java.util.List shapes)
public java.lang.Object clone()
clone
in class RMListenerList