public class RMGraphArea extends RMProxyShape
Modifier and Type | Class and Description |
---|---|
static class |
RMGraphArea.ItemLayout |
static class |
RMGraphArea.SectionLayout |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
GRAPH_PART_3D |
static java.lang.String |
GRAPH_PART_BARS |
static java.lang.String |
GRAPH_PART_GRAPH_AREA |
static java.lang.String |
GRAPH_PART_LABEL_AXIS |
static java.lang.String |
GRAPH_PART_NONE |
static java.lang.String |
GRAPH_PART_PIE |
static java.lang.String |
GRAPH_PART_SERIES |
static java.lang.String |
GRAPH_PART_VALUE_AXIS |
WRAP_TYPE_BOTH, WRAP_TYPE_NONE
Constructor and Description |
---|
RMGraphArea()
Creates a new graph area.
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(RMShape aChild,
int anIndex,
java.lang.Object theConstraints)
Overrides shape version to suppress property change.
|
RMGraphArea |
clone()
Standard clone implementation.
|
RMShape |
cloneDeep()
Overrides clone deep to avoid cloning children (just do rebuild).
|
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).
|
RMGraphPart3D |
get3D()
Returns the 3d shape.
|
RMGraphPartBars |
getBars()
Returns the bars shape.
|
RMGraph |
getGraph()
Returns the graph that owns this graph area.
|
RMGraphArea.ItemLayout |
getItemsLayout()
Returns the layout of section items.
|
RMGraphPartLabelAxis |
getLabelAxis()
Returns the label axis shape.
|
RMGraphPartPie |
getPie()
Returns the pie shape.
|
RMShape |
getSampleGraphArea()
Returns a graph area configured like this one showing sample data.
|
RMGraphArea.SectionLayout |
getSectionLayout()
Returns the layout of series values.
|
java.lang.String |
getSelectedPart()
Returns the currently selected part.
|
RMShape |
getSelectedPartShape()
Returns the selected part shape.
|
RMGraphPartSeries |
getSelectedSeries()
Returns the selected series part, if available.
|
RMGraphPartSeries |
getSeries(int anIndex)
Returns the individual series object and the given index.
|
int |
getSeriesCount()
Returns the number of series.
|
RMGraphPartValueAxis |
getValueAxis()
Returns the value axis shape.
|
boolean |
isAbreast()
Returns whether section items layout is abreast.
|
boolean |
isLayered()
Returns whether section items layout is layered.
|
boolean |
isMeshed()
Returns whether section layout is meshed.
|
boolean |
isSeparated()
Returns whether section layout is separated.
|
boolean |
isStacked()
Returns whether section items layout is stacked.
|
boolean |
isVertical()
Returns whether graph area is considered vertical.
|
void |
paint(com.reportmill.shape.RMShapePainter aPainter,
java.awt.Graphics2D g)
Overrides paint to suppress selected part.
|
void |
paintShape(com.reportmill.shape.RMShapePainter aPainter,
java.awt.Graphics2D g)
Overrides paintShape to suppress normal shape paint.
|
void |
paintShapeOver(com.reportmill.shape.RMShapePainter painter,
java.awt.Graphics2D graphics)
Overrides paintShapeOver to suppress normal shape paint.
|
void |
propertyChange(java.beans.PropertyChangeEvent anEvent)
Overrides normal version to suppress child changes and propagate part changes.
|
void |
rebuild()
Notifies graph area that something crucial has changed requiring a rebuild.
|
void |
rebuildImmediately()
Notifies graph area that something crucial has changed requiring a rebuild.
|
RMShape |
removeChild(int anIndex)
Overrides shape version to suppress property change.
|
void |
repaint()
Overrides shape implementation to repaint parent too.
|
void |
revalidate()
Overrides shape implementation to request rebuild.
|
RMShape |
rpgClone(com.reportmill.base.ReportMill aRM,
RMGraph aGraph)
Returns a clone with report generation performed on it.
|
void |
set3D(RMGraphPart3D aGraphPart3D)
Sets the 3d shape.
|
void |
setItemsLayout(RMGraphArea.ItemLayout aLayout)
Sets the layout of section items.
|
void |
setSectionLayout(RMGraphArea.SectionLayout aLayout)
Sets the layout of series values.
|
void |
setSelectedPart(java.awt.geom.Point2D aPoint)
Sets the currently selected part by point.
|
void |
setSelectedPart(java.lang.String aPart)
Sets the currently selected part.
|
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 shape implementation to suppress archival of children.
|
void |
validate()
Override validate to rebuild.
|
getEffect, getFill, getFillSuper, getFont, getFormat, getHover, getOpacity, getOutline, getProxy, getStroke, getStrokeSuper, getTextColor, getUrl, isUnderlined, setEffect, setFill, setFont, setFormat, setHover, setOpacity, setOutline, setProxy, setStroke, setTextColor, setUnderlined, setUrl
acceptsChildren, acceptsMouse, addBinding, 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, getFloat, getFrame, getFrame, getFrameMaxX, getFrameMaxY, getFrameX, getFrameXY, getFrameY, getHeight, getImageFill, getLayout, getLineWidth, getMaskPath, getMaximumSize, getMaximumSizeProperty, getMaxX, getMaxY, getMinimumSize, getMinimumSizeProperty, getName, getOpacityDeep, getOriginal, getPageBreak, getPageBreakMax, getPageBreakPage, getPageBreakPageMax, getPageShape, getParent, getParentWithClass, getPart, getPartCount, getPartDeep, getPartDeepCount, getPath, getPathInBounds, getPreferredSize, getPreferredSizeImpl, getPreferredSizeProperty, getPreferredSizeX, getReportMill, getRoll, getRootShape, getScaleX, getScaleY, getShapesToAncestor, getShapesToDescendant, getShapesToShape, getSize, getSizeP, getSkewX, getSkewY, getStrokeColor, getStrokeWidth, getTransform, getTransformFromShape, getTransformInverse, getTransformToShape, getUndoer, 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, paintShapeAll, paintShapeChildren, put, removeBinding, removeBinding, removeChild, removeChildren, removeFromParent, repaint, resolvePageReferences, sendShapesToBack, setAction, setAutosizing, setBounds, setBounds, setCausesWrap, setCausesWrapType, setColor, setFrame, setFrame, setFrameSize, setFrameX, setFrameXY, setFrameXY, setFrameY, setHeight, setHeightToFit, setLayout, setLayoutEnabled, setLineWidth, setLocked, setMaximumSize, setMinimumSize, setName, setParent, setPreferredSize, setReportMill, setReportMillBindings, setReportMillDeep, setRoll, setScaleX, setScaleXY, setScaleY, setSize, setSize, setSizeP, setSizeToFit, setSizeToFit, setSkewX, setSkewXY, setSkewY, setStrokeColor, setStrokeWidth, setTime, setVisible, setWidth, setX, setXY, setXY, setXYP, setY, shapeHidden, shapeShown, superSelectable, toString, toXML, toXMLShapeLayout, undoerDisable, undoerEnable, undoerSetUndoTitle, width, x, y
public static final java.lang.String GRAPH_PART_NONE
public static final java.lang.String GRAPH_PART_GRAPH_AREA
public static final java.lang.String GRAPH_PART_VALUE_AXIS
public static final java.lang.String GRAPH_PART_LABEL_AXIS
public static final java.lang.String GRAPH_PART_BARS
public static final java.lang.String GRAPH_PART_PIE
public static final java.lang.String GRAPH_PART_3D
public static final java.lang.String GRAPH_PART_SERIES
public RMGraph getGraph()
public RMGraphArea.SectionLayout getSectionLayout()
public void setSectionLayout(RMGraphArea.SectionLayout aLayout)
public RMGraphArea.ItemLayout getItemsLayout()
public void setItemsLayout(RMGraphArea.ItemLayout aLayout)
public boolean isVertical()
public boolean isMeshed()
public boolean isSeparated()
public boolean isAbreast()
public boolean isStacked()
public boolean isLayered()
public java.lang.String getSelectedPart()
public void setSelectedPart(java.lang.String aPart)
public RMShape getSelectedPartShape()
public void repaint()
public void setSelectedPart(java.awt.geom.Point2D aPoint)
public RMGraphPartValueAxis getValueAxis()
public RMGraphPartLabelAxis getLabelAxis()
public RMGraphPartBars getBars()
public RMGraphPartPie getPie()
public int getSeriesCount()
public RMGraphPartSeries getSeries(int anIndex)
public RMGraphPartSeries getSelectedSeries()
public RMGraphPart3D get3D()
public void set3D(RMGraphPart3D aGraphPart3D)
public void revalidate()
revalidate
in class RMShape
public void rebuild()
rebuild
in class RMProxyShape
public void rebuildImmediately()
public void addChild(RMShape aChild, int anIndex, java.lang.Object theConstraints)
public RMShape removeChild(int anIndex)
removeChild
in class RMShape
public void paint(com.reportmill.shape.RMShapePainter aPainter, java.awt.Graphics2D g)
public void paintShape(com.reportmill.shape.RMShapePainter aPainter, java.awt.Graphics2D g)
paintShape
in class RMShape
public void paintShapeOver(com.reportmill.shape.RMShapePainter painter, java.awt.Graphics2D graphics)
paintShapeOver
in class RMShape
public RMShape getSampleGraphArea()
public void propertyChange(java.beans.PropertyChangeEvent anEvent)
propertyChange
in interface java.beans.PropertyChangeListener
propertyChange
in class RMShape
public RMShape rpgClone(com.reportmill.base.ReportMill aRM, RMGraph aGraph)
public boolean equals(java.lang.Object anObj)
public RMGraphArea clone()
clone
in class RMProxyShape
public RMShape cloneDeep()
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
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