public class RMGraphLegend extends RMText
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_FULL, ALIGN_LEFT, ALIGN_MIDDLE, ALIGN_RIGHT, ALIGN_TOP, WRAP_BASIC, WRAP_NONE, WRAP_SCALE
WRAP_TYPE_BOTH, WRAP_TYPE_NONE
Constructor and Description |
---|
RMGraphLegend()
Creates a new graph legend.
|
Modifier and Type | Method and Description |
---|---|
RMShape |
cloneDeep()
Overrides clone deep to avoid cloning children (just do rebuild).
|
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 |
fromXMLShape(com.reportmill.archiver.RXArchiver anArchiver,
com.reportmill.archiver.RXElement anElement,
java.lang.Object anOwner)
XML unarchival.
|
void |
fromXMLShapeChildren(com.reportmill.archiver.RXArchiver anArchiver,
com.reportmill.archiver.RXElement anElement,
java.lang.Object anOwner)
XML unarchival - override to suppress unarchival of children (don't really need this).
|
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,
RMGraph aGraph)
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(float aWidth)
Overrides shape implementation to register for rebuild.
|
boolean |
superSelectable()
Editor method - indicates whether this shape can be super selected.
|
com.reportmill.archiver.RXElement |
toXMLShape(com.reportmill.archiver.RXArchiver anArchiver,
java.lang.Object anOwner)
XML archival.
|
void |
toXMLShapeChildren(com.reportmill.archiver.RXArchiver anArchiver,
com.reportmill.archiver.RXElement anElement,
java.lang.Object anOwner)
XML archival - override to suppress archival of children.
|
void |
validate()
Overrides shape implementation to actually rebuild.
|
clone, copyText, fromXMLFinish, getAlign, getAlignString, getAlignVertical, getAlignVerticalString, getBoundsFromTextBounds, getCharSpacing, getCoalesceNewlines, getDrawsSelectionRect, getFont, getFormat, getHeightToFit, getHeightToFit, getLineGap, getLineHeightMax, getLineHeightMin, getLineSpacing, getLinkedText, getMargin, getMarginBottom, getMarginDefault, getMarginLeft, getMarginRight, getMarginString, getMarginTop, getMaskPath, getObject, getOutline, getPath, getPathInBounds, getPathInBounds, getPathShape, getPerformsWrap, getPreferredSizeImpl, getText, getTextBounds, getTextColor, getTextLayout, getTextLayout, getVisibleEnd, getVisibleStart, getWidthToFit, getWraps, getXString, isAllTextVisible, isStructured, isUnderlined, length, paginate, paintShape, peerDidChange, repaint, resolvePageReferences, scaleFonts, setAlign, setAlignVertical, setAlignVerticalString, setCharSpacing, setCoalesceNewlines, setDrawsSelectionRect, setFont, setFormat, setHeightToFit, setLineGap, setLineHeightMax, setLineHeightMin, setLineSpacing, setLinkedText, setMargin, setMarginString, setObject, setOutline, setPathShape, setPerformsWrap, setRadius, setReportMill, setText, setTextColor, setUnderlined, setWraps, setXString, textDidChange, toString
getRadius
acceptsChildren, acceptsMouse, addBinding, addChild, addChild, addChild, addChild, animUpdate, bounds, bringShapesToFront, checkBindings, childrenSuperSelectImmediately, contains, convertedPointFromShape, convertedPointToShape, convertedRectFromShape, convertedRectToShape, convertedSizeFromShape, convertedSizeToShape, convertedVectorFromShape, convertedVectorToShape, convertFromShape, convertPathFromShape, convertPathToShape, convertPointFromShape, convertPointToShape, convertRectFromShape, convertRectToShape, convertSizeFromShape, convertSizeToShape, convertToShape, convertVectorFromShape, convertVectorToShape, copyShape, createDivideShapeRemainder, createLayout, createPartClone, divideShapeFromEdge, divideShapeFromTop, doLayout, firePropertyChange, fromXML, fromXMLShapeLayout, get, get, getAction, getAncestor, getAncestorCount, getAncestorInCommon, getAnim, getAnim, getAnimator, getAnimator, getAspectMapped, getAspects, getAutosizing, getAutosizingDefault, getBinder, getBinding, getBinding, getBindingCount, getBounds, getBoundsInside, getBoundsMarked, getBoundsMarkedDeep, getBoundsOfChildren, getCausesWrap, getCausesWrapType, getChild, getChildAnimator, getChildAnimator, getChildArray, getChildClipShape, getChildContaining, getChildCount, getChildLast, getChildren, getChildrenIntersecting, getChildrenWhoCauseWrap, getChildrenWithClass, getChildrenWithClass, getChildWithClass, getChildWithName, getClipShape, getColor, getDatasetEntity, getDatasetKey, getDocument, getEffect, getFill, getFloat, getFrame, getFrame, getFrameMaxX, getFrameMaxY, getFrameX, getFrameXY, getFrameY, getHeight, getHover, getImageFill, getLayout, getLineWidth, getMaximumSize, getMaximumSizeProperty, getMaxX, getMaxY, getMinimumSize, getMinimumSizeProperty, getName, getOpacity, getOpacityDeep, getOriginal, getPageBreak, getPageBreakMax, getPageBreakPage, getPageBreakPageMax, getPageShape, getParent, getParentWithClass, getPart, getPartCount, getPartDeep, getPartDeepCount, getPreferredSize, getPreferredSizeProperty, getPreferredSizeX, getReportMill, getRoll, getRootShape, getScaleX, getScaleY, getShapesToAncestor, getShapesToDescendant, getShapesToShape, getSize, getSizeP, getSkewX, getSkewY, getStroke, getStrokeColor, getStrokeWidth, getTransform, getTransformFromShape, getTransformInverse, getTransformToShape, getUndoer, getUrl, getVisbileBounds, getVisibleBounds, getVisibleBounds, getVisibleBounds, getWidth, getX, getXY, getXYP, getY, height, indexOf, indexOfChild, intersects, isAncestor, isAnimProperty, isDescendant, isEditing, isHittable, isHittableChild, isLocked, isMouseDown, isMouseOver, isRoot, isShowing, isValid, isViewing, isVisible, isVisibleChild, isVisibleDeep, layoutReset, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, notRSS, offsetChildrenXY, offsetXY, page, pageMax, paint, paintShapeAll, paintShapeChildren, paintShapeOver, propertyChange, put, removeBinding, removeBinding, removeChild, removeChild, removeChildren, removeFromParent, repaint, revalidate, sendShapesToBack, setAction, setAutosizing, setBounds, setBounds, setCausesWrap, setCausesWrapType, setColor, setEffect, setFill, setFrame, setFrame, setFrameSize, setFrameX, setFrameXY, setFrameXY, setFrameY, setHeight, setHeightToFit, setHover, setLayout, setLayoutEnabled, setLineWidth, setLocked, setMaximumSize, setMinimumSize, setName, setOpacity, setParent, setPreferredSize, setReportMillBindings, setReportMillDeep, setRoll, setScaleX, setScaleXY, setScaleY, setSize, setSize, setSizeP, setSizeToFit, setSizeToFit, setSkewX, setSkewXY, setSkewY, setStroke, setStrokeColor, setStrokeWidth, setTime, setUrl, setVisible, setX, setXY, setXY, setXYP, setY, shapeHidden, shapeShown, toXML, toXMLShapeLayout, undoerDisable, undoerEnable, undoerSetUndoTitle, width, x, y
public RMGraph getGraph()
public RMXString createXString()
public java.lang.String getLegendText()
public void setLegendText(java.lang.String aString)
public int getStringCount()
public java.lang.String getString(int anIndex)
public void setStrings(java.util.List aStringsList)
public RMColor getColor(int anIndex)
public void validate()
public void rebuild()
public void setWidth(float aWidth)
public boolean equals(java.lang.Object anObj)
public RMShape cloneDeep()
public RMShape rpgClone(com.reportmill.base.ReportMill aReportMill, RMGraph aGraph)
public boolean superSelectable()
superSelectable
in class RMText
public com.reportmill.archiver.RXElement toXMLShape(com.reportmill.archiver.RXArchiver anArchiver, java.lang.Object anOwner)
toXMLShape
in class RMText
public java.lang.Object fromXMLShape(com.reportmill.archiver.RXArchiver anArchiver, com.reportmill.archiver.RXElement anElement, java.lang.Object anOwner)
fromXMLShape
in class RMText
public void toXMLShapeChildren(com.reportmill.archiver.RXArchiver anArchiver, com.reportmill.archiver.RXElement anElement, java.lang.Object anOwner)
toXMLShapeChildren
in class RMShape
public void fromXMLShapeChildren(com.reportmill.archiver.RXArchiver anArchiver, com.reportmill.archiver.RXElement anElement, java.lang.Object anOwner)
fromXMLShapeChildren
in class RMShape