Package com.inductiveautomation.rm.shape
Class RMPageLayer
java.lang.Object
com.inductiveautomation.rm.base.RMListenerList
com.inductiveautomation.rm.base.RMObject
com.inductiveautomation.rm.shape.RMPageLayer
- All Implemented Interfaces:
- RMPropertyChanger,- Cloneable
This class represents a page layer, a standard feature of page layout applications that lets you manage the children
 of a page as separate groups, so that some can be made unselectable or invisible to ease template editing.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a plain layer.RMPageLayer(RMPage aPage, String aName) Creates a page layer for a given page and name.
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdds a child to this layer.voidAdds a child to this layer at the given index.voidaddChildren(List<RMShape> theShapes) Adds a list of children to this layer.voidbringShapesToFront(List shapes) Moves the shapes specified in the given list to the front of this layer's list of shapes.clone()Standard clone implementation.getChild(int anIndex) Returns the specific child of this layer at the given index.intReturns the number of children in this layer.intgetChildIndex(RMShape aChild) Returns the index of a given child.Returns the list of children for this layer.intgetIndex()Returns the index of this layer in its page.intReturns the state of this layer (locked, visible, invisible).getName()Returns the layer's name.getPage()Returns the page associated with this layer.intReturns the index of this layer's first child in the page.booleanisLocked()Returns whether this layer is editable.booleanSets whether this layer is selectable.booleanReturns whether this layer is to be drawn.removeChild(int anIndex) Removes a child from this layer.intremoveChild(RMShape aChild) Removes a child from this layer.voidRemoves all children from this layer.voidremoveChildren(List<RMShape> theShapes) Removes a list of children from this layer.voidsendShapesToBack(List shapes) Moves the shapes specified in the given list to the back of this layer's list of shapes.voidsetLayerState(int aState) Returns the state of this layer (locked, visible, invisible).voidsetLocked(boolean aFlag) Sets whether this layer is editable.voidSets the layer's name.voidsetVisible(boolean aFlag) Sets whether this layer is to be drawn.Methods inherited from class com.inductiveautomation.rm.base.RMObjectaddPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange, toStringMethods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
- 
Field Details- 
StateVisiblepublic static final int StateVisible- See Also:
 
- 
StateInvisiblepublic static final int StateInvisible- See Also:
 
- 
StateLockedpublic static final int StateLocked- See Also:
 
 
- 
- 
Constructor Details- 
RMPageLayerpublic RMPageLayer()Creates a plain layer.
- 
RMPageLayerCreates a page layer for a given page and name.
 
- 
- 
Method Details- 
getPageReturns the page associated with this layer.
- 
getNameReturns the layer's name.
- 
setNameSets the layer's name.
- 
isVisiblepublic boolean isVisible()Returns whether this layer is to be drawn.
- 
setVisiblepublic void setVisible(boolean aFlag) Sets whether this layer is to be drawn.
- 
isLockedpublic boolean isLocked()Returns whether this layer is editable.
- 
setLockedpublic void setLocked(boolean aFlag) Sets whether this layer is editable.
- 
isSelectablepublic boolean isSelectable()Sets whether this layer is selectable.
- 
getLayerStatepublic int getLayerState()Returns the state of this layer (locked, visible, invisible).
- 
setLayerStatepublic void setLayerState(int aState) Returns the state of this layer (locked, visible, invisible).
- 
getChildCountpublic int getChildCount()Returns the number of children in this layer.
- 
getChildReturns the specific child of this layer at the given index.
- 
getChildrenReturns the list of children for this layer.
- 
addChildAdds a child to this layer.
- 
addChildAdds a child to this layer at the given index.
- 
removeChildRemoves a child from this layer.
- 
removeChildRemoves a child from this layer.
- 
addChildrenAdds a list of children to this layer.
- 
removeChildrenRemoves a list of children from this layer.
- 
removeChildrenpublic void removeChildren()Removes all children from this layer.
- 
getIndexpublic int getIndex()Returns the index of this layer in its page.
- 
getChildIndexReturns the index of a given child.
- 
getPageChildIndexpublic int getPageChildIndex()Returns the index of this layer's first child in the page.
- 
bringShapesToFrontMoves the shapes specified in the given list to the front of this layer's list of shapes.
- 
sendShapesToBackMoves the shapes specified in the given list to the back of this layer's list of shapes.
- 
cloneStandard clone implementation.- Overrides:
- clonein class- RMListenerList
 
 
-