ReportMill 10 API

com.reportmill.shape.graph
Class RMGraphLegend

java.lang.Object
  extended by com.reportmill.base.RMObject
      extended by com.reportmill.shape.RMShape
          extended by com.reportmill.shape.RMRectangle
              extended by com.reportmill.shape.RMText
                  extended by com.reportmill.shape.graph.RMGraphLegend
All Implemented Interfaces:
java.lang.Cloneable

public class RMGraphLegend
extends RMText

An inner class for Legend.


Field Summary
 
Fields inherited from class com.reportmill.shape.RMText
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_FULL, ALIGN_LEFT, ALIGN_MIDDLE, ALIGN_RIGHT, ALIGN_TOP, WRAP_BASIC, WRAP_NONE, WRAP_SCALE
 
Fields inherited from class com.reportmill.shape.RMShape
WRAP_TYPE_BOTH, WRAP_TYPE_NONE
 
Constructor Summary
RMGraphLegend()
          Creates a new graph legend.
 
Method Summary
 RMShape cloneDeep()
          Overrides clone deep to avoid cloning children (just do rebuild).
 void copy(java.lang.Object anObj)
          Copies the attributes from the given object into receiver (for undo).
 RMXString createXString()
          Overrides RMText method to create an xstring that defaults to Arial 10.
 boolean equals(java.lang.Object anObj)
          Standard equals implementation.
 java.lang.Object fromXML(com.reportmill.archiver.RXArchiver anArchiver, com.reportmill.archiver.RXElement anElement)
          XML unarchival.
 void fromXMLDeep(com.reportmill.archiver.RXArchiver anArchiver, com.reportmill.archiver.RXElement anElement)
          XML unarchival - override to suppress unarchival of children (don't really need this).
 int getChildCount()
          Overrides shape implemnetation to actually rebuild.
 RMColor getColor(int anIndex)
          Returns the color at the given index.
 RMGraph getGraph()
          Returns the graph that owns this legend.
 java.lang.String getLegendText()
          Returns the legend text.
 java.lang.String getString(int anIndex)
          Returns the specific string at the given index.
 int getStringCount()
          Returns the number of legend strings.
 void rebuild()
          Notifies Legend to rebuild.
 RMShape rpgClone(com.reportmill.base.ReportMill aReportMill, RMGraphRPG aGraphRPG)
          Returns a RPG'd legend for the graph RPG.
 void setLegendText(java.lang.String aString)
          Sets the legend text.
 void setStrings(java.util.List aStringsList)
          Sets strings list.
 void setWidth(double aWidth)
          Overrides shape implementation to register for rebuild.
 boolean superSelectable()
          Editor method - indicates whether this shape can be super selected.
 com.reportmill.archiver.RXElement toXML(com.reportmill.archiver.RXArchiver anArchiver)
          XML archival.
 void toXMLDeep(com.reportmill.archiver.RXArchiver anArchiver, com.reportmill.archiver.RXElement anElement)
          XML archival - override to suppress archival of children.
 
Methods inherited from class com.reportmill.shape.RMText
clone, fromXMLFinish, getAlign, getAlignString, getAlignVertical, getAlignVerticalString, getBoundsFromTextBounds, getCharSpacing, getCoalesceNewlines, getDrawsSelectionRect, getFont, getFormat, getHeightToFit, getHeightToFit, getLineGap, getLineHeightMax, getLineHeightMin, getLineSpacing, getLinkedText, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getOutline, getPath, getPathInBounds, getPathInBounds, getPathShape, getPerformsWrap, getPolygonForFrag, getText, getTextBounds, getTextColor, getTextLayout, getTextLayout, getTextOrigin, getVisibleEnd, getVisibleStart, getWidthToFit, getWraps, getXString, isAllTextVisible, isStructured, isUnderlined, length, peerDidChange, resolvePageReferences, rpgClone, rpgClonePreprocess, scaleFonts, scaleTextToFit, setAlign, setAlignVertical, setAlignVerticalString, setCharSpacing, setCoalesceNewlines, setDrawsSelectionRect, setFont, setFormat, setHeight, setHeightToFit, setLineGap, setLineHeightMax, setLineHeightMin, setLineSpacing, setLinkedText, setNeedsRepaint, setOutline, setPathShape, setPerformsWrap, setRadius, setText, setTextColor, setUnderlined, setWraps, setXString, toString, turnToChars, turnToPath
 
Methods inherited from class com.reportmill.shape.RMRectangle
getRadius
 
Methods inherited from class com.reportmill.shape.RMShape
acceptsChildren, acceptsMouse, addChild, addChild, bounds, boundsChanged, boundsChanged, bringShapesToFront, canBeUngrouped, childrenSuperSelectImmediately, 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, get, getActionScript, getAnim, getAnim, getAnimator, getAnimator, getAutosizeHeight, getAutosizing, getBounds, getBoundsInside, getBoundsMarked, getBoundsOfChildren, getBoundsOfChildren, getBoundsSuperSelected, getCausesWrap, getCausesWrapType, getChild, getChildAnimator, getChildAnimator, getChildContaining, 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, getFrame, getFrame, getFrameMaxX, getFrameMaxY, getFrameX, getFrameXY, getFrameY, getGroupShape, getHeight, getImageFill, getLayout, getLineWidth, getListKey, getMaxX, getMaxY, getName, getOpacity, getOpacityDeep, getPageBreak, getPageBreakMax, getPageBreakPage, getPageBreakPageMax, getPageCount, getPageShape, getParent, getParentCount, getParents, getPropertyKey, getPropertyKeyCount, getPropertyKeyName, getRoll, getRootShape, getScaleX, getScaleY, getShapesToAncestor, getShapesToDescendant, getShapesToShape, getSize, getSizeP, getSkewX, getSkewY, getStroke, getStrokeColor, getToolClassName, getTransform, getTransformFromShape, getTransformInverse, getTransformToShape, getUndoer, getUrl, getWidth, getX, getXY, getXYP, getY, groupShapes, height, indexOf, indexOf, intersects, invalidate, isAncestor, isDescendant, isLocked, isRoot, isValid, layoutReset, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, notRSS, offsetChildrenXY, offsetXY, page, pageMax, put, putPropertyKey, reclaimChildren, removeChild, removeChild, removeChildren, removeChildren, removeFromParent, revalidate, rpgCloneBase, rpgCloneChildren, rpgCloneNotification, rpgCloneUrl, sendShapesToBack, setActionScript, setAnim, setAutosizeHeight, setAutosizing, setBounds, setBounds, setCausesWrapType, setChildren, setColor, setFill, setFrame, setFrame, setFrameSize, setFrameX, setFrameXY, setFrameXY, setFrameY, setHeightDeep, setHeightToFit, setLayout, setLayoutEnabled, setLineWidth, setLocked, setName, setNeedsRepaint, setOpacity, setParent, setRoll, setScaleX, setScaleXY, setScaleY, setSize, setSize, setSizeDeep, setSizeP, setSizeToFit, setSizeToFit, setSkewX, setSkewXY, setSkewY, setStroke, setStrokeColor, setTime, setUrl, setWidthDeep, setWidthToFit, setX, setXY, setXY, setXYP, setY, sizesToFitChildren, 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

RMGraphLegend

public RMGraphLegend()
Creates a new graph legend.

Method Detail

getGraph

public RMGraph getGraph()
Returns the graph that owns this legend.


createXString

public RMXString createXString()
Overrides RMText method to create an xstring that defaults to Arial 10.


getLegendText

public java.lang.String getLegendText()
Returns the legend text.


setLegendText

public void setLegendText(java.lang.String aString)
Sets the legend text.


getStringCount

public int getStringCount()
Returns the number of legend strings.


getString

public java.lang.String getString(int anIndex)
Returns the specific string at the given index.


setStrings

public void setStrings(java.util.List aStringsList)
Sets strings list.


getColor

public RMColor getColor(int anIndex)
Returns the color at the given index.


rebuild

public void rebuild()
Notifies Legend to rebuild.


getChildCount

public int getChildCount()
Overrides shape implemnetation to actually rebuild.

Overrides:
getChildCount in class RMShape

setWidth

public void setWidth(double aWidth)
Overrides shape implementation to register for rebuild.

Overrides:
setWidth in class RMShape

equals

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

Overrides:
equals in class RMText

copy

public void copy(java.lang.Object anObj)
Copies the attributes from the given object into receiver (for undo).

Overrides:
copy in class RMText

cloneDeep

public RMShape cloneDeep()
Overrides clone deep to avoid cloning children (just do rebuild).

Overrides:
cloneDeep in class RMShape

rpgClone

public RMShape rpgClone(com.reportmill.base.ReportMill aReportMill,
                        RMGraphRPG aGraphRPG)
Returns a RPG'd legend for the graph RPG.


superSelectable

public boolean superSelectable()
Editor method - indicates whether this shape can be super selected.

Overrides:
superSelectable in class RMText

toXML

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

Overrides:
toXML in class RMText

fromXML

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

Overrides:
fromXML in class RMText

toXMLDeep

public void toXMLDeep(com.reportmill.archiver.RXArchiver anArchiver,
                      com.reportmill.archiver.RXElement anElement)
XML archival - override to suppress archival of children.

Overrides:
toXMLDeep in class RMShape

fromXMLDeep

public void fromXMLDeep(com.reportmill.archiver.RXArchiver anArchiver,
                        com.reportmill.archiver.RXElement anElement)
XML unarchival - override to suppress unarchival of children (don't really need this).

Overrides:
fromXMLDeep in class RMShape

ReportMill 10 API