ReportMill 10 API

com.reportmill.shape.graph
Class RMGraphViewBar

java.lang.Object
  extended by com.reportmill.base.RMObject
      extended by com.reportmill.shape.RMShape
          extended by com.reportmill.shape.graph.RMGraphViewBar
All Implemented Interfaces:
RMGraphView, RMGraphView.BarView, java.lang.Cloneable
Direct Known Subclasses:
RMGraphViewLine

public class RMGraphViewBar
extends RMShape
implements RMGraphView.BarView

This class generates (and represents) a RPG'd bar graph area.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.reportmill.shape.graph.RMGraphView
RMGraphView.BarView, RMGraphView.PieView
 
Field Summary
 
Fields inherited from class com.reportmill.shape.RMShape
WRAP_TYPE_BOTH, WRAP_TYPE_NONE
 
Constructor Summary
RMGraphViewBar(RMGraphRPG aGraphRPG)
          Creates a bar graph maker.
 
Method Summary
 void addAxis(RMShape aShape)
          Add axis shape.
 void addBar(RMShape aBar, int aLayer)
          Add bar shape.
 void addBarLabel(RMShape aBarLabel, java.lang.String aVersion)
          Add bar label.
 void addBars()
          Adds the bars to the graph area.
 void addGridLineMajor(RMLineSegment aLine)
          Add grid line major.
 void addGridLineMinor(RMLineSegment aLine)
          Add grid line minor.
 void addGridLineSeparator(RMLineSegment aLine)
          Add grid line separator
 void addLabelAxisLabel(RMShape anAxisLabel)
          Add label axis label shape.
 void addValueAxisLabel(RMShape anAxisLabel)
          Add value axis label shape.
 RMRect getBarBounds(int aSeriesIndex, int anItemIndex)
          Returns the bar bounds for bar at given series and item.
 RMShape getGraphView()
          Returns the graph view.
 java.lang.String getPart(java.awt.geom.Point2D aPoint)
          Returns the graph part for given point.
 boolean isVertical()
          Returns whether graph is vertical.
 
Methods inherited from class com.reportmill.shape.RMShape
acceptsChildren, acceptsMouse, addChild, addChild, bounds, boundsChanged, boundsChanged, bringShapesToFront, canBeUngrouped, childrenSuperSelectImmediately, clone, cloneDeep, contains, convertedPointFromShape, convertedPointToShape, convertedRectFromShape, convertedRectToShape, convertedSizeFromShape, convertedSizeToShape, convertedVectorFromShape, convertedVectorToShape, convertFromShape, convertPathFromShape, convertPathToShape, convertPointFromShape, convertPointToShape, convertRectFromShape, convertRectToShape, convertSizeFromShape, convertSizeToShape, convertToShape, convertVectorFromShape, convertVectorToShape, copy, copyShape, createLayout, delete, didChange, divideShapeFromEdge, divideShapeFromTop, doLayout, equals, fromXML, 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, getListKey, 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, rpgClone, rpgCloneBase, rpgCloneChildren, rpgCloneNotification, rpgClonePreprocess, rpgCloneUrl, sendShapesToBack, setActionScript, setAnim, setAutosizeHeight, setAutosizing, setBounds, setBounds, setCausesWrapType, setChildren, setColor, setFill, setFont, setFormat, setFrame, setFrame, setFrameSize, setFrameX, setFrameXY, setFrameXY, setFrameY, setHeight, 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, setWidth, setWidthDeep, setWidthToFit, setX, setXY, setXY, setXYP, setY, sizesToFitChildren, superSelectable, toString, toXML, 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

RMGraphViewBar

public RMGraphViewBar(RMGraphRPG aGraphRPG)
Creates a bar graph maker.

Method Detail

getGraphView

public RMShape getGraphView()
Returns the graph view.


isVertical

public boolean isVertical()
Returns whether graph is vertical.


addBars

public void addBars()
Adds the bars to the graph area.


getBarBounds

public RMRect getBarBounds(int aSeriesIndex,
                           int anItemIndex)
Returns the bar bounds for bar at given series and item.


getPart

public java.lang.String getPart(java.awt.geom.Point2D aPoint)
Returns the graph part for given point.

Specified by:
getPart in interface RMGraphView

addGridLineMajor

public void addGridLineMajor(RMLineSegment aLine)
Add grid line major.

Specified by:
addGridLineMajor in interface RMGraphView.BarView

addGridLineMinor

public void addGridLineMinor(RMLineSegment aLine)
Add grid line minor.

Specified by:
addGridLineMinor in interface RMGraphView.BarView

addGridLineSeparator

public void addGridLineSeparator(RMLineSegment aLine)
Add grid line separator

Specified by:
addGridLineSeparator in interface RMGraphView.BarView

addBar

public void addBar(RMShape aBar,
                   int aLayer)
Add bar shape.

Specified by:
addBar in interface RMGraphView.BarView

addBarLabel

public void addBarLabel(RMShape aBarLabel,
                        java.lang.String aVersion)
Add bar label.

Specified by:
addBarLabel in interface RMGraphView.BarView

addAxis

public void addAxis(RMShape aShape)
Add axis shape.

Specified by:
addAxis in interface RMGraphView.BarView

addValueAxisLabel

public void addValueAxisLabel(RMShape anAxisLabel)
Add value axis label shape.

Specified by:
addValueAxisLabel in interface RMGraphView.BarView

addLabelAxisLabel

public void addLabelAxisLabel(RMShape anAxisLabel)
Add label axis label shape.

Specified by:
addLabelAxisLabel in interface RMGraphView.BarView

ReportMill 10 API