Class AbstractXYChart
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.ScriptableChart
com.inductiveautomation.rm.shape.j2dshapes.AbstractXYChart
- All Implemented Interfaces:
Archivable
,DeepChangeListener
,RMPropertyChanger
,RMTypes
,RMShapeSelfInit
,PropertyChangeListener
,Cloneable
,EventListener
- Direct Known Subclasses:
TimeseriesChart
,XYChart
Created by carl.gould on 7/14/2015.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.inductiveautomation.rm.base.RMTypes
RMTypes.Align, RMTypes.AlignX, RMTypes.AlignY
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<ArchivableAxis>
protected Font
protected Font
protected double
protected String
protected String
protected double
protected boolean
protected String
protected Color
protected boolean
protected List
protected boolean
protected String
Fields inherited from class com.inductiveautomation.rm.shape.j2dshapes.AbstractJ2DShape
DEFAULT_COLORS, dirty, DPI300, DPI72, log, RasterDPI
Fields inherited from class com.inductiveautomation.rm.shape.RMShape
BINDING_PROP_NAME, STROKE_BORDER, STROKE_DOUBLE, STROKE_HIDDEN, STROKE_SHAPE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract org.jfree.chart.axis.ValueAxis
fromXML
(RXArchiver anArchiver, RXElement e) XML unarchival.getAxes()
double
Returns the dataset key associated with this shape.double
getPens()
boolean
isLegend()
boolean
protected void
render
(Graphics2D g, int width, int height) This is where implementations of AbstractJ2DShape actuall paint themselves to a graphics context.protected RMShape
rpgShape
(ReportOwner owner, RMShape aParent) Generate report with report owner.void
selfInit()
void
setAxes
(List<ArchivableAxis> axes) void
setAxisLabelFont
(Font axisLabelFont) void
setAxisTickLabelFont
(Font axisTickLabelFont) void
setBarWidth
(double barWidth) void
setDatasetKey
(String key) void
setDomainKey
(String domainKey) void
setGapThreshold
(double gapThreshold) void
setLegend
(boolean legend) void
setNoDataMessage
(String noDataMessage) void
void
setPlotBackground
(Color plotBackground) void
setShowXAxis
(boolean showXAxis) void
setXAxisLabel
(String xAxisLabel) toXML
(RXArchiver anArchiver) XML archival.Methods inherited from class com.inductiveautomation.rm.shape.j2dshapes.ScriptableChart
applyConfigureChartScript, getScript, isScriptEnabled, setReportData, setScript, setScriptEnabled
Methods inherited from class com.inductiveautomation.rm.shape.j2dshapes.AbstractJ2DShape
getDefaultColorCodes, getDefaultColors, getDisplayedFill, paintShape, setDirty
Methods inherited from class com.inductiveautomation.rm.shape.RMShape
acceptsChildren, 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.RMObject
addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange
Methods inherited from class com.inductiveautomation.rm.base.RMListenerList
addListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
-
Field Details
-
rpg
protected boolean rpg -
rpgParentData
-
pens
-
axes
-
datasetKey
-
domainKey
-
axisLabelFont
-
axisTickLabelFont
-
plotBackground
-
noDataMessage
-
legend
protected boolean legend -
showXAxis
protected boolean showXAxis -
xAxisLabel
-
barWidth
protected double barWidth -
gapThreshold
protected double gapThreshold -
sampleDataCache
-
-
Constructor Details
-
AbstractXYChart
-
-
Method Details
-
selfInit
public void selfInit()- Specified by:
selfInit
in interfaceRMShapeSelfInit
-
rpgShape
Description copied from class:RMShape
Generate report with report owner. -
createSampleDataCache
-
createDomainAxis
protected abstract org.jfree.chart.axis.ValueAxis createDomainAxis() -
render
Description copied from class:AbstractJ2DShape
This is where implementations of AbstractJ2DShape actuall paint themselves to a graphics context.- Specified by:
render
in classAbstractJ2DShape
-
getPens
-
setPens
-
getAxes
-
setAxes
-
getDatasetKey
Description copied from class:RMShape
Returns the dataset key associated with this shape.- Overrides:
getDatasetKey
in classRMShape
-
setDatasetKey
-
getAxisLabelFont
-
setAxisLabelFont
-
getAxisTickLabelFont
-
setAxisTickLabelFont
-
getBarWidth
public double getBarWidth() -
setBarWidth
public void setBarWidth(double barWidth) -
getDomainKey
-
setDomainKey
-
getNoDataMessage
-
setNoDataMessage
-
getPlotBackground
-
setPlotBackground
-
isLegend
public boolean isLegend() -
setLegend
public void setLegend(boolean legend) -
isShowXAxis
public boolean isShowXAxis() -
setShowXAxis
public void setShowXAxis(boolean showXAxis) -
getXAxisLabel
-
setXAxisLabel
-
getGapThreshold
public double getGapThreshold() -
setGapThreshold
public void setGapThreshold(double gapThreshold) -
toXML
XML archival.- Specified by:
toXML
in interfaceArchivable
- Overrides:
toXML
in classScriptableChart
-
fromXML
XML unarchival.- Specified by:
fromXML
in interfaceArchivable
- Overrides:
fromXML
in classScriptableChart
-