Class PMIEasyChart
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.JPanel
-
- com.inductiveautomation.factorypmi.application.components.PMIEasyChart
-
- All Implemented Interfaces:
DynamicPropertyProvider
,LoadingMonitor
,LocaleListener
,ComponentLifecycle
,DesignerInitializable
,ExtensibleComponent
,QualityMonitor
,java.awt.event.ActionListener
,java.awt.image.ImageObserver
,java.awt.MenuContainer
,java.io.Serializable
,java.util.EventListener
,javax.accessibility.Accessible
public class PMIEasyChart extends javax.swing.JPanel implements DesignerInitializable, LoadingMonitor, java.awt.event.ActionListener, LocaleListener, DynamicPropertyProvider, ComponentLifecycle, QualityMonitor, ExtensibleComponent
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PMIEasyChart.AlterablePen
protected class
PMIEasyChart.ChartUpdater
class
PMIEasyChart.EasyChart
This is the actual chart (extended from JFreeChart) object that is displayed as the main content of the EasyChartclass
PMIEasyChart.PenPanel
-
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
-
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
antialias
protected Dataset
axes
static java.lang.String
AXES_LABEL_FORMAT
protected PMIEasyChart.EasyChart
chart
protected int
cursorCode
static java.lang.String
DYNAMIC_GROUP_PREFIX
static int
EDGE_BOTTOM
static int
EDGE_LEFT
static int
EDGE_NONE
static int
EDGE_RIGHT
static int
EDGE_TOP
static java.lang.String
GROUP_LABEL_FORMAT
static int
HORIZONTAL_PLOT
static int
MODE_HISTORICAL
static int
MODE_MANUAL
static int
MODE_REALTIME
static int
PEN_CONTROL_HEAVY
static int
PEN_CONTROL_LIGHT
static java.lang.String
PEN_LABEL_FORMAT
protected int
penControlMode
protected PMIEasyChart.PenPanel
penPanel
protected Dataset
pens
static java.awt.Shape[]
SHAPE_LIST
static int
STYLE_3D_LINE
static int
STYLE_AREA
static int
STYLE_BAR
static int
STYLE_BAR_NO_SHADOW
static int
STYLE_DOT
static int
STYLE_LINE
static int
STYLE_LINE_AND_SHAPE
static int
STYLE_LINE_DISCONTINUOUS
static int
STYLE_SHAPE
static int
STYLE_STEP
static int
STYLE_STEP_AREA
protected Dataset
subplots
static int
TAG_RESOLUTION_CHART
static int
TAG_RESOLUTION_FIXED
static int
TAG_RESOLUTION_NATURAL
static int
TAG_RESOLUTION_RAW
static int
VERTICAL_PLOT
-
Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
-
Fields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
-
Fields inherited from interface com.inductiveautomation.vision.api.client.components.model.ComponentLifecycle
COMPONENT_RUNNING
-
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
-
Fields inherited from interface com.inductiveautomation.ignition.client.model.LocaleListener
LOCAL_CHANGE_EVENT
-
-
Constructor Summary
Constructors Constructor Description PMIEasyChart()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent evt)
boolean
couldPoll()
protected PMIDateRange
createDateRange()
protected void
createDropTargetListener()
protected PMIEasyChart.EasyChart
createEasyChart()
protected RealtimeDateRange
createRealtimeDateRange()
org.jfree.chart.renderer.xy.XYItemRenderer
createRenderer(int style, PenCollection attrs)
java.util.List<Dataset>
exportDatasets()
java.lang.String
exportExcel()
java.lang.String
exportExcel(java.lang.String filename)
VisionClientContext
getAppContext()
java.awt.Color[]
getAutoColorList()
Dataset
getAxes()
java.awt.Font
getAxisLabelFont()
java.awt.Font
getAxisTickLabelFont()
double
getBarMargin()
java.awt.Color
getBoxFill()
Dataset
getCalcPens()
javax.swing.border.Border
getChartBorder()
int
getChartMode()
int
getCursorCode()
int
getDatapoints()
int
getDataQuality()
For backwards compatibility with scripts.PMIDateRange
getDateRange()
javax.swing.border.Border
getDateRangeBorder()
int
getDateRangeLocation()
int
getDateStyle()
double
getDigitalGap()
java.awt.Color
getEditorBackgroundColor()
java.awt.Color
getEditorForegroundColor()
int
getEffectivePollRate()
Returns the effective poll rate.java.lang.String
getEmptyGroupName()
java.util.Date
getEndDate()
java.util.Map<java.lang.String,ExtensionFunction>
getExtensionFunctions()
double
getGapThreshold()
java.lang.String
getGlobalWhereClause()
java.awt.Color
getGridlineColor()
java.lang.String
getGridlineDashPattern()
float
getGridlineWidth()
java.util.Map<java.lang.String,java.lang.String>
getGroupWheres()
int
gethGap()
int
getHGap()
java.awt.Color
getHighDensityColor()
java.util.Date
getHistogramEndDate()
java.util.Date
getHistogramStartDate()
int
getHorizontalResolution()
Returns the chart width.int
getLegend()
protected java.lang.String
getMaximizeText()
java.lang.String
getMaxSelectionSize()
java.util.Date
getOuterRangeEnd()
java.util.Date
getOuterRangeStart()
javax.swing.border.Border
getPenBorder()
int
getPenControlMode()
Dataset
getPens()
java.awt.Color
getPlotBackground()
int
getPlotOrientation()
java.awt.Color
getPlotOutlineColor()
int
getPollRate()
protected java.lang.String
getPrintText()
DynamicPropertyDescriptor[]
getProperties()
int
getPropertiesLoading()
java.lang.Object
getPropertyValue(java.lang.String name)
QualityCode
getQuality()
Retrieves the data quality code.protected java.lang.String
getRestoreText()
RealtimeDateRange
getRtDateRange()
java.lang.String
getRtLabel()
protected java.lang.String
getSaveText()
java.lang.String
getSelectedXValue()
java.awt.Color
getSelectionHighlight()
java.util.Date
getStartDate()
java.lang.String
getStartupRange()
java.lang.String
getStartupSelection()
double
getSubplotGap()
Dataset
getSubplots()
boolean
getTagHistoryAllowInterpolation()
boolean
getTagHistoryBypassCache()
boolean
getTagHistoryIgnoreBadData()
int
getTagHistoryResolution()
int
getTagHistoryResolutionMode()
boolean
getTagHistoryValidateScanclass()
Dataset
getTagPens()
float
getTickDensity()
int
getTimeStyle()
java.lang.String
getTitle()
java.awt.Font
getTitleFont()
java.awt.Color
getTodayIndicatorColor()
java.lang.String
getToolTipText()
int
getTrackMargin()
protected Dataset
getTranslatedPens(Dataset penDataset)
int
getUnit()
int
getUnitCount()
int
getUtilityButtonSize()
int
getvGap()
int
getVGap()
java.lang.String
getxAxisLabel()
java.lang.String
getXAxisLabel()
double
getxAxisMargin()
double
getXAxisMargin()
int
getxOffset3D()
int
getXOffset3D()
java.lang.String
getxTraceLargeNumberFormat()
java.lang.String
getXTraceLargeNumberFormat()
double
getxTraceNumberFormatThreshold()
double
getXTraceNumberFormatThreshold()
java.lang.String
getxTraceSmallNumberFormat()
java.lang.String
getXTraceSmallNumberFormat()
java.lang.Boolean
getxTraceTrackMouse()
java.lang.Boolean
getXTraceTrackMouse()
int
getyOffset3D()
int
getYOffset3D()
java.util.Date
getZoomedEndDate()
java.util.Date
getZoomedStartDate()
void
histogramDataUpdated()
void
initialize()
boolean
isAllowColorChanges()
boolean
isAllowPenManipulation()
boolean
isAlphabetizePens()
boolean
isAntialias()
boolean
isAutoApply()
boolean
isAutoColorPens()
boolean
isAutoPositionAxes()
boolean
isCurrentlyMaximized()
boolean
isInvertTimeAxis()
boolean
isOpaque()
boolean
isPenGrouping()
boolean
isPolling()
Returns true if the mode is currently real-time, or manual with a positive poll rate, and the chart is not zoomed inboolean
isPropertyDefined(java.lang.String name)
boolean
isShowHistogram()
boolean
isShowLoading()
boolean
isShowMaximize()
boolean
isShowPopup()
boolean
isShowPrint()
boolean
isShowSave()
boolean
isShowWarnings()
boolean
isTooltips()
boolean
isxAxisAutoRange()
boolean
isXAxisAutoRange()
boolean
isxAxisVisible()
boolean
isXAxisVisible()
void
localeChanged(java.util.Locale newLocale)
void
onPowerTableDrop(SelectedRows rows)
protected void
paintChildren(java.awt.Graphics g)
protected void
paintComponent(java.awt.Graphics g)
protected java.util.Iterator<Pen>
penIterator()
Creates a new Iterator<Pen> that will return all Pen objects represented by the three dataset fields: pens (db pens) tagPens (SQLTags history pens) calcPens (calculated pens)void
print()
void
resetAxes()
void
setAllowColorChanges(boolean allowColorChanges)
void
setAllowPenManipulation(boolean allowPenManipulation)
void
setAlphabetizePens(boolean alphabetizePens)
void
setAntialias(boolean ignored)
void
setAutoApply(boolean autoApply)
void
setAutoColorList(java.awt.Color[] autoColorList)
void
setAutoColorPens(boolean autoColorPens)
void
setAutoPositionAxes(boolean autoPositionAxes)
void
setAxes(Dataset axes)
void
setAxisLabelFont(java.awt.Font axisLabelFont)
void
setAxisTickLabelFont(java.awt.Font axisTickLabelFont)
void
setBackground(java.awt.Color fg)
void
setBarMargin(double barMargin)
void
setBoxFill(java.awt.Color boxFill)
void
setCalcPens(Dataset calcPens)
void
setChartBorder(javax.swing.border.Border chartBorder)
void
setChartMode(int newMode)
void
setCurrentlyMaximized(boolean currentlyMaximized)
void
setCursorCode(int cursorCode)
void
setDatapoints(int datapoints)
void
setDataQuality(int value)
void
setDateRangeBorder(javax.swing.border.Border dateRangeBorder)
void
setDateRangeLocation(int newLocation)
void
setDateStyle(int dateStyle)
void
setDigitalGap(double digitalGap)
void
setEditorBackgroundColor(java.awt.Color editorBackgroundColor)
void
setEditorForegroundColor(java.awt.Color color)
void
setEmptyGroupName(java.lang.String emptyGroupName)
void
setEndDate(java.util.Date endDate)
void
setExtensionFunctions(java.util.Map<java.lang.String,ExtensionFunction> map)
void
setFont(java.awt.Font font)
void
setForeground(java.awt.Color fg)
void
setGapThreshold(double gapThreshold)
void
setGlobalWhereClause(java.lang.String globalWhereClause)
void
setGridlineColor(java.awt.Color gridlineColor)
void
setGridlineDashPattern(java.lang.String gridlineDashPattern)
void
setGridlineWidth(float gridlineWidth)
void
setGroupWheres(java.util.Map<java.lang.String,java.lang.String> groupWheres)
void
sethGap(int gap)
void
setHGap(int gap)
void
setHighDensityColor(java.awt.Color color)
void
setInvertTimeAxis(boolean inverted)
void
setLegend(int i)
void
setMaxSelectionSize(java.lang.String maxSelectionSize)
void
setMode(int mode)
Forwards to the internal chart's setMode functionvoid
setName(java.lang.String newName)
void
setOuterRangeEnd(java.util.Date endDate)
void
setOuterRangeStart(java.util.Date startDate)
void
setPenBorder(javax.swing.border.Border penBorder)
void
setPenControlMode(int penControlMode)
void
setPenGrouping(boolean penGrouping)
void
setPens(Dataset pens)
void
setPlotBackground(java.awt.Color color)
void
setPlotOrientation(int orientation)
void
setPlotOutlineColor(java.awt.Color plotOutlineColor)
void
setPollRate(int pollRate)
void
setPropertiesLoading(int i)
void
setPropertyValue(java.lang.String name, java.lang.Object value)
void
setQuality(QualityCode value)
Sets the current data quality to the given valuevoid
setRtLabel(java.lang.String text)
void
setSelectedXValue(java.lang.String domainAnchor)
void
setSelectionHighlight(java.awt.Color selectionHighlight)
void
setShowHistogram(boolean showHistogram)
void
setShowLoading(boolean showLoading)
void
setShowMaximize(boolean showMaximize)
void
setShowPopup(boolean showPopup)
void
setShowPrint(boolean showPrint)
void
setShowSave(boolean showSave)
void
setShowWarnings(boolean showWarnings)
void
setStartDate(java.util.Date startDate)
void
setStartupRange(java.lang.String startupRange)
void
setStartupSelection(java.lang.String startupSelection)
void
setSubplotGap(double gap)
void
setSubplots(Dataset subplots)
void
setTagHistoryAllowInterpolation(boolean value)
void
setTagHistoryBypassCache(boolean value)
void
setTagHistoryIgnoreBadData(boolean value)
void
setTagHistoryResolution(int tagHistoryResolution)
void
setTagHistoryResolutionMode(int mode)
void
setTagHistoryValidateScanclass(boolean value)
void
setTagPens(Dataset tagPens)
void
setTickDensity(float tickDensity)
void
setTimeStyle(int timeStyle)
void
setTitle(java.lang.String string)
void
setTitleFont(java.awt.Font font)
void
setTodayIndicatorColor(java.awt.Color todayIndicatorColor)
void
setTooltips(boolean b)
void
setTrackMargin(int trackMargin)
void
setUnit(int unit)
void
setUnitCount(int unitCount)
void
setUtilityButtonSize(int u)
void
setvGap(int gap)
void
setVGap(int gap)
void
setVisible(boolean visible)
void
setxAxisAutoRange(boolean axisAutoRange)
void
setXAxisAutoRange(boolean axisAutoRange)
void
setxAxisLabel(java.lang.String axisLabel)
void
setXAxisLabel(java.lang.String axisLabel)
void
setxAxisMargin(double axisMargin)
void
setXAxisMargin(double axisMargin)
void
setxAxisVisible(boolean xAxisVisible)
void
setXAxisVisible(boolean xAxisVisible)
void
setxOffset3D(int offset3D)
void
setXOffset3D(int offset3D)
void
setxTraceLargeNumberFormat(java.lang.String xTraceLargeNumberFormat)
void
setXTraceLargeNumberFormat(java.lang.String xTraceLargeNumberFormat)
void
setxTraceNumberFormatThreshold(double xTraceNumberFormatThreshold)
void
setXTraceNumberFormatThreshold(double xTraceNumberFormatThreshold)
void
setxTraceSmallNumberFormat(java.lang.String xTraceSmallNumberFormat)
void
setXTraceSmallNumberFormat(java.lang.String xTraceSmallNumberFormat)
void
setxTraceTrackMouse(java.lang.Boolean value)
void
setXTraceTrackMouse(java.lang.Boolean value)
void
setyOffset3D(int offset3D)
void
setYOffset3D(int offset3D)
void
shutdownComponent()
Called when the component is now shown anymore.void
startupComponent(VisionClientContext context)
Called when the component is first shown.void
toggleMaximized()
protected java.lang.String
translate(java.lang.String key)
protected java.lang.String
translateTerm(java.lang.String term)
protected void
updateConfig()
void
updateQuality(java.lang.String propName, QualityCode quality)
Updates the quality for the given property name.-
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
-
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update
-
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
-
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
-
-
-
Field Detail
-
DYNAMIC_GROUP_PREFIX
public static final java.lang.String DYNAMIC_GROUP_PREFIX
- See Also:
- Constant Field Values
-
AXES_LABEL_FORMAT
public static final java.lang.String AXES_LABEL_FORMAT
- See Also:
- Constant Field Values
-
PEN_LABEL_FORMAT
public static final java.lang.String PEN_LABEL_FORMAT
- See Also:
- Constant Field Values
-
GROUP_LABEL_FORMAT
public static final java.lang.String GROUP_LABEL_FORMAT
- See Also:
- Constant Field Values
-
STYLE_LINE
public static final int STYLE_LINE
- See Also:
- Constant Field Values
-
STYLE_LINE_DISCONTINUOUS
public static final int STYLE_LINE_DISCONTINUOUS
- See Also:
- Constant Field Values
-
STYLE_3D_LINE
public static final int STYLE_3D_LINE
- See Also:
- Constant Field Values
-
STYLE_AREA
public static final int STYLE_AREA
- See Also:
- Constant Field Values
-
STYLE_STEP
public static final int STYLE_STEP
- See Also:
- Constant Field Values
-
STYLE_STEP_AREA
public static final int STYLE_STEP_AREA
- See Also:
- Constant Field Values
-
STYLE_SHAPE
public static final int STYLE_SHAPE
- See Also:
- Constant Field Values
-
STYLE_LINE_AND_SHAPE
public static final int STYLE_LINE_AND_SHAPE
- See Also:
- Constant Field Values
-
STYLE_DOT
public static final int STYLE_DOT
- See Also:
- Constant Field Values
-
STYLE_BAR
public static final int STYLE_BAR
- See Also:
- Constant Field Values
-
STYLE_BAR_NO_SHADOW
public static final int STYLE_BAR_NO_SHADOW
- See Also:
- Constant Field Values
-
EDGE_TOP
public static final int EDGE_TOP
- See Also:
- Constant Field Values
-
EDGE_BOTTOM
public static final int EDGE_BOTTOM
- See Also:
- Constant Field Values
-
EDGE_LEFT
public static final int EDGE_LEFT
- See Also:
- Constant Field Values
-
EDGE_RIGHT
public static final int EDGE_RIGHT
- See Also:
- Constant Field Values
-
EDGE_NONE
public static final int EDGE_NONE
- See Also:
- Constant Field Values
-
MODE_MANUAL
public static final int MODE_MANUAL
- See Also:
- Constant Field Values
-
MODE_HISTORICAL
public static final int MODE_HISTORICAL
- See Also:
- Constant Field Values
-
MODE_REALTIME
public static final int MODE_REALTIME
- See Also:
- Constant Field Values
-
PEN_CONTROL_HEAVY
public static final int PEN_CONTROL_HEAVY
- See Also:
- Constant Field Values
-
PEN_CONTROL_LIGHT
public static final int PEN_CONTROL_LIGHT
- See Also:
- Constant Field Values
-
VERTICAL_PLOT
public static final int VERTICAL_PLOT
- See Also:
- Constant Field Values
-
HORIZONTAL_PLOT
public static final int HORIZONTAL_PLOT
- See Also:
- Constant Field Values
-
TAG_RESOLUTION_FIXED
public static final int TAG_RESOLUTION_FIXED
- See Also:
- Constant Field Values
-
TAG_RESOLUTION_RAW
public static final int TAG_RESOLUTION_RAW
- See Also:
- Constant Field Values
-
TAG_RESOLUTION_NATURAL
public static final int TAG_RESOLUTION_NATURAL
- See Also:
- Constant Field Values
-
TAG_RESOLUTION_CHART
public static final int TAG_RESOLUTION_CHART
- See Also:
- Constant Field Values
-
SHAPE_LIST
public static final java.awt.Shape[] SHAPE_LIST
-
pens
protected Dataset pens
-
axes
protected Dataset axes
-
subplots
protected Dataset subplots
-
penControlMode
protected int penControlMode
-
antialias
protected boolean antialias
-
chart
protected PMIEasyChart.EasyChart chart
-
penPanel
protected PMIEasyChart.PenPanel penPanel
-
cursorCode
protected int cursorCode
-
-
Method Detail
-
translate
protected java.lang.String translate(java.lang.String key)
-
translateTerm
protected java.lang.String translateTerm(java.lang.String term)
-
createRealtimeDateRange
protected RealtimeDateRange createRealtimeDateRange()
-
createEasyChart
protected PMIEasyChart.EasyChart createEasyChart()
-
createDateRange
protected PMIDateRange createDateRange()
-
createDropTargetListener
protected void createDropTargetListener()
-
localeChanged
public void localeChanged(java.util.Locale newLocale)
- Specified by:
localeChanged
in interfaceLocaleListener
-
getToolTipText
public java.lang.String getToolTipText()
- Overrides:
getToolTipText
in classjavax.swing.JComponent
-
getMaximizeText
protected java.lang.String getMaximizeText()
-
getRestoreText
protected java.lang.String getRestoreText()
-
getPrintText
protected java.lang.String getPrintText()
-
getSaveText
protected java.lang.String getSaveText()
-
isPolling
public boolean isPolling()
Returns true if the mode is currently real-time, or manual with a positive poll rate, and the chart is not zoomed in
-
couldPoll
public boolean couldPoll()
-
getEffectivePollRate
public int getEffectivePollRate()
Returns the effective poll rate. This will be zero if isPolling() returns false, or the poll rate with a lower bound of 250ms if we are currently polling.
-
initialize
public void initialize()
- Specified by:
initialize
in interfaceDesignerInitializable
-
setMode
public void setMode(int mode)
Forwards to the internal chart's setMode function
-
setName
public void setName(java.lang.String newName)
- Overrides:
setName
in classjava.awt.Component
-
isOpaque
public boolean isOpaque()
- Overrides:
isOpaque
in classjavax.swing.JComponent
-
setVisible
public void setVisible(boolean visible)
- Overrides:
setVisible
in classjavax.swing.JComponent
-
setInvertTimeAxis
public void setInvertTimeAxis(boolean inverted)
-
isInvertTimeAxis
public boolean isInvertTimeAxis()
-
paintComponent
protected void paintComponent(java.awt.Graphics g)
- Overrides:
paintComponent
in classjavax.swing.JComponent
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent evt)
- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
-
exportExcel
public java.lang.String exportExcel(java.lang.String filename)
-
exportExcel
public java.lang.String exportExcel()
-
exportDatasets
public java.util.List<Dataset> exportDatasets()
-
print
public void print()
-
createRenderer
public org.jfree.chart.renderer.xy.XYItemRenderer createRenderer(int style, PenCollection attrs)
-
toggleMaximized
public void toggleMaximized()
-
updateConfig
protected void updateConfig()
-
penIterator
protected java.util.Iterator<Pen> penIterator()
Creates a new Iterator<Pen> that will return all Pen objects represented by the three dataset fields:- pens (db pens)
- tagPens (SQLTags history pens)
- calcPens (calculated pens)
-
isAllowPenManipulation
public boolean isAllowPenManipulation()
-
setAllowPenManipulation
public void setAllowPenManipulation(boolean allowPenManipulation)
-
isAllowColorChanges
public boolean isAllowColorChanges()
-
setAllowColorChanges
public void setAllowColorChanges(boolean allowColorChanges)
-
getChartMode
public int getChartMode()
-
setChartMode
public void setChartMode(int newMode)
-
getDateRangeLocation
public int getDateRangeLocation()
-
setDateRangeLocation
public void setDateRangeLocation(int newLocation)
-
getDateRangeBorder
public javax.swing.border.Border getDateRangeBorder()
-
setDateRangeBorder
public void setDateRangeBorder(javax.swing.border.Border dateRangeBorder)
-
getDateRange
public PMIDateRange getDateRange()
-
getRtDateRange
public RealtimeDateRange getRtDateRange()
-
getPenBorder
public javax.swing.border.Border getPenBorder()
-
setPenBorder
public void setPenBorder(javax.swing.border.Border penBorder)
-
getChartBorder
public javax.swing.border.Border getChartBorder()
-
setChartBorder
public void setChartBorder(javax.swing.border.Border chartBorder)
-
getPens
public Dataset getPens()
-
setPens
public void setPens(Dataset pens)
-
getTagPens
public Dataset getTagPens()
-
setTagPens
public void setTagPens(Dataset tagPens)
-
getCalcPens
public Dataset getCalcPens()
-
setCalcPens
public void setCalcPens(Dataset calcPens)
-
setLegend
public void setLegend(int i)
-
getLegend
public int getLegend()
-
getDateStyle
public int getDateStyle()
-
setDateStyle
public void setDateStyle(int dateStyle)
-
getTimeStyle
public int getTimeStyle()
-
setTimeStyle
public void setTimeStyle(int timeStyle)
-
setTooltips
public void setTooltips(boolean b)
-
isTooltips
public boolean isTooltips()
-
getSelectedXValue
public java.lang.String getSelectedXValue()
-
setSelectedXValue
public void setSelectedXValue(java.lang.String domainAnchor)
-
getBoxFill
public java.awt.Color getBoxFill()
-
getHighDensityColor
public java.awt.Color getHighDensityColor()
-
getSelectionHighlight
public java.awt.Color getSelectionHighlight()
-
getTickDensity
public float getTickDensity()
-
getTodayIndicatorColor
public java.awt.Color getTodayIndicatorColor()
-
getTrackMargin
public int getTrackMargin()
-
setBoxFill
public void setBoxFill(java.awt.Color boxFill)
-
setHighDensityColor
public void setHighDensityColor(java.awt.Color color)
-
setSelectionHighlight
public void setSelectionHighlight(java.awt.Color selectionHighlight)
-
getBarMargin
public double getBarMargin()
-
setBarMargin
public void setBarMargin(double barMargin)
-
getCursorCode
public int getCursorCode()
-
setCursorCode
public void setCursorCode(int cursorCode)
-
getGapThreshold
public double getGapThreshold()
-
getHorizontalResolution
public int getHorizontalResolution()
Returns the chart width.
-
getTagHistoryResolution
public int getTagHistoryResolution()
-
setTagHistoryResolution
public void setTagHistoryResolution(int tagHistoryResolution)
-
getTagHistoryResolutionMode
public int getTagHistoryResolutionMode()
-
setTagHistoryResolutionMode
public void setTagHistoryResolutionMode(int mode)
-
getTagHistoryAllowInterpolation
public boolean getTagHistoryAllowInterpolation()
-
setTagHistoryAllowInterpolation
public void setTagHistoryAllowInterpolation(boolean value)
-
getTagHistoryValidateScanclass
public boolean getTagHistoryValidateScanclass()
-
setTagHistoryValidateScanclass
public void setTagHistoryValidateScanclass(boolean value)
-
getTagHistoryIgnoreBadData
public boolean getTagHistoryIgnoreBadData()
-
setTagHistoryIgnoreBadData
public void setTagHistoryIgnoreBadData(boolean value)
-
getTagHistoryBypassCache
public boolean getTagHistoryBypassCache()
-
setTagHistoryBypassCache
public void setTagHistoryBypassCache(boolean value)
-
setPlotOrientation
public void setPlotOrientation(int orientation)
-
setPenControlMode
public void setPenControlMode(int penControlMode)
-
getPlotOrientation
public int getPlotOrientation()
-
getPenControlMode
public int getPenControlMode()
-
setGapThreshold
public void setGapThreshold(double gapThreshold)
-
getDigitalGap
public double getDigitalGap()
-
setDigitalGap
public void setDigitalGap(double digitalGap)
-
getXOffset3D
public int getXOffset3D()
-
getxOffset3D
public int getxOffset3D()
-
setXOffset3D
public void setXOffset3D(int offset3D)
-
setxOffset3D
public void setxOffset3D(int offset3D)
-
getYOffset3D
public int getYOffset3D()
-
getyOffset3D
public int getyOffset3D()
-
setYOffset3D
public void setYOffset3D(int offset3D)
-
setyOffset3D
public void setyOffset3D(int offset3D)
-
setTickDensity
public void setTickDensity(float tickDensity)
-
setTodayIndicatorColor
public void setTodayIndicatorColor(java.awt.Color todayIndicatorColor)
-
setTrackMargin
public void setTrackMargin(int trackMargin)
-
getMaxSelectionSize
public java.lang.String getMaxSelectionSize()
-
getOuterRangeStart
public java.util.Date getOuterRangeStart()
-
setOuterRangeStart
public void setOuterRangeStart(java.util.Date startDate)
-
getOuterRangeEnd
public java.util.Date getOuterRangeEnd()
-
setOuterRangeEnd
public void setOuterRangeEnd(java.util.Date endDate)
-
getStartupRange
public java.lang.String getStartupRange()
-
getStartupSelection
public java.lang.String getStartupSelection()
-
setStartupRange
public void setStartupRange(java.lang.String startupRange)
-
setStartupSelection
public void setStartupSelection(java.lang.String startupSelection)
-
setMaxSelectionSize
public void setMaxSelectionSize(java.lang.String maxSelectionSize)
-
getPlotBackground
public java.awt.Color getPlotBackground()
-
setPlotBackground
public void setPlotBackground(java.awt.Color color)
-
getEditorForegroundColor
public java.awt.Color getEditorForegroundColor()
-
setEditorForegroundColor
public void setEditorForegroundColor(java.awt.Color color)
-
getEditorBackgroundColor
public java.awt.Color getEditorBackgroundColor()
-
setEditorBackgroundColor
public void setEditorBackgroundColor(java.awt.Color editorBackgroundColor)
-
getGridlineColor
public java.awt.Color getGridlineColor()
-
getGridlineDashPattern
public java.lang.String getGridlineDashPattern()
-
getGridlineWidth
public float getGridlineWidth()
-
isShowPopup
public boolean isShowPopup()
-
setShowPopup
public void setShowPopup(boolean showPopup)
-
setGridlineColor
public void setGridlineColor(java.awt.Color gridlineColor)
-
setGridlineDashPattern
public void setGridlineDashPattern(java.lang.String gridlineDashPattern)
-
setGridlineWidth
public void setGridlineWidth(float gridlineWidth)
-
getTitle
public java.lang.String getTitle()
-
setTitle
public void setTitle(java.lang.String string)
-
getTitleFont
public java.awt.Font getTitleFont()
-
setTitleFont
public void setTitleFont(java.awt.Font font)
-
setPropertiesLoading
public void setPropertiesLoading(int i)
- Specified by:
setPropertiesLoading
in interfaceLoadingMonitor
-
histogramDataUpdated
public void histogramDataUpdated()
-
getPropertiesLoading
public int getPropertiesLoading()
- Specified by:
getPropertiesLoading
in interfaceLoadingMonitor
-
getAxes
public Dataset getAxes()
-
setAxes
public void setAxes(Dataset axes)
-
getPollRate
public int getPollRate()
-
setPollRate
public void setPollRate(int pollRate)
-
getGlobalWhereClause
public java.lang.String getGlobalWhereClause()
-
setGlobalWhereClause
public void setGlobalWhereClause(java.lang.String globalWhereClause)
-
getEndDate
public java.util.Date getEndDate()
-
setEndDate
public void setEndDate(java.util.Date endDate)
-
getStartDate
public java.util.Date getStartDate()
-
getZoomedStartDate
public java.util.Date getZoomedStartDate()
-
getZoomedEndDate
public java.util.Date getZoomedEndDate()
-
setStartDate
public void setStartDate(java.util.Date startDate)
-
getHistogramStartDate
public java.util.Date getHistogramStartDate()
-
getHistogramEndDate
public java.util.Date getHistogramEndDate()
-
isShowHistogram
public boolean isShowHistogram()
-
setShowHistogram
public void setShowHistogram(boolean showHistogram)
-
isShowWarnings
public boolean isShowWarnings()
-
setShowWarnings
public void setShowWarnings(boolean showWarnings)
-
isShowLoading
public boolean isShowLoading()
-
setShowLoading
public void setShowLoading(boolean showLoading)
-
getXAxisLabel
public java.lang.String getXAxisLabel()
-
getxAxisLabel
public java.lang.String getxAxisLabel()
-
setXAxisLabel
public void setXAxisLabel(java.lang.String axisLabel)
-
setxAxisLabel
public void setxAxisLabel(java.lang.String axisLabel)
-
isXAxisVisible
public boolean isXAxisVisible()
-
isxAxisVisible
public boolean isxAxisVisible()
-
setXAxisVisible
public void setXAxisVisible(boolean xAxisVisible)
-
setxAxisVisible
public void setxAxisVisible(boolean xAxisVisible)
-
getSubplots
public Dataset getSubplots()
-
setSubplots
public void setSubplots(Dataset subplots)
-
getAxisLabelFont
public java.awt.Font getAxisLabelFont()
-
setAxisLabelFont
public void setAxisLabelFont(java.awt.Font axisLabelFont)
-
getAxisTickLabelFont
public java.awt.Font getAxisTickLabelFont()
-
setAxisTickLabelFont
public void setAxisTickLabelFont(java.awt.Font axisTickLabelFont)
-
getPlotOutlineColor
public java.awt.Color getPlotOutlineColor()
-
setPlotOutlineColor
public void setPlotOutlineColor(java.awt.Color plotOutlineColor)
-
getDatapoints
public int getDatapoints()
-
setDatapoints
public void setDatapoints(int datapoints)
-
isAutoPositionAxes
public boolean isAutoPositionAxes()
-
setAutoPositionAxes
public void setAutoPositionAxes(boolean autoPositionAxes)
-
getAutoColorList
public java.awt.Color[] getAutoColorList()
-
setAutoColorList
public void setAutoColorList(java.awt.Color[] autoColorList)
-
isAutoColorPens
public boolean isAutoColorPens()
-
setAutoColorPens
public void setAutoColorPens(boolean autoColorPens)
-
isAntialias
public boolean isAntialias()
-
setAntialias
public void setAntialias(boolean ignored)
-
setFont
public void setFont(java.awt.Font font)
- Overrides:
setFont
in classjavax.swing.JComponent
-
setForeground
public void setForeground(java.awt.Color fg)
- Overrides:
setForeground
in classjavax.swing.JComponent
-
setBackground
public void setBackground(java.awt.Color fg)
- Overrides:
setBackground
in classjavax.swing.JComponent
-
isPenGrouping
public boolean isPenGrouping()
-
setPenGrouping
public void setPenGrouping(boolean penGrouping)
-
isAlphabetizePens
public boolean isAlphabetizePens()
-
setAlphabetizePens
public void setAlphabetizePens(boolean alphabetizePens)
-
isAutoApply
public boolean isAutoApply()
-
setAutoApply
public void setAutoApply(boolean autoApply)
-
getEmptyGroupName
public java.lang.String getEmptyGroupName()
-
setEmptyGroupName
public void setEmptyGroupName(java.lang.String emptyGroupName)
-
getUnit
public int getUnit()
-
setUnit
public void setUnit(int unit)
-
getUnitCount
public int getUnitCount()
-
setUnitCount
public void setUnitCount(int unitCount)
-
getRtLabel
public java.lang.String getRtLabel()
-
setRtLabel
public void setRtLabel(java.lang.String text)
-
getHGap
public int getHGap()
-
gethGap
public int gethGap()
-
setHGap
public void setHGap(int gap)
-
sethGap
public void sethGap(int gap)
-
getVGap
public int getVGap()
-
getvGap
public int getvGap()
-
setVGap
public void setVGap(int gap)
-
setvGap
public void setvGap(int gap)
-
getSubplotGap
public double getSubplotGap()
-
setSubplotGap
public void setSubplotGap(double gap)
-
isCurrentlyMaximized
public boolean isCurrentlyMaximized()
-
setCurrentlyMaximized
public void setCurrentlyMaximized(boolean currentlyMaximized)
-
isShowMaximize
public boolean isShowMaximize()
-
setShowMaximize
public void setShowMaximize(boolean showMaximize)
-
isShowPrint
public boolean isShowPrint()
-
setShowPrint
public void setShowPrint(boolean showPrint)
-
isShowSave
public boolean isShowSave()
-
setShowSave
public void setShowSave(boolean showSave)
-
getUtilityButtonSize
public int getUtilityButtonSize()
-
setUtilityButtonSize
public void setUtilityButtonSize(int u)
-
getGroupWheres
public java.util.Map<java.lang.String,java.lang.String> getGroupWheres()
-
setGroupWheres
public void setGroupWheres(java.util.Map<java.lang.String,java.lang.String> groupWheres)
-
getProperties
public DynamicPropertyDescriptor[] getProperties()
- Specified by:
getProperties
in interfaceDynamicPropertyProvider
-
getPropertyValue
public java.lang.Object getPropertyValue(java.lang.String name)
- Specified by:
getPropertyValue
in interfaceDynamicPropertyProvider
-
setPropertyValue
public void setPropertyValue(java.lang.String name, java.lang.Object value) throws java.lang.ClassCastException
- Specified by:
setPropertyValue
in interfaceDynamicPropertyProvider
- Throws:
java.lang.ClassCastException
-
isPropertyDefined
public boolean isPropertyDefined(java.lang.String name)
- Specified by:
isPropertyDefined
in interfaceDynamicPropertyProvider
-
startupComponent
public void startupComponent(VisionClientContext context)
Description copied from interface:ComponentLifecycle
Called when the component is first shown.- Specified by:
startupComponent
in interfaceComponentLifecycle
-
shutdownComponent
public void shutdownComponent()
Description copied from interface:ComponentLifecycle
Called when the component is now shown anymore. Any long-running processes should be stopped. All bindings will have also been shutdown.- Specified by:
shutdownComponent
in interfaceComponentLifecycle
-
getAppContext
public VisionClientContext getAppContext()
- Specified by:
getAppContext
in interfaceComponentLifecycle
-
isXAxisAutoRange
public boolean isXAxisAutoRange()
-
isxAxisAutoRange
public boolean isxAxisAutoRange()
-
setXAxisAutoRange
public void setXAxisAutoRange(boolean axisAutoRange)
-
setxAxisAutoRange
public void setxAxisAutoRange(boolean axisAutoRange)
-
getXAxisMargin
public double getXAxisMargin()
-
getxAxisMargin
public double getxAxisMargin()
-
setXAxisMargin
public void setXAxisMargin(double axisMargin)
-
setxAxisMargin
public void setxAxisMargin(double axisMargin)
-
getXTraceNumberFormatThreshold
public double getXTraceNumberFormatThreshold()
-
getxTraceNumberFormatThreshold
public double getxTraceNumberFormatThreshold()
-
setXTraceNumberFormatThreshold
public void setXTraceNumberFormatThreshold(double xTraceNumberFormatThreshold)
-
setxTraceNumberFormatThreshold
public void setxTraceNumberFormatThreshold(double xTraceNumberFormatThreshold)
-
getXTraceLargeNumberFormat
public java.lang.String getXTraceLargeNumberFormat()
-
getxTraceLargeNumberFormat
public java.lang.String getxTraceLargeNumberFormat()
-
setXTraceLargeNumberFormat
public void setXTraceLargeNumberFormat(java.lang.String xTraceLargeNumberFormat)
-
setxTraceLargeNumberFormat
public void setxTraceLargeNumberFormat(java.lang.String xTraceLargeNumberFormat)
-
getXTraceSmallNumberFormat
public java.lang.String getXTraceSmallNumberFormat()
-
getxTraceSmallNumberFormat
public java.lang.String getxTraceSmallNumberFormat()
-
setXTraceSmallNumberFormat
public void setXTraceSmallNumberFormat(java.lang.String xTraceSmallNumberFormat)
-
setxTraceSmallNumberFormat
public void setxTraceSmallNumberFormat(java.lang.String xTraceSmallNumberFormat)
-
setXTraceTrackMouse
public void setXTraceTrackMouse(java.lang.Boolean value)
-
setxTraceTrackMouse
public void setxTraceTrackMouse(java.lang.Boolean value)
-
getXTraceTrackMouse
public java.lang.Boolean getXTraceTrackMouse()
-
getxTraceTrackMouse
public java.lang.Boolean getxTraceTrackMouse()
-
getQuality
public QualityCode getQuality()
Description copied from interface:QualityMonitor
Retrieves the data quality code.- Specified by:
getQuality
in interfaceQualityMonitor
-
getDataQuality
public int getDataQuality()
Description copied from interface:QualityMonitor
For backwards compatibility with scripts. Would be awesome if this could just be a default method, but there's a bug (JDK-8071693) that makes that not work with property introspection.- Specified by:
getDataQuality
in interfaceQualityMonitor
-
setDataQuality
public void setDataQuality(int value)
- Specified by:
setDataQuality
in interfaceQualityMonitor
-
setQuality
public void setQuality(QualityCode value)
Description copied from interface:QualityMonitor
Sets the current data quality to the given value- Specified by:
setQuality
in interfaceQualityMonitor
-
updateQuality
public void updateQuality(java.lang.String propName, QualityCode quality)
Description copied from interface:QualityMonitor
Updates the quality for the given property name. The monitor will then evaluate a new quality based on the quality of its other properties. Overall, the worst quality is chosen.- Specified by:
updateQuality
in interfaceQualityMonitor
-
paintChildren
protected void paintChildren(java.awt.Graphics g)
- Overrides:
paintChildren
in classjavax.swing.JComponent
-
resetAxes
public void resetAxes()
-
getExtensionFunctions
public java.util.Map<java.lang.String,ExtensionFunction> getExtensionFunctions()
- Specified by:
getExtensionFunctions
in interfaceExtensibleComponent
-
setExtensionFunctions
public void setExtensionFunctions(java.util.Map<java.lang.String,ExtensionFunction> map)
- Specified by:
setExtensionFunctions
in interfaceExtensibleComponent
-
onPowerTableDrop
public void onPowerTableDrop(SelectedRows rows)
-
-