Package com.reportmill.shape
Class RMPageLayer
java.lang.Object
com.reportmill.base.RMObject
com.reportmill.shape.RMPageLayer
- All Implemented Interfaces:
- RMArchiver.Archiving,- 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 intstatic intstatic int
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a plain layer.RMPageLayer(RMPage page, String name) 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 list) 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.voidStandard copy implementation.booleanStandard equals implementation.getChild(int anIndex) Returns the specific child of this layer at the given index.intReturns the number of children in this layer.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.initWithArchiver(RMArchiver anArchiver) Legacy unarchival.booleanisLocked()Returns whether this layer is editable.booleanSets whether this layer is selectable.booleanReturns whether this layer is to be drawn.voidremoveChild(RMShape aChild) Removes a child from this layer.voidRemoves all children from this layer.voidremoveChildren(List someChildren) 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.voidsetChildren(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.voidSets the layer's name.voidsetVisible(boolean aFlag) Sets whether this layer is to be drawn.voidIndicates that this layer will change.Methods inherited from class com.reportmill.base.RMObjectdidChange, didUndo, getAnimAttribute, getClassNameShort, undoClone, undoCopy, undoEquals
- 
Field Details- 
StateVisiblepublic static int StateVisible
- 
StateInvisiblepublic static int StateInvisible
- 
StateLockedpublic static int StateLocked
 
- 
- 
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.
- 
getIndexpublic int getIndex()Returns the index of this layer in its page.
- 
getNameReturns the layer's name.
- 
setNameSets the layer's name.
- 
getChildrenReturns the list of children for this layer.
- 
setChildrenSets the list of children for this layer.
- 
getChildCountpublic int getChildCount()Returns the number of children in this layer.
- 
getChildReturns the specific child of this layer at the given index.
- 
addChildAdds a child to this layer.
- 
addChildAdds a child to this layer at the given index.
- 
addChildrenAdds a list of children to this layer.
- 
removeChildRemoves a child from this layer.
- 
removeChildrenRemoves a list of children from this layer.
- 
removeChildrenpublic void removeChildren()Removes all children from this layer.
- 
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.
- 
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.
- 
equalsStandard equals implementation.
- 
cloneStandard clone implementation.
- 
copyStandard copy implementation.
- 
willChangepublic void willChange()Indicates that this layer will change.
- 
initWithArchiverLegacy unarchival.- Specified by:
- initWithArchiverin interface- RMArchiver.Archiving
- Overrides:
- initWithArchiverin class- RMObject
 
 
-