Class CategoryChart
- java.lang.Object
- 
- com.inductiveautomation.rm.base.RMListenerList
- 
- com.inductiveautomation.rm.base.RMObject
- 
- com.inductiveautomation.rm.shape.RMShape
- 
- com.inductiveautomation.rm.shape.j2dshapes.AbstractJ2DShape
- 
- com.inductiveautomation.rm.shape.j2dshapes.CategoryChart
 
 
 
 
 
- 
- All Implemented Interfaces:
- Archivable,- DeepChangeListener,- RMPropertyChanger,- RMTypes,- java.beans.PropertyChangeListener,- java.lang.Cloneable,- java.util.EventListener
 
 public class CategoryChart extends AbstractJ2DShape This shape is used as the bar chart component for the reporting module. It renders using a JFreeChart pie plot.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface com.inductiveautomation.rm.base.RMTypesRMTypes.Align, RMTypes.AlignX, RMTypes.AlignY
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static java.lang.StringARCHIVE_NAMEstatic org.jfree.chart.axis.CategoryLabelPositions[]CATEGORY_LABEL_POSITIONSstatic intRENDER_BARstatic intRENDER_LAYEREDstatic intRENDER_STACKEDprotected java.util.MapreportData- 
Fields inherited from class com.inductiveautomation.rm.shape.j2dshapes.AbstractJ2DShapeDEFAULT_COLORS, dirty, DPI300, DPI72, log, RasterDPI
 - 
Fields inherited from class com.inductiveautomation.rm.shape.RMShapeBINDING_PROP_NAME, STROKE_BORDER, STROKE_DOUBLE, STROKE_HIDDEN, STROKE_SHAPE
 
- 
 - 
Constructor SummaryConstructors Constructor Description CategoryChart()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectfromXML(RXArchiver anArchiver, RXElement e)XML unarchival.java.awt.FontgetAxisFont()java.lang.StringgetAxisFormat()java.lang.StringgetAxisLabel()intgetCategoryLabelPosition()doublegetCategoryMargin()java.awt.Color[]getColors()java.lang.StringgetDatasetKey()Returns the dataset key associated with this shape.intgetExtractOrder()doublegetItemMargin()java.awt.ColorgetLabelColor()java.awt.FontgetLabelFont()floatgetLabelOffset()java.awt.FontgetLegendFont()doublegetLowerBound()java.awt.ColorgetParetoColor()java.lang.StringgetParetoLabel()java.lang.StringgetScript()intgetStyle()doublegetUpperBound()booleanisAutoRange()booleanisLabels()booleanisLegend()booleanisPareto()booleanisPareto80Pct()booleanisRender3d()booleanisScriptEnabled()booleanisVertical()protected voidrender(java.awt.Graphics2D g, int width, int height)This is where implementations of AbstractJ2DShape actuall paint themselves to a graphics context.protected RMShaperpgShape(ReportOwner owner, RMShape aParent)Generate report with report owner.voidsetAutoRange(boolean autoRange)voidsetAxisFont(java.awt.Font axisFont)voidsetAxisFormat(java.lang.String axisFormat)voidsetAxisLabel(java.lang.String axisLabel)voidsetCategoryLabelPosition(int categoryLabelPosition)voidsetCategoryMargin(double categoryMargin)voidsetColors(java.awt.Color[] colors)voidsetDatasetKey(java.lang.String key)voidsetExtractOrder(int extractOrder)voidsetItemMargin(double itemMargin)voidsetLabelColor(java.awt.Color labelColor)voidsetLabelFont(java.awt.Font labelFont)voidsetLabelOffset(float labelOffset)voidsetLabels(boolean labels)voidsetLegend(boolean legend)voidsetLegendFont(java.awt.Font legendFont)voidsetLowerBound(double lowerBound)voidsetPareto(boolean pareto)voidsetPareto80Pct(boolean pareto80Pct)voidsetParetoColor(java.awt.Color paretoColor)voidsetParetoLabel(java.lang.String paretoLabel)voidsetRender3d(boolean render3d)voidsetScript(java.lang.String script)voidsetScriptEnabled(boolean scriptEnabled)voidsetStyle(int style)voidsetUpperBound(double upperBound)voidsetVertical(boolean vertical)RXElementtoXML(RXArchiver anArchiver)XML archival.- 
Methods inherited from class com.inductiveautomation.rm.shape.j2dshapes.AbstractJ2DShapegetDefaultColorCodes, getDefaultColors, getDisplayedFill, paintShape, setDirty
 - 
