ReportMill 10 API

com.reportmill.shape
Class RMLabels

java.lang.Object
  extended by com.reportmill.base.RMObject
      extended by com.reportmill.shape.RMShape
          extended by com.reportmill.shape.RMLabels
All Implemented Interfaces:
java.lang.Cloneable

public class RMLabels
extends RMShape

This class represents a block of labels.


Field Summary
 
Fields inherited from class com.reportmill.shape.RMShape
WRAP_TYPE_BOTH, WRAP_TYPE_NONE
 
Constructor Summary
RMLabels()
          Creates a new labels template.
 
Method Summary
 boolean canBeUngrouped()
          Editor method - indicates that labels block can't be ungrouped.
 boolean childrenSuperSelectImmediately()
          Editor method - indicates that labels child should super-select immediately.
 java.lang.Object clone()
          Standard clone implementation.
 void copy(java.lang.Object anObj)
          Standard copy implementation.
 boolean equals(java.lang.Object anObj)
          Standard equals implementation.
 void fixSize()
          Resets labels block width and height if any of labels other attributes have changed.
 java.lang.Object fromXML(com.reportmill.archiver.RXArchiver anArchiver, com.reportmill.archiver.RXElement anElement)
          XML unarchival.
 RMGrouping getGrouping()
          Returns the grouping for this labels shape.
 RMLabel getLabel()
          Returns the default label shape.
 float getLabelHeight()
          Returns the height of an individual label.
 float getLabelWidth()
          Returns the width of an individual label.
 java.lang.String getListKey()
          Returns the list key associated with labels.
 int getNumberOfColumns()
          Returns the number of columns in the labels block.
 int getNumberOfRows()
          Returns the number of rows in the labels block.
 boolean getPaginate()
          Returns whether the labels should paginate.
 RMSort getSort(int anIndex)
          Returns the specific sort at the given index.
 int getSortCount()
          Returns the number of sorts associated with labels.
 java.util.List getSorts()
          Returns the list of sorts associated with labels.
 float getSpacingHeight()
          Returns the spacing between labels vertically.
 float getSpacingWidth()
          Returns the spacing between labels horizontally.
 RMShape rpgClone(com.reportmill.base.ReportMill reportMill)
          RPG clone - returns individual pages of RPG labels.
 void rpgClonePreprocess(com.reportmill.base.ReportMill reportMill)
          RPG clone - actual work happens in preprocess so RM knows how many pages are needed.
 void setHeight(double value)
          Overrides shape method to recalc spacing height.
 void setListKey(java.lang.String aKeyPath)
          Sets the list key associated with labels.
 void setNumberOfColumns(int aValue)
          Sets the number of columns in the labels block.
 void setNumberOfRows(int aValue)
          Sets the number of rows in the labels block.
 void setPaginate(boolean aFlag)
          Sets whether the labels should paginate.
 void setSpacingHeight(float aValue)
          Sets the spacing between labels vertically.
 void setSpacingWidth(float aValue)
          Sets the spacing between labels horizontally.
 void setWidth(double aWidth)
          Overrides shape method to recalc spacing width.
 boolean superSelectable()
          Editor method - indicates that labels block is super-selectable.
 com.reportmill.archiver.RXElement toXML(com.reportmill.archiver.RXArchiver anArchiver)
          XML archival.
 
Methods inherited from class com.reportmill.shape.RMShape
acceptsChildren, acceptsMouse, addChild, addChild, bounds, boundsChanged, boundsChanged, bringShapesToFront, cloneDeep, contains, convertedPointFromShape, convertedPointToShape, convertedRectFromShape, convertedRectToShape, convertedSizeFromShape, convertedSizeToShape, convertedVectorFromShape, convertedVectorToShape, convertFromShape, convertPathFromShape, convertPathToShape, convertPointFromShape, convertPointToShape, convertRectFromShape, convertRectToShape, convertSizeFromShape, convertSizeToShape, convertToShape, convertVectorFromShape, convertVectorToShape, copyShape, createLayout, delete, didChange, divideShapeFromEdge, divideShapeFromTop, doLayout, fromXMLDeep, get, getActionScript, getAnim, getAnim, getAnimator, getAnimator, getAutosizeHeight, getAutosizing, getBounds, getBoundsInside, getBoundsMarked, getBoundsOfChildren, getBoundsOfChildren, getBoundsSuperSelected, getCausesWrap, getCausesWrapType, getChild, getChildAnimator, getChildAnimator, getChildContaining, getChildCount, getChildCountHitable, getChildCountLayout, getChildCountVisible, getChildHitable, getChildLast, getChildLayout, getChildren, getChildrenIntersecting, getChildrenWhoCauseWrap, getChildrenWithClass, getChildrenWithClass, getChildVisible, getChildWithClass, getChildWithName, getColor, getCommonAncestor, getDatasetKey, getDatasetKeyDeep, getDatasetKeyShape, getDocument, getFill, getFill, getFill, getFillCount, getFills, getFont, getFormat, getFrame, getFrame, getFrameMaxX, getFrameMaxY, getFrameX, getFrameXY, getFrameY, getGroupShape, getHeight, getHeightToFit, getImageFill, getLayout, getLineWidth, getMaxX, getMaxY, getName, getOpacity, getOpacityDeep, getOutline, getPageBreak, getPageBreakMax, getPageBreakPage, getPageBreakPageMax, getPageCount, getPageShape, getParent, getParentCount, getParents, getPath, getPathInBounds, getPropertyKey, getPropertyKeyCount, getPropertyKeyName, getRoll, getRootShape, getScaleX, getScaleY, getShapesToAncestor, getShapesToDescendant, getShapesToShape, getSize, getSizeP, getSkewX, getSkewY, getStroke, getStrokeColor, getTextColor, getToolClassName, getTransform, getTransformFromShape, getTransformInverse, getTransformToShape, getUndoer, getUrl, getWidth, getWidthToFit, getX, getXY, getXYP, getY, groupShapes, height, indexOf, indexOf, intersects, invalidate, isAncestor, isDescendant, isLocked, isRoot, isUnderlined, isValid, layoutReset, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, notRSS, offsetChildrenXY, offsetXY, page, pageMax, put, putPropertyKey, reclaimChildren, removeChild, removeChild, removeChildren, removeChildren, removeFromParent, resolvePageReferences, revalidate, rpgCloneBase, rpgCloneChildren, rpgCloneNotification, rpgCloneUrl, sendShapesToBack, setActionScript, setAnim, setAutosizeHeight, setAutosizing, setBounds, setBounds, setCausesWrapType, setChildren, setColor, setFill, setFont, setFormat, setFrame, setFrame, setFrameSize, setFrameX, setFrameXY, setFrameXY, setFrameY, setHeightDeep, setHeightToFit, setLayout, setLayoutEnabled, setLineWidth, setLocked, setName, setNeedsRepaint, setNeedsRepaint, setOpacity, setOutline, setParent, setRoll, setScaleX, setScaleXY, setScaleY, setSize, setSize, setSizeDeep, setSizeP, setSizeToFit, setSizeToFit, setSkewX, setSkewXY, setSkewY, setStroke, setStrokeColor, setTextColor, setTime, setUnderlined, setUrl, setWidthDeep, setWidthToFit, setX, setXY, setXY, setXYP, setY, sizesToFitChildren, toString, toXMLDeep, undoClone, undoCopy, undoEquals, undoerAddDirtyObject, undoerDisable, undoerEnable, undoerSetUndoTitle, validate, width, willChange, willChange, x, y
 
