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 Summary
FieldsModifier and TypeFieldDescriptionstatic intstatic intstatic int -
Constructor Summary
ConstructorsConstructorDescriptionCreates a plain layer.RMPageLayer(RMPage page, String name) Creates a page layer for a given page and name. -
Method Summary
Modifier 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.RMObject
didChange, didUndo, getAnimAttribute, getClassNameShort, undoClone, undoCopy, undoEquals
-
Field Details
-
StateVisible
public static int StateVisible -
StateInvisible
public static int StateInvisible -
StateLocked
public static int StateLocked
-
-
Constructor Details
-
RMPageLayer
public RMPageLayer()Creates a plain layer. -
RMPageLayer
Creates a page layer for a given page and name.
-
-
Method Details
-
getPage
Returns the page associated with this layer. -
getIndex
public int getIndex()Returns the index of this layer in its page. -
getName
Returns the layer's name. -
setName
Sets the layer's name. -
getChildren
Returns the list of children for this layer. -
setChildren
Sets the list of children for this layer. -
getChildCount
public int getChildCount()Returns the number of children in this layer. -
getChild
Returns the specific child of this layer at the given index. -
addChild
Adds a child to this layer. -
addChild
Adds a child to this layer at the given index. -
addChildren
Adds a list of children to this layer. -
removeChild
Removes a child from this layer. -
removeChildren
Removes a list of children from this layer. -
removeChildren
public void removeChildren()Removes all children from this layer. -
bringShapesToFront
Moves the shapes specified in the given list to the front of this layer's list of shapes. -
sendShapesToBack
Moves the shapes specified in the given list to the back of this layer's list of shapes. -
getLayerState
public int getLayerState()Returns the state of this layer (locked, visible, invisible). -
setLayerState
public void setLayerState(int aState) Returns the state of this layer (locked, visible, invisible). -
isVisible
public boolean isVisible()Returns whether this layer is to be drawn. -
setVisible
public void setVisible(boolean aFlag) Sets whether this layer is to be drawn. -
isLocked
public boolean isLocked()Returns whether this layer is editable. -
setLocked
public void setLocked(boolean aFlag) Sets whether this layer is editable. -
isSelectable
public boolean isSelectable()Sets whether this layer is selectable. -
equals
Standard equals implementation. -
clone
Standard clone implementation. -
copy
Standard copy implementation. -
willChange
public void willChange()Indicates that this layer will change. -
initWithArchiver
Legacy unarchival.- Specified by:
initWithArchiverin interfaceRMArchiver.Archiving- Overrides:
initWithArchiverin classRMObject
-