Methods inherited from class com.inductiveautomation.rm.shape.RMShapeacceptsChildren, acceptsMouse, addBinding, addBinding, addDeepChangeListener, addMouseListener, animUpdate, bounds, childrenSuperSelectImmediately, clone, cloneDeep, computePrefHeight, computePrefWidth, contains, convertedPointFromShape, convertedPointToShape, convertedRectFromShape, convertedRectToShape, convertedVectorFromShape, convertedVectorToShape, convertFromShape, convertPathFromShape, convertPathToShape, convertPointFromShape, convertPointToShape, convertRectFromShape, convertRectToShape, convertToShape, convertVectorFromShape, convertVectorToShape, copyShape, createDivideShapeRemainder, deepChange, divideShapeFromEdge, divideShapeFromTop, get, get, getAlignment, getAlignmentX, getAlignmentY, getAncestor, getAncestorCount, getAncestorInCommon, getAnimator, getAnimator, getAutosizing, getAutosizingDefault, getBestHeight, getBestHeight, getBestWidth, getBestWidth, getBinding, getBinding, getBindingCount, getBindings, getBounds, getBoundsInside, getBoundsMarked, getBoundsMarkedDeep, getChild, getChildAnimator, getChildAnimator, getChildClipShape, getChildCount, getChildren, getClipShape, getColor, getDashArrayString, getDashPhase, getDatasetEntity, getDisplayedStroke, getDocument, getEffect, getEventAdapter, getFill, getFont, getFormat, getFrame, getFrameHeight, getFrameMaxX, getFrameMaxY, getFrameWidth, getFrameX, getFrameXY, getFrameY, getHeight, getHover, getLayoutInfo, getMaskPath, getMaxX, getMaxY, getMinHeight, getMinHeight, getMinWidth, getMinWidth, getName, getOpacity, getOpacityDeep, getOutline, getPageBreak, getPageBreakMax, getPageBreakPage, getPageBreakPageMax, getPageShape, getParent, getParent, getPath, getPathInBounds, getPrefHeight, getPrefHeight, getPrefWidth, getPrefWidth, getPropertyNameMapped, getPropertyNames, getPropertyNames, getRoll, getRootShape, getRSS, getScaleX, getScaleY, getShapesToAncestor, getShapesToDescendant, getShapesToShape, getSize, getSkewX, getSkewY, getStroke, getStrokeColor, getStrokeOnTop, getStrokeStyle, getStrokeWidth, getTextColor, getTimeline, getTimeline, getTransform, getTransformFromShape, getTransformInverse, getTransformToShape, getUndoer, getURL, getVisbileBounds, getVisibleBounds, getVisibleBounds, getVisibleBounds, getWidth, getX, getXY, getXYP, getY, height, indexOf, intersects, isAncestor, isAnimProperty, isDeletable, isDescendant, isEditing, isEnabled, isFontSet, isHittable, isLocked, isMinHeightSet, isMinWidthSet, isPrefHeightSet, isPrefWidthSet, isRoot, isRSS, isShowing, isUnderlined, isUseFill, isUseStroke, isViewing, isVisible, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, offsetXY, page, pageMax, paint, paintShapeAll, paintShapeChildren, paintShapeOver, propertyChange, put, removeBinding, removeBinding, removeDeepChangeListener, removeFromParent, removeMouseListener, repaint, repaint, resolvePageReferences, rpgAll, rpgBindings, setAlignment, setAlignmentX, setAlignmentY, setAutosizing, setBestHeight, setBestSize, setBounds, setBounds, setColor, setDashArrayString, setDashPhase, setEffect, setEnabled, setFill, setFont, setFormat, setFrame, setFrame, setFrameSize, setFrameX, setFrameXY, setFrameXY, setFrameY, setHeight, setHover, setLayoutInfo, setLocked, setMinHeight, setMinSize, setMinWidth, setName, setOpacity, setOutline, setParent, setPrefHeight, setPrefWidth, setRoll, setScaleX, setScaleXY, setScaleY, setShowing, setSize, setSize, setSkewX, setSkewXY, setSkewY, setStroke, setStrokeColor, setStrokeStyle, setStrokeWidth, setTextColor, setTime, setTimeline, setUnderlined, setURL, setUseFill, setUseStroke, setVisible, setWidth, setX, setXY, setXY, setXYP, setY, shapeHidden, shapeShown, superSelectable, toString, undoerDisable, undoerEnable, undoerSetUndoTitle, width, x, y
 - 
Methods inherited from class com.inductiveautomation.rm.base.RMObjectaddPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange
 - 
Methods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
 
- 
 
- 
- 
- 
Field Detail- 
ARCHIVE_NAMEpublic static final java.lang.String ARCHIVE_NAME - See Also:
- Constant Field Values
 
 - 
CATEGORY_LABEL_POSITIONSpublic static final org.jfree.chart.axis.CategoryLabelPositions[] CATEGORY_LABEL_POSITIONS 
 - 
RENDER_BARpublic static final int RENDER_BAR - See Also:
- Constant Field Values
 
 - 
RENDER_STACKEDpublic static final int RENDER_STACKED - See Also:
- Constant Field Values
 
 - 
RENDER_LAYEREDpublic static final int RENDER_LAYERED - See Also:
- Constant Field Values
 
 - 
reportDataprotected java.util.Map reportData 
 
- 
 - 