Methods inherited from class com.reportmill.base.RMObject
didUndo, getAnimAttribute, getClassNameShort
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RMLabels

public RMLabels()
Creates a new labels template.

Method Detail

getLabel

public RMLabel getLabel()
Returns the default label shape.


getListKey

public java.lang.String getListKey()
Returns the list key associated with labels.

Overrides:
getListKey in class RMShape

setListKey

public void setListKey(java.lang.String aKeyPath)
Sets the list key associated with labels.


getGrouping

public RMGrouping getGrouping()
Returns the grouping for this labels shape.


getSorts

public java.util.List getSorts()
Returns the list of sorts associated with labels.


getSortCount

public int getSortCount()
Returns the number of sorts associated with labels.


getSort

public RMSort getSort(int anIndex)
Returns the specific sort at the given index.


getNumberOfRows

public int getNumberOfRows()
Returns the number of rows in the labels block.


setNumberOfRows

public void setNumberOfRows(int aValue)
Sets the number of rows in the labels block.


getNumberOfColumns

public int getNumberOfColumns()
Returns the number of columns in the labels block.


setNumberOfColumns

public void setNumberOfColumns(int aValue)
Sets the number of columns in the labels block.


getSpacingWidth

public float getSpacingWidth()
Returns the spacing between labels horizontally.


setSpacingWidth

public void setSpacingWidth(float aValue)
Sets the spacing between labels horizontally.


getSpacingHeight

public float getSpacingHeight()
Returns the spacing between labels vertically.


setSpacingHeight

public void setSpacingHeight(float aValue)
Sets the spacing between labels vertically.


getPaginate

public boolean getPaginate()
Returns whether the labels should paginate.


setPaginate

public void setPaginate(boolean aFlag)
Sets whether the labels should paginate.


getLabelWidth

public float getLabelWidth()
Returns the width of an individual label.


getLabelHeight

public float getLabelHeight()
Returns the height of an individual label.


setWidth

public void setWidth(double aWidth)
Overrides shape method to recalc spacing width.

Overrides:
setWidth in class RMShape

setHeight

public void setHeight(double value)
Overrides shape method to recalc spacing height.

Overrides:
setHeight in class RMShape

fixSize

public void fixSize()
Resets labels block width and height if any of labels other attributes have changed.


rpgClonePreprocess

public void rpgClonePreprocess(com.reportmill.base.ReportMill reportMill)
RPG clone - actual work happens in preprocess so RM knows how many pages are needed.

Overrides:
rpgClonePreprocess in class RMShape

rpgClone

public RMShape rpgClone(com.reportmill.base.ReportMill reportMill)
RPG clone - returns individual pages of RPG labels.

Overrides:
rpgClone in class RMShape

equals

public boolean equals(java.lang.Object anObj)
Standard equals implementation.

Overrides:
equals in class RMShape

clone

public java.lang.Object clone()
Standard clone implementation.

Overrides:
clone in class RMShape

copy

public void copy(java.lang.Object anObj)
Standard copy implementation.

Overrides:
copy in class RMShape

superSelectable

public boolean superSelectable()
Editor method - indicates that labels block is super-selectable.

Overrides:
superSelectable in class RMShape

canBeUngrouped

public boolean canBeUngrouped()
Editor method - indicates that labels block can't be ungrouped.

Overrides:
canBeUngrouped in class RMShape

childrenSuperSelectImmediately

public boolean childrenSuperSelectImmediately()
Editor method - indicates that labels child should super-select immediately.

Overrides:
childrenSuperSelectImmediately in class RMShape

toXML

public com.reportmill.archiver.RXElement toXML(com.reportmill.archiver.RXArchiver anArchiver)
XML archival.

Overrides:
toXML in class RMShape

fromXML

public java.lang.Object fromXML(com.reportmill.archiver.RXArchiver anArchiver,
                                com.reportmill.archiver.RXElement anElement)
XML unarchival.

Overrides:
fromXML in class RMShape

ReportMill 10 API