Class PieChart
- All Implemented Interfaces:
- Archivable,- DeepChangeListener,- RMPropertyChanger,- RMTypes,- PropertyChangeListener,- Cloneable,- EventListener
This shape is used as the pie chart component for the reporting module. It renders using a JFreeChart pie plot.
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.inductiveautomation.rm.base.RMTypesRMTypes.Align, RMTypes.AlignX, RMTypes.AlignY
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.inductiveautomation.rm.shape.j2dshapes.AbstractJ2DShapeDEFAULT_COLORS, dirty, DPI300, DPI72, log, RasterDPIFields inherited from class com.inductiveautomation.rm.shape.RMShapeBINDING_PROP_NAME, STROKE_BORDER, STROKE_DOUBLE, STROKE_HIDDEN, STROKE_SHAPE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfromXML(RXArchiver anArchiver, RXElement e) XML unarchival.Color[]Returns the dataset key associated with this shape.intintgetSort()intgetStyle()booleanbooleanisLegend()protected voidrender(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.voidsetChartShadowVisible(boolean chartShadowVisible) voidvoidsetDatasetKey(String key) voidsetLabelFont(Font labelFont) voidsetLabelFormat(String labelFormat) voidsetLabelKey(String labelKey) voidsetLabelStyle(int labelStyle) voidsetLegend(boolean legend) voidsetLegendFont(Font legendFont) voidsetSectionOutline(Color outline) voidsetSort(int sort) Set to @NonKeyMappable because key mapping isn't working.voidsetStyle(int style) voidsetValueKey(String valueKey) toXML(RXArchiver anArchiver) XML archival.Methods inherited from class com.inductiveautomation.rm.shape.j2dshapes.ScriptableChartapplyConfigureChartScript, getScript, isScriptEnabled, setReportData, setScript, setScriptEnabledMethods inherited from class com.inductiveautomation.rm.shape.j2dshapes.AbstractJ2DShapegetDefaultColorCodes, getDefaultColors, getDisplayedFill, paintShape, setDirtyMethods 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, yMethods inherited from class com.inductiveautomation.rm.base.RMObjectaddPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChangeMethods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
- 
Field Details- 
ARCHIVE_NAME- See Also:
 
- 
LABELS_NONEpublic static final int LABELS_NONE- See Also:
 
- 
LABELS_SIMPLEpublic static final int LABELS_SIMPLE- See Also:
 
- 
LABELS_OUTSETpublic static final int LABELS_OUTSET- See Also:
 
- 
SORT_NONEpublic static final int SORT_NONE- See Also:
 
- 
SORT_KEYS_ASCpublic static final int SORT_KEYS_ASC- See Also:
 
- 
SORT_KEYS_DESCpublic static final int SORT_KEYS_DESC- See Also:
 
- 
SORT_VALUES_ASCpublic static final int SORT_VALUES_ASC- See Also:
 
- 
SORT_VALUES_DESCpublic static final int SORT_VALUES_DESC- See Also:
 
- 
STYLE_PIEpublic static final int STYLE_PIE- See Also:
 
- 
STYLE_3Dpublic static final int STYLE_3D- See Also:
 
- 
STYLE_RINGpublic static final int STYLE_RING- See Also:
 
- 
DEFAULT_LABLE_FORMAT- See Also:
 
 
- 
- 
Constructor Details- 
PieChartpublic PieChart()
 
- 
- 
Method Details- 
rpgShapeDescription copied from class:RMShapeGenerate report with report owner.
- 
renderDescription copied from class:AbstractJ2DShapeThis is where implementations of AbstractJ2DShape actuall paint themselves to a graphics context.- Specified by:
- renderin class- AbstractJ2DShape
 
- 
getColors
- 
setColors
- 
getDatasetKeyDescription copied from class:RMShapeReturns the dataset key associated with this shape.- Overrides:
- getDatasetKeyin class- RMShape
 
- 
setDatasetKey
- 
getLabelKey
- 
setLabelKey
- 
getValueKey
- 
setValueKey
- 
getSortpublic int getSort()
- 
setSortpublic void setSort(int sort) Set to @NonKeyMappable because key mapping isn't working.
- 
getStylepublic int getStyle()
- 
setStylepublic void setStyle(int style) 
- 
isLegendpublic boolean isLegend()
- 
setLegendpublic void setLegend(boolean legend) 
- 
getLabelStylepublic int getLabelStyle()
- 
setLabelStylepublic void setLabelStyle(int labelStyle) 
- 
getLabelFormat
- 
setLabelFormat
- 
getLabelFont
- 
setLabelFont
- 
getLegendFont
- 
setLegendFont
- 
getSectionOutline
- 
setSectionOutline
- 
isChartShadowVisiblepublic boolean isChartShadowVisible()
- 
setChartShadowVisiblepublic void setChartShadowVisible(boolean chartShadowVisible) 
- 
toXMLXML archival.- Specified by:
- toXMLin interface- Archivable
- Overrides:
- toXMLin class- ScriptableChart
 
- 
fromXMLXML unarchival.- Specified by:
- fromXMLin interface- Archivable
- Overrides:
- fromXMLin class- ScriptableChart
 
 
-