ReportMill 10 API

com.reportmill.shape.graph
Class RMGraphViewBar3D

java.lang.Object
  extended by com.reportmill.base.RMObject
      extended by com.reportmill.shape.RMShape
          extended by com.reportmill.shape.RMScene3D
              extended by com.reportmill.shape.graph.RMGraphViewBar3D
All Implemented Interfaces:
RMGraphView, RMGraphView.BarView, java.lang.Cloneable

public class RMGraphViewBar3D
extends com.reportmill.shape.RMScene3D
implements RMGraphView.BarView

This class renders a bar graph in 3D.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.reportmill.shape.RMScene3D
com.reportmill.shape.RMScene3D.RMShape3D
 
Nested classes/interfaces inherited from interface com.reportmill.shape.graph.RMGraphView
RMGraphView.BarView, RMGraphView.PieView
 
Field Summary
 
Fields inherited from class com.reportmill.shape.RMScene3D
CONSTRAIN_NONE, CONSTRAIN_PITCH, CONSTRAIN_YAW
 
Fields inherited from class com.reportmill.shape.RMShape
WRAP_TYPE_BOTH, WRAP_TYPE_NONE
 
Constructor Summary
RMGraphViewBar3D(RMGraphRPG aGraphRPG)
          Creates a new graph bar view.
 
Method Summary
 void addAxis(RMShape aShape)
          Adds the axis to the graph view.
 void addBar(RMShape aBar, int aLayer)
          Adds a bar to the graph view.
 void addBarLabel(RMShape aBarLabel, java.lang.String aType)
          Adds a bar label to the graph view.
 void addGridLineMajor(RMLineSegment aLine)
          Adds a major grid line to the graph view.
 void addGridLineMinor(RMLineSegment aLine)
          Adds a minor grid line to the graph view.
 void addGridLineSeparator(RMLineSegment aLine)
          Adds a grid line separator to the graph view.
 void addLabelAxisLabel(RMShape anAxisLabel)
          Adds the label axis label to the graph view.
 void addValueAxisLabel(RMShape anAxisLabel)
          Adds the value axis label to the graph view.
 float getBarWidth()
          Returns the width of the bars.
 java.lang.String getPart(java.awt.geom.Point2D aPoint)
          Returns the graph part.
 com.reportmill.graphics.RMTransform3D getTransform3D()
          Returns bar graph's camera transform (overrides Scene3D to make pitch always relative to camera).
 void rebuildImmediately()
          Rebuilds 3D scene from shapes.
 
Methods inherited from class com.reportmill.shape.RMScene3D
acceptsMouse, addShape, addShape, canBeUngrouped, copy, copy3D, equals, equals3D, fromXML, getBoundsMarked, getBoundsSuperSelected, getCamera, getChildCount, getChildCountHitable, getChildCountLayout, getChildLayout, getDepth, getFieldOfView, getFocalLength, getLight, getOffsetZ, getOrigin, getPitch, getPseudoSkewX, getPseudoSkewY, getRoll3D, getShape, getShapeCount, getValueIsAdjusting, getYaw, invalidate, isPseudo3D, mouseDragged, mousePressed, mouseReleased, rebuild, removeShape, resort, setColor, setDepth, setFieldOfView, setFillAndStroke, setFocalLength, setOffsetZ, setPitch, setPseudo3D, setPseudoSkewX, setPseudoSkewY, setRoll3D, setYaw, superSelectable, toXML
 
Methods inherited from class com.reportmill.shape.RMShape
acceptsChildren, addChild, addChild, bounds, boundsChanged, boundsChanged, bringShapesToFront, childrenSuperSelectImmediately, clone, cloneDeep, 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, fromXMLDeep, get, getActionScript, getAnim, getAnim, getAnimator, getAnimator, getAutosizeHeight, getAutosizing, getBounds, getBoundsInside, getBoundsOfChildren, getBoundsOfChildren, getCausesWrap, getCausesWrapType, getChild, getChildAnimator, getChildAnimator, getChildContaining, getChildCountVisible, getChildHitable, getChildLast, 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, isAncestor, isDescendant, isLocked, isRoot, isUnderlined, isValid, layoutReset, mouseEntered, mouseExited, mouseMoved, 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, toString, 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

RMGraphViewBar3D

public RMGraphViewBar3D(RMGraphRPG aGraphRPG)
Creates a new graph bar view.

Method Detail

getPart

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

Specified by:
getPart in interface RMGraphView

addGridLineMajor

public void addGridLineMajor(RMLineSegment aLine)
Adds a major grid line to the graph view.

Specified by:
addGridLineMajor in interface RMGraphView.BarView

addGridLineMinor

public void addGridLineMinor(RMLineSegment aLine)
Adds a minor grid line to the graph view.

Specified by:
addGridLineMinor in interface RMGraphView.BarView

addGridLineSeparator

public void addGridLineSeparator(RMLineSegment aLine)
Adds a grid line separator to the graph view.

Specified by:
addGridLineSeparator in interface RMGraphView.BarView

addBar

public void addBar(RMShape aBar,
                   int aLayer)
Adds a bar to the graph view.

Specified by:
addBar in interface RMGraphView.BarView

addBarLabel

public void addBarLabel(RMShape aBarLabel,
                        java.lang.String aType)
Adds a bar label to the graph view.

Specified by:
addBarLabel in interface RMGraphView.BarView

addAxis

public void addAxis(RMShape aShape)
Adds the axis to the graph view.

Specified by:
addAxis in interface RMGraphView.BarView

addValueAxisLabel

public void addValueAxisLabel(RMShape anAxisLabel)
Adds the value axis label to the graph view.

Specified by:
addValueAxisLabel in interface RMGraphView.BarView

addLabelAxisLabel

public void addLabelAxisLabel(RMShape anAxisLabel)
Adds the label axis label to the graph view.

Specified by:
addLabelAxisLabel in interface RMGraphView.BarView

getBarWidth

public float getBarWidth()
Returns the width of the bars.


getTransform3D

public com.reportmill.graphics.RMTransform3D getTransform3D()
Returns bar graph's camera transform (overrides Scene3D to make pitch always relative to camera).

Overrides:
getTransform3D in class com.reportmill.shape.RMScene3D

rebuildImmediately

public void rebuildImmediately()
Rebuilds 3D scene from shapes.

Overrides:
rebuildImmediately in class com.reportmill.shape.RMScene3D

ReportMill 10 API