Package com.reportmill.shape
Class RMPageLayer
- java.lang.Object
- 
- com.reportmill.base.RMObject
- 
- com.reportmill.shape.RMPageLayer
 
 
- 
- All Implemented Interfaces:
- RMArchiver.Archiving,- java.lang.Cloneable
 
 public class RMPageLayer extends RMObject 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 SummaryFields Modifier and Type Field Description static intStateInvisiblestatic intStateLockedstatic intStateVisible
 - 
Constructor SummaryConstructors Constructor Description RMPageLayer()Creates a plain layer.RMPageLayer(RMPage page, java.lang.String name)Creates a page layer for a given page and name.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChild(RMShape aChild)Adds a child to this layer.voidaddChild(RMShape aChild, int anIndex)Adds a child to this layer at the given index.voidaddChildren(java.util.List list)Adds a list of children to this layer.voidbringShapesToFront(java.util.List shapes)Moves the shapes specified in the given list to the front of this layer's list of shapes.java.lang.Objectclone()Standard clone implementation.voidcopy(java.lang.Object anObj)Standard copy implementation.booleanequals(java.lang.Object anObj)Standard equals implementation.RMShapegetChild(int anIndex)Returns the specific child of this layer at the given index.intgetChildCount()Returns the number of children in this layer.java.util.ListgetChildren()Returns the list of children for this layer.intgetIndex()Returns the index of this layer in its page.intgetLayerState()Returns the state of this layer (locked, visible, invisible).java.lang.StringgetName()Returns the layer's name.RMPagegetPage()Returns the page associated with this layer.java.lang.ObjectinitWithArchiver(RMArchiver anArchiver)Legacy unarchival.booleanisLocked()Returns whether this layer is editable.booleanisSelectable()Sets whether this layer is selectable.booleanisVisible()Returns whether this layer is to be drawn.voidremoveChild(RMShape aChild)Removes a child from this layer.voidremoveChildren()Removes all children from this layer.voidremoveChildren(java.util.List someChildren)Removes a list of children from this layer.voidsendShapesToBack(java.util.List shapes)Moves the shapes specified in the given list to the back of this layer's list of shapes.voidsetChildren(java.util.List aList)Sets the list of children for this layer.voidsetLayerState(int aState)Returns the state of this layer (locked, visible, invisible).voidsetLocked(boolean aFlag)Sets whether this layer is editable.voidsetName(java.lang.String aName)Sets the layer's name.voidsetVisible(boolean aFlag)Sets whether this layer is to be drawn.voidwillChange()Indicates that this layer will change.- 
Methods inherited from class com.reportmill.base.RMObjectdidChange, didUndo, getAnimAttribute, getClassNameShort, undoClone, undoCopy, undoEquals
 
- 
 
- 
- 
- 
Constructor Detail- 
RMPageLayerpublic RMPageLayer() Creates a plain layer.
 - 
RMPageLayerpublic RMPageLayer(RMPage page, java.lang.String name) Creates a page layer for a given page and name.
 
- 
 - 
Method Detail- 
getPagepublic RMPage getPage() Returns the page associated with this layer.
 - 
getIndexpublic int getIndex() Returns the index of this layer in its page.
 - 
getNamepublic java.lang.String getName() Returns the layer's name.
 - 
setNamepublic void setName(java.lang.String aName) Sets the layer's name.
 - 
getChildrenpublic java.util.List getChildren() Returns the list of children for this layer.
 - 
setChildrenpublic void setChildren(java.util.List aList) Sets the list of children for this layer.
 - 
getChildCountpublic int getChildCount() Returns the number of children in this layer.
 - 
getChildpublic RMShape getChild(int anIndex) Returns the specific child of this layer at the given index.
 - 
addChildpublic void addChild(RMShape aChild) Adds a child to this layer.
 - 
addChildpublic void addChild(RMShape aChild, int anIndex) Adds a child to this layer at the given index.
 - 
addChildrenpublic void addChildren(java.util.List list) Adds a list of children to this layer.
 - 
removeChildpublic void removeChild(RMShape aChild) Removes a child from this layer.
 - 
removeChildrenpublic void removeChildren(java.util.List someChildren) Removes a list of children from this layer.
 - 
removeChildrenpublic void removeChildren() Removes all children from this layer.
 - 
bringShapesToFrontpublic void bringShapesToFront(java.util.List shapes) Moves the shapes specified in the given list to the front of this layer's list of shapes.
 - 
sendShapesToBackpublic void sendShapesToBack(java.util.List shapes) Moves the shapes specified in the given list to the back of this layer's list of shapes.
 - 
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).
 - 
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.
 - 
equalspublic boolean equals(java.lang.Object anObj) Standard equals implementation.- Overrides:
- equalsin class- java.lang.Object
 
 - 
clonepublic java.lang.Object clone() Standard clone implementation.
 - 
copypublic void copy(java.lang.Object anObj) Standard copy implementation.
 - 
willChangepublic void willChange() Indicates that this layer will change.
 - 
initWithArchiverpublic java.lang.Object initWithArchiver(RMArchiver anArchiver) Legacy unarchival.- Specified by:
- initWithArchiverin interface- RMArchiver.Archiving
- Overrides:
- initWithArchiverin class- RMObject
 
 
- 
 
-