public class RMGraph extends RMShape
RMGraph graph = new RMGraph(); graph.setBounds(0, 0, 640, 480); graph.setDatasetKey("Movies"); graph.setKeysString("revenue"); graph.setType(RMGraph.TYPE_PIE);
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TYPE_AREA |
static java.lang.String |
TYPE_BAR |
static java.lang.String |
TYPE_BARH |
static java.lang.String |
TYPE_LINE |
static java.lang.String |
TYPE_PIE |
static java.lang.String |
TYPE_SCATTER |
static java.lang.String[] |
TYPES |
WRAP_TYPE_BOTH, WRAP_TYPE_NONE
Constructor and Description |
---|
RMGraph()
Creates a plain graph shape.
|
Modifier and Type | Method and Description |
---|---|
void |
addGroupingKey(java.lang.String aKey)
Adds a grouping to the table for the given key string.
|
void |
addGroupingKey(java.lang.String aKey,
int anIndex)
Adds a grouping to the table for the given key string at the given grouping index.
|
void |
addKey(java.lang.String aKey)
Adds a key.
|
void |
clearKeys()
Removes all keys.
|
RMGraph |
clone()
Standard clone implementation.
|
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.
|
RMShape |
getBarWedgePrototype()
Returns the shape used to represent the basic attributes of bars & wedges.
|
RMShape |
getChild(int anIndex)
Override to return table rpg if set.
|
int |
getChildCount()
Override to return table rpg if set.
|
RMColor |
getColor(int anIndex)
Returns the specific color at the given index.
|
int |
getColorCount()
Returns the number of colors set for this graph.
|
java.util.List<RMColor> |
getColors()
Returns the list of colors to be used by this graph (or the default graph colors, if null).
|
java.lang.String |
getDatasetKey()
Returns the dataset key associated with the graph.
|
static java.util.List |
getDefaultColors()
Returns the default list of colors to be used by any graph without an explicit list of colors.
|
boolean |
getDraw3D()
Returns whether the graph draws in 3D.
|
java.lang.String |
getFilterKey()
Returns the optional key chain (expression) used to limit the table list derived from dataset key.
|
RMGraphArea |
getGraphArea()
Returns the shape that represents the conent of the graph.
|
java.lang.String |
getGraphTypeString()
Returns the graph type as a simple string: bar, pie or hbar.
|
com.reportmill.base.RMGrouper |
getGrouper()
Returns the grouper associated with the table.
|
RMGrouping |
getGrouping()
Returns the graph grouping.
|
RMGrouping |
getGrouping(int anIndex)
Returns the individual grouping at the given index.
|
RMGrouping |
getGrouping(java.lang.String aKey)
Returns the individual grouping that has the same key as the one given.
|
int |
getGroupingCount()
Returns the number of groups in this table.
|
java.lang.Float |
getInterval(int anIndex)
Returns the individual interval at a given index as a float value.
|
int |
getIntervalCount()
Returns the number of intervals for this filled graph.
|
java.lang.Float |
getIntervalLast()
Returns the last interval as a float value.
|
java.lang.String |
getKey(int anIndex)
Returns the specific key at the given index.
|
int |
getKeyCount()
Returns the number of keys for this graph.
|
RMGraphLegend |
getLegend()
Returns the child of the graph that represents the legend (if present).
|
int |
getMinorTickCount()
Returns the number of suggested ticks between the intervals of the RPG'd graph.
|
java.util.List |
getObjects()
Returns the list of objects to generate a graph for.
|
com.reportmill.base.ReportMill |
getReportMill()
Returns the reportmill.
|
java.util.List |
getSampleObjects()
Returns a list of sample objects for this graph.
|
RMGraphSection |
getSection(int anIndex)
Returns the individual section at the given index.
|
int |
getSectionCount()
Returns the number of sections in this graph.
|
java.util.List<RMGraphSection> |
getSections()
Returns the graph sections.
|
java.util.List<RMGraphSeries> |
getSeries()
Returns the list of series.
|
RMGraphSeries |
getSeries(int anIndex)
Returns the individual series at the given index.
|
int |
getSeriesCount()
Returns the number of series in this graph.
|
boolean |
getShowLegend()
Returns whether the graph shows a legend.
|
java.lang.String |
getType()
Returns the graph type (TYPE_BAR, TYPE_PIE, etc.).
|
void |
moveGrouping(int index1,
int index2)
Moves the grouping at the first index so that it resides at the second index.
|
void |
rebuild()
Rebuild graph.
|
void |
removeGrouping(RMGrouping aGrouping)
Removes the given grouping.
|
void |
removeKey(int anIndex)
Removes a key.
|
void |
setBarWedgePrototype(RMShape aShape)
Sets the shape used to represent the basic attributes of bars & wedges.
|
void |
setColors(java.util.List aColorList)
Sets the list of colors to be used by this graph.
|
void |
setDatasetKey(java.lang.String aKeyPath)
Sets the dataset key associated with the graph.
|
static void |
setDefaultColors(java.util.List aList)
Sets the default list of colors to be used by any graph without an explicit list of colors.
|
void |
setDraw3D(boolean aFlag)
Sets whether the graph draws in 3D.
|
void |
setFilterKey(java.lang.String aKeyExpr)
Sets the optional key chain (expression) used to limit the table list derived from dataset key.
|
void |
setGraphTypeString(java.lang.String aString)
Sets the graph type as a simple string: bar, pie or hbar.
|
void |
setObjects(java.util.List aList)
Sets objects.
|
void |
setObjectsAndReportMill(java.util.List aList,
com.reportmill.base.ReportMill aReportMill)
Sets the list of objects to generate a graph for.
|
void |
setReportMill(com.reportmill.base.ReportMill aReportMill)
Set ReportMill (which tries to get a dataset from reportmill and calls setObjects).
|
void |
setReportMillDeep(com.reportmill.base.ReportMill aReportMill)
Override to stifle child rpg.
|
void |
setShowLegend(boolean aFlag)
Sets whether the graph shows a legend.
|
void |
setType(java.lang.String aType)
Sets the graph type (TYPE_BAR, TYPE_PIE, etc.).
|
com.reportmill.archiver.RXElement |
toXMLShape(com.reportmill.archiver.RXArchiver anArchiver,
java.lang.Object anOwner)
XML archival.
|
acceptsChildren, acceptsMouse, addBinding, addChild, addChild, addChild, addChild, animUpdate, bounds, bringShapesToFront, checkBindings, childrenSuperSelectImmediately, cloneDeep, 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, fromXMLShapeChildren, 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, getChildAnimator, getChildAnimator, getChildArray, getChildClipShape, getChildContaining, getChildLast, getChildren, getChildrenIntersecting, getChildrenWhoCauseWrap, getChildrenWithClass, getChildrenWithClass, getChildWithClass, getChildWithName, getClipShape, getColor, getDatasetEntity, getDocument, getEffect, getFill, getFloat, getFont, getFormat, getFrame, getFrame, getFrameMaxX, getFrameMaxY, getFrameX, getFrameXY, getFrameY, getHeight, getHover, getImageFill, getLayout, getLineWidth, getMaskPath, getMaximumSize, getMaximumSizeProperty, getMaxX, getMaxY, getMinimumSize, getMinimumSizeProperty, getName, getOpacity, getOpacityDeep, getOriginal, getOutline, getPageBreak, getPageBreakMax, getPageBreakPage, getPageBreakPageMax, getPageShape, getParent, getParentWithClass, getPart, getPartCount, getPartDeep, getPartDeepCount, getPath, getPathInBounds, getPreferredSize, getPreferredSizeImpl, getPreferredSizeProperty, getPreferredSizeX, getRoll, getRootShape, getScaleX, getScaleY, getShapesToAncestor, getShapesToDescendant, getShapesToShape, getSize, getSizeP, getSkewX, getSkewY, getStroke, getStrokeColor, getStrokeWidth, getTextColor, 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, isUnderlined, isValid, isViewing, isVisible, isVisibleChild, isVisibleDeep, layoutReset, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, notRSS, offsetChildrenXY, offsetXY, page, pageMax, paint, paintShape, paintShapeAll, paintShapeChildren, paintShapeOver, propertyChange, put, removeBinding, removeBinding, removeChild, removeChild, removeChildren, removeFromParent, repaint, repaint, resolvePageReferences, revalidate, sendShapesToBack, setAction, setAutosizing, setBounds, setBounds, setCausesWrap, setCausesWrapType, setColor, setEffect, setFill, setFont, setFormat, setFrame, setFrame, setFrameSize, setFrameX, setFrameXY, setFrameXY, setFrameY, setHeight, setHeightToFit, setHover, setLayout, setLayoutEnabled, setLineWidth, setLocked, setMaximumSize, setMinimumSize, setName, setOpacity, setOutline, setParent, setPreferredSize, setReportMillBindings, setRoll, setScaleX, setScaleXY, setScaleY, setSize, setSize, setSizeP, setSizeToFit, setSizeToFit, setSkewX, setSkewXY, setSkewY, setStroke, setStrokeColor, setStrokeWidth, setTextColor, setTime, setUnderlined, setUrl, setVisible, setWidth, setX, setXY, setXY, setXYP, setY, shapeHidden, shapeShown, superSelectable, toString, toXML, toXMLShapeChildren, toXMLShapeLayout, undoerDisable, undoerEnable, undoerSetUndoTitle, validate, width, x, y
public static final java.lang.String TYPE_BAR
public static final java.lang.String TYPE_BARH
public static final java.lang.String TYPE_AREA
public static final java.lang.String TYPE_LINE
public static final java.lang.String TYPE_SCATTER
public static final java.lang.String TYPE_PIE
public static final java.lang.String[] TYPES
public java.lang.String getDatasetKey()
getDatasetKey
in class RMShape
public void setDatasetKey(java.lang.String aKeyPath)
public java.lang.String getFilterKey()
public void setFilterKey(java.lang.String aKeyExpr)
public int getKeyCount()
public java.lang.String getKey(int anIndex)
public void addKey(java.lang.String aKey)
public void removeKey(int anIndex)
public void clearKeys()
public java.lang.String getType()
public void setType(java.lang.String aType)
public java.lang.String getGraphTypeString()
public void setGraphTypeString(java.lang.String aString)
public RMGrouping getGrouping()
public com.reportmill.base.RMGrouper getGrouper()
public int getGroupingCount()
public RMGrouping getGrouping(int anIndex)
public RMGrouping getGrouping(java.lang.String aKey)
public void addGroupingKey(java.lang.String aKey)
public void addGroupingKey(java.lang.String aKey, int anIndex)
public void removeGrouping(RMGrouping aGrouping)
public void moveGrouping(int index1, int index2)
public boolean getDraw3D()
public void setDraw3D(boolean aFlag)
public RMGraphLegend getLegend()
public boolean getShowLegend()
public void setShowLegend(boolean aFlag)
public int getColorCount()
public RMColor getColor(int anIndex)
public java.util.List<RMColor> getColors()
public void setColors(java.util.List aColorList)
public static java.util.List getDefaultColors()
public static void setDefaultColors(java.util.List aList)
public RMShape getBarWedgePrototype()
public void setBarWedgePrototype(RMShape aShape)
public RMGraphArea getGraphArea()
public com.reportmill.base.ReportMill getReportMill()
getReportMill
in class RMShape
public void setReportMill(com.reportmill.base.ReportMill aReportMill)
setReportMill
in class RMShape
public void setReportMillDeep(com.reportmill.base.ReportMill aReportMill)
setReportMillDeep
in class RMShape
public java.util.List getObjects()
public void setObjects(java.util.List aList)
public void setObjectsAndReportMill(java.util.List aList, com.reportmill.base.ReportMill aReportMill)
public int getSeriesCount()
public RMGraphSeries getSeries(int anIndex)
public java.util.List<RMGraphSeries> getSeries()
public int getSectionCount()
public RMGraphSection getSection(int anIndex)
public java.util.List<RMGraphSection> getSections()
public int getIntervalCount()
public java.lang.Float getInterval(int anIndex)
public java.lang.Float getIntervalLast()
public int getMinorTickCount()
public java.util.List getSampleObjects()
public int getChildCount()
getChildCount
in class RMShape
public RMShape getChild(int anIndex)
public void rebuild()
public boolean equals(java.lang.Object anObj)
public com.reportmill.archiver.RXElement toXMLShape(com.reportmill.archiver.RXArchiver anArchiver, java.lang.Object anOwner)
toXMLShape
in class RMShape
public java.lang.Object fromXMLShape(com.reportmill.archiver.RXArchiver anArchiver, com.reportmill.archiver.RXElement anElement, java.lang.Object anOwner)
fromXMLShape
in class RMShape