Method Detail- 
rpgShapeprotected RMShape rpgShape(ReportOwner owner, RMShape aParent) Description copied from class:RMShapeGenerate report with report owner.
 - 
renderprotected void render(java.awt.Graphics2D g, int width, int height)Description copied from class:AbstractJ2DShapeThis is where implementations of AbstractJ2DShape actuall paint themselves to a graphics context.- Specified by:
- renderin class- AbstractJ2DShape
 
 - 
getColorspublic java.awt.Color[] getColors() 
 - 
setColorspublic void setColors(java.awt.Color[] colors) 
 - 
getDatasetKeypublic java.lang.String getDatasetKey() Description copied from class:RMShapeReturns the dataset key associated with this shape.- Overrides:
- getDatasetKeyin class- RMShape
 
 - 
setDatasetKeypublic void setDatasetKey(java.lang.String key) 
 - 
getExtractOrderpublic int getExtractOrder() 
 - 
setExtractOrderpublic void setExtractOrder(int extractOrder) 
 - 
getStylepublic int getStyle() 
 - 
setStylepublic void setStyle(int style) 
 - 
getCategoryLabelPositionpublic int getCategoryLabelPosition() 
 - 
setCategoryLabelPositionpublic void setCategoryLabelPosition(int categoryLabelPosition) 
 - 
isRender3dpublic boolean isRender3d() 
 - 
setRender3dpublic void setRender3d(boolean render3d) 
 - 
isParetopublic boolean isPareto() 
 - 
setParetopublic void setPareto(boolean pareto) 
 - 
getParetoLabelpublic java.lang.String getParetoLabel() 
 - 
setParetoLabelpublic void setParetoLabel(java.lang.String paretoLabel) 
 - 
getParetoColorpublic java.awt.Color getParetoColor() 
 - 
setParetoColorpublic void setParetoColor(java.awt.Color paretoColor) 
 - 
isPareto80Pctpublic boolean isPareto80Pct() 
 - 
setPareto80Pctpublic void setPareto80Pct(boolean pareto80Pct) 
 - 
getAxisLabelpublic java.lang.String getAxisLabel() 
 - 
setAxisLabelpublic void setAxisLabel(java.lang.String axisLabel) 
 - 
getAxisFontpublic java.awt.Font getAxisFont() 
 - 
setAxisFontpublic void setAxisFont(java.awt.Font axisFont) 
 - 
getAxisFormatpublic java.lang.String getAxisFormat() 
 - 
setAxisFormatpublic void setAxisFormat(java.lang.String axisFormat) 
 - 
isAutoRangepublic boolean isAutoRange() 
 - 
setAutoRangepublic void setAutoRange(boolean autoRange) 
 - 
getLowerBoundpublic double getLowerBound() 
 - 
setLowerBoundpublic void setLowerBound(double lowerBound) 
 - 
getUpperBoundpublic double getUpperBound() 
 - 
setUpperBoundpublic void setUpperBound(double upperBound) 
 - 
isLegendpublic boolean isLegend() 
 - 
setLegendpublic void setLegend(boolean legend) 
 - 
getLegendFontpublic java.awt.Font getLegendFont() 
 - 
setLegendFontpublic void setLegendFont(java.awt.Font legendFont) 
 - 
getItemMarginpublic double getItemMargin() 
 - 
setItemMarginpublic void setItemMargin(double itemMargin) 
 - 
getCategoryMarginpublic double getCategoryMargin() 
 - 
setCategoryMarginpublic void setCategoryMargin(double categoryMargin) 
 - 
isVerticalpublic boolean isVertical() 
 - 
setVerticalpublic void setVertical(boolean vertical) 
 - 
isLabelspublic boolean isLabels() 
 - 
setLabelspublic void setLabels(boolean labels) 
 - 
getLabelFontpublic java.awt.Font getLabelFont() 
 - 
setLabelFontpublic void setLabelFont(java.awt.Font labelFont) 
 - 
getLabelColorpublic java.awt.Color getLabelColor() 
 - 
setLabelColorpublic void setLabelColor(java.awt.Color labelColor) 
 - 
getLabelOffsetpublic float getLabelOffset() 
 - 
setLabelOffsetpublic void setLabelOffset(float labelOffset) 
 - 
setScriptEnabledpublic void setScriptEnabled(boolean scriptEnabled) 
 - 
isScriptEnabledpublic boolean isScriptEnabled() 
 - 
getScriptpublic java.lang.String getScript() 
 - 
setScriptpublic void setScript(java.lang.String script) 
 - 
toXMLpublic RXElement toXML(RXArchiver anArchiver) XML archival.- Specified by:
- toXMLin interface- Archivable
- Overrides:
- toXMLin class- RMShape
 
 - 
fromXMLpublic java.lang.Object fromXML(RXArchiver anArchiver, RXElement e) XML unarchival.- Specified by:
- fromXMLin interface- Archivable
- Overrides:
- fromXMLin class- RMShape
 
 
- 
 
-