Package com.reportmill.shape
Class RMGraphBarView3D
- java.lang.Object
-
- com.reportmill.base.RMObject
-
- com.reportmill.shape.RMShape
-
- com.reportmill.shape.RMScene3D
-
- com.reportmill.shape.RMGraphBarView3D
-
- All Implemented Interfaces:
RMArchiver.Archiving
,RMGraphBar.GraphBarView
,java.lang.Cloneable
public class RMGraphBarView3D extends RMScene3D implements RMGraphBar.GraphBarView
This class renders a bar graph in 3D.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.reportmill.shape.RMScene3D
RMScene3D.RMShape3D
-
-
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
Constructors Constructor Description RMGraphBarView3D(RMGraphRPG aGraphRPG)
Creates a new graph bar view.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAxis(RMShape aShape)
Adds the axis to the graph view.void
addAxisLabel(RMShape anAxisLabel)
Adds the axis label to the graph view.void
addBar(RMShape aBar)
Adds a bar to the graph view.void
addBarLabel(RMShape aBarLabel, java.lang.String aType)
Adds a bar label to the graph view.void
addGridLine(RMLineSegment aLine)
Adds a grid line to the graph view.float
getBarMaxZ()
Returns the bar max Z.float
getBarMinZ()
Returns the bar min Z.float
getBarWidth()
Returns the width of the bars.RMTransform3D
getTransform3D()
Returns bar graph's camera transform (overrides Scene3D to make pitch always relative to camera).void
rebuild()
Rebuilds 3D scene from shapes.-
Methods inherited from class com.reportmill.shape.RMScene3D
acceptsMouse, addChild3D, addChild3D, addShape, addShape, canBeUngrouped, copy, equals, fromXML, getBoundsMarked, getBoundsSuperSelected, getCamera, getChildrenWhoHitTest, getDepth, getFieldOfView, getFocalLength, getLight, getOffsetZ, getOrigin, getPitch, getPseudoSkewX, getPseudoSkewY, getShape, getShapeCount, getYaw, getZRoll, isPseudo3D, mouseDragged, mousePressed, mouseReleased, removeShape, resort, setColor, setDepth, setFieldOfView, setFillAndStroke, setFocalLength, setOffsetZ, setPitch, setPseudo3D, setPseudoSkewX, setPseudoSkewY, setYaw, setZRoll, superSelectable, toXML
-
Methods inherited from class com.reportmill.shape.RMShape
acceptsChildren, acceptsDragKeys, acceptsFormat, addChild, addChild, addChildBelowLastChild, 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, delete, didChange, divideShapeFromEdge, divideShapeFromTop, dragExit, dragKeyAtPoint, dropKeyAtPoint, fromXMLDeep, get, getActionScript, getAnim, getAnim, getAnimator, getAnimator, getAutosizeHeight, getAutosizing, getBounds, getBoundsInside, getBoundsOfChildren, getBoundsOfChildren, getCausesWrap, getCausesWrapType, getChild, getChildAnimator, getChildAnimator, getChildContaining, getChildCount, getChildLast, getChildren, getChildrenIntersecting, getChildrenWhoCauseWrap, getChildrenWhoDraw, getChildSortedByX, getChildWithClass, getChildWithName, getColor, getCommonAncestor, getDocument, getFill, getFill, getFill, getFillCount, getFills, getFont, getFormat, getFrame, getFrame, getFrameMaxX, getFrameMaxY, getFrameX, getFrameXY, getFrameY, getGroupShape, getHeight, getHeightToFit, getImageFill, getLineWidth, getListKey, getListKeyDeep, getListKeyShape, getMaxX, getMaxY, getName, getOpacity, getOpacityDeep, getOutline, 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, hasPageBreaks, height, indexOf, indexOf, initWithArchiver, intersects, isAncestor, isDescendant, isLocked, isRoot, isUnderlined, mouseEntered, mouseExited, mouseMoved, notRSS, offsetChildrenXY, offsetXY, page, pageBreakMax, pageBreakPageMax, pageMax, put, putPropertyKey, reclaimChildren, removeChild, removeChild, removeChildren, removeChildren, removeFromParent, resolvePageReferences, rpgClone, rpgCloneBase, rpgCloneChildren, rpgCloneConclude, rpgCloneNotification, rpgClonePrepare, rpgClonePreprocess, rpgCloneUrl, sendShapesToBack, setActionScript, setAnim, setAutosizeHeight, setAutosizing, setBounds, setBounds, setCausesWrapType, setChildren, setColor, setFill, setFont, setFormat, setFrame, setFrame, setFrameSize, setFrameX, setFrameXY, setFrameXY, setFrameY, setHeight, setHeightDeep, setHeightDeep, setHeightToFit, setLineWidth, setListKey, 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, setWidthDeep, setWidthToFit, setX, setXY, setXY, setXYP, setY, sizesToFitChildren, toString, undoClone, undoCopy, undoEquals, undoerAddDirtyObject, undoerDisable, undoerEnable, undoerSetUndoTitle, width, willChange, willChange, x, y
-
Methods inherited from class com.reportmill.base.RMObject
didUndo, getAnimAttribute, getClassNameShort
-
-
-
-
Constructor Detail
-
RMGraphBarView3D
public RMGraphBarView3D(RMGraphRPG aGraphRPG)
Creates a new graph bar view.
-
-
Method Detail
-
addGridLine
public void addGridLine(RMLineSegment aLine)
Adds a grid line to the graph view.- Specified by:
addGridLine
in interfaceRMGraphBar.GraphBarView
-
addBar
public void addBar(RMShape aBar)
Adds a bar to the graph view.- Specified by:
addBar
in interfaceRMGraphBar.GraphBarView
-
addBarLabel
public void addBarLabel(RMShape aBarLabel, java.lang.String aType)
Adds a bar label to the graph view.- Specified by:
addBarLabel
in interfaceRMGraphBar.GraphBarView
-
addAxis
public void addAxis(RMShape aShape)
Adds the axis to the graph view.- Specified by:
addAxis
in interfaceRMGraphBar.GraphBarView
-
addAxisLabel
public void addAxisLabel(RMShape anAxisLabel)
Adds the axis label to the graph view.- Specified by:
addAxisLabel
in interfaceRMGraphBar.GraphBarView
-
getBarWidth
public float getBarWidth()
Returns the width of the bars.
-
getBarMinZ
public float getBarMinZ()
Returns the bar min Z.
-
getBarMaxZ
public float getBarMaxZ()
Returns the bar max Z.
-
getTransform3D
public RMTransform3D getTransform3D()
Returns bar graph's camera transform (overrides Scene3D to make pitch always relative to camera).- Overrides:
getTransform3D
in classRMScene3D
-
-