public class PMIStatusChart extends PMIChartPanel implements LoadingMonitor, ExtensibleComponent, LocaleListener
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
protected com.inductiveautomation.factorypmi.application.components.statuschart.PMIStatusChart.StatusInterval |
currentStatusInterval |
static int |
EDGE_BOTTOM |
static int |
EDGE_LEFT |
static int |
EDGE_RIGHT |
static int |
EDGE_TOP |
static java.lang.String |
LABEL_FORMAT |
static int |
SOURCE_TALL |
static int |
SOURCE_WIDE |
antialias, context, cursorCode, print, save, showPopup, zoom
DEFAULT_BUFFER_USED, DEFAULT_HEIGHT, DEFAULT_MAXIMUM_DRAW_HEIGHT, DEFAULT_MAXIMUM_DRAW_WIDTH, DEFAULT_MINIMUM_DRAW_HEIGHT, DEFAULT_MINIMUM_DRAW_WIDTH, DEFAULT_WIDTH, DEFAULT_ZOOM_TRIGGER_DISTANCE, localizationResources, PRINT_COMMAND, PROPERTIES_COMMAND, SAVE_COMMAND, ZOOM_IN_BOTH_COMMAND, ZOOM_IN_DOMAIN_COMMAND, ZOOM_IN_RANGE_COMMAND, ZOOM_OUT_BOTH_COMMAND, ZOOM_OUT_DOMAIN_COMMAND, ZOOM_OUT_RANGE_COMMAND, ZOOM_RESET_BOTH_COMMAND, ZOOM_RESET_DOMAIN_COMMAND, ZOOM_RESET_RANGE_COMMAND
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
COMPONENT_RUNNING
COMPONENT_LOCKED, COMPONENT_PERMISSIONS, COMPONENT_SECURITY, COMPONENT_TRANSLATIONS
Constructor and Description |
---|
PMIStatusChart() |
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getBackground() |
StatusChartDataSet |
getCalculatedDataset() |
java.lang.String |
getChartTitle() |
Dataset |
getData() |
int |
getDataFormat() |
int |
getDateStyle() |
java.awt.Color |
getDomainAxisColor() |
java.awt.Font |
getDomainAxisFont() |
java.lang.String |
getDomainAxisLabel() |
int |
getDomainAxisLocation() |
java.util.Map<java.lang.String,ExtensionFunction> |
getExtensionFunctions() |
Dataset |
getLegend() |
Dataset |
getProperties() |
int |
getPropertiesLoading() |
java.awt.Color |
getRangeAxisColor() |
java.awt.Font |
getRangeAxisFont() |
java.lang.String |
getRangeAxisLabel() |
int |
getRangeAxisLocation() |
double |
getRangeAxisLowerMargin() |
double |
getRangeAxisUpperMargin() |
double |
getSeriesSpacing() |
int |
getTimeStyle() |
java.awt.Color |
getTitleColor() |
java.awt.Font |
getTitleFont() |
Dataset |
getTranslatedData() |
boolean |
isDomainAxisVisible() |
boolean |
isOpaque() |
boolean |
isRangeAxisVisible() |
void |
localeChanged(java.util.Locale newLocale) |
void |
setBackground(java.awt.Color bg) |
void |
setChartTitle(java.lang.String chartTitle) |
void |
setData(Dataset data) |
void |
setDataFormat(int dataFormat) |
void |
setDateStyle(int dateStyle) |
void |
setDomainAxisColor(java.awt.Color domainAxisColor) |
void |
setDomainAxisFont(java.awt.Font domainAxisFont) |
void |
setDomainAxisLabel(java.lang.String domainAxisLabel) |
void |
setDomainAxisLocation(int domainAxisLocation) |
void |
setDomainAxisVisible(boolean domainAxisVisible) |
void |
setExtensionFunctions(java.util.Map<java.lang.String,ExtensionFunction> map) |
void |
setLegend(Dataset legend) |
void |
setProperties(Dataset properties)
The properties is the dataset that defines the colors for the chart's renderer
|
void |
setPropertiesLoading(int propertiesLoading) |
void |
setRangeAxisColor(java.awt.Color rangeAxisColor) |
void |
setRangeAxisFont(java.awt.Font rangeAxisFont) |
void |
setRangeAxisLabel(java.lang.String rangeAxisLabel) |
void |
setRangeAxisLocation(int rangeAxisLocation) |
void |
setRangeAxisLowerMargin(double rangeAxisLowerMargin) |
void |
setRangeAxisUpperMargin(double rangeAxisUpperMargin) |
void |
setRangeAxisVisible(boolean rangeAxisVisible) |
void |
setSeriesSpacing(double seriesSpacing) |
void |
setTimeStyle(int timeStyle) |
void |
setTitleColor(java.awt.Color titleColor) |
void |
setTitleFont(java.awt.Font titleFont) |
createChartPrintJob, createPopupMenu, displayPopupMenu, doSaveAs, getAppContext, getCursorCode, getDataQuality, getToolTipText, getToolTipText, isAntialias, isShowPopup, onShutdown, onStartup, paintChildren, print, setAntialias, setCursorCode, setDataQuality, setName, setShowPopup, setVisible, shutdownComponent, startupComponent, translate, translateTerm, updateQuality
actionPerformed, addChartMouseListener, chartChanged, chartProgress, doEditChartProperties, getAnchor, getChart, getChartRenderingInfo, getDefaultDirectoryForSaveAs, getDismissDelay, getEntityForPoint, getFillZoomRectangle, getHorizontalAxisTrace, getHorizontalTraceLine, getInitialDelay, getListeners, getMaximumDrawHeight, getMaximumDrawWidth, getMinimumDrawHeight, getMinimumDrawWidth, getPopupMenu, getRefreshBuffer, getReshowDelay, getScaleX, getScaleY, getScreenDataArea, getScreenDataArea, getVerticalAxisTrace, getVerticalTraceLine, getZoomAroundAnchor, getZoomInFactor, getZoomOutFactor, getZoomTriggerDistance, isDomainZoomable, isEnforceFileExtensions, isRangeZoomable, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, paintComponent, print, removeChartMouseListener, restoreAutoBounds, restoreAutoDomainBounds, restoreAutoRangeBounds, scale, setAnchor, setChart, setDefaultDirectoryForSaveAs, setDismissDelay, setDisplayToolTips, setDomainZoomable, setEnforceFileExtensions, setFillZoomRectangle, setHorizontalAxisTrace, setHorizontalTraceLine, setInitialDelay, setMaximumDrawHeight, setMaximumDrawWidth, setMinimumDrawHeight, setMinimumDrawWidth, setMouseZoomable, setMouseZoomable, setPopupMenu, setRangeZoomable, setRefreshBuffer, setReshowDelay, setVerticalAxisTrace, setVerticalTraceLine, setZoomAroundAnchor, setZoomInFactor, setZoomOutFactor, setZoomTriggerDistance, translateJava2DToScreen, translateScreenToJava2D, updateUI, zoom, zoomInBoth, zoomInDomain, zoomInRange, zoomOutBoth, zoomOutDomain, zoomOutRange
getAccessibleContext, getUI, getUIClassID, paramString, setUI
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, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, 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, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update
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
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, 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, getPeer, 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, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAppContext, shutdownComponent, startupComponent
public static final int EDGE_TOP
public static final int EDGE_BOTTOM
public static final int EDGE_LEFT
public static final int EDGE_RIGHT
public static final int SOURCE_WIDE
public static final int SOURCE_TALL
public static final java.lang.String LABEL_FORMAT
protected com.inductiveautomation.factorypmi.application.components.statuschart.PMIStatusChart.StatusInterval currentStatusInterval
public java.awt.Color getBackground()
getBackground
in class java.awt.Component
public java.lang.String getChartTitle()
public Dataset getData()
public Dataset getTranslatedData()
public int getDataFormat()
public int getDateStyle()
public java.awt.Color getDomainAxisColor()
public java.awt.Font getDomainAxisFont()
public java.lang.String getDomainAxisLabel()
public int getDomainAxisLocation()
public Dataset getProperties()
public int getPropertiesLoading()
getPropertiesLoading
in interface LoadingMonitor
public java.awt.Color getRangeAxisColor()
public java.awt.Font getRangeAxisFont()
public java.lang.String getRangeAxisLabel()
public int getRangeAxisLocation()
public double getSeriesSpacing()
public int getTimeStyle()
public java.awt.Color getTitleColor()
public java.awt.Font getTitleFont()
public boolean isDomainAxisVisible()
public void setDomainAxisVisible(boolean domainAxisVisible)
public boolean isRangeAxisVisible()
public void setRangeAxisVisible(boolean rangeAxisVisible)
public Dataset getLegend()
public void setLegend(Dataset legend)
public boolean isOpaque()
isOpaque
in class javax.swing.JComponent
public void setBackground(java.awt.Color bg)
setBackground
in class javax.swing.JComponent
public void setChartTitle(java.lang.String chartTitle)
chartTitle
- the chartTitle to setpublic void setData(Dataset data)
data
- the data to setpublic void setDataFormat(int dataFormat)
dataFormat
- the dataFormat to setpublic void setDateStyle(int dateStyle)
dateStyle
- the dateStyle to setpublic void setDomainAxisColor(java.awt.Color domainAxisColor)
domainAxisColor
- the domainAxisColor to setpublic void setDomainAxisFont(java.awt.Font domainAxisFont)
domainAxisFont
- the domainAxisFont to setpublic void setDomainAxisLabel(java.lang.String domainAxisLabel)
domainAxisLabel
- the domainAxisLabel to setpublic void setDomainAxisLocation(int domainAxisLocation)
domainAxisLocation
- the domainAxisLocation to setpublic void setProperties(Dataset properties)
public void setPropertiesLoading(int propertiesLoading)
setPropertiesLoading
in interface LoadingMonitor
propertiesLoading
- the propertiesLoading to setpublic void setRangeAxisColor(java.awt.Color rangeAxisColor)
rangeAxisColor
- the rangeAxisColor to setpublic void setRangeAxisFont(java.awt.Font rangeAxisFont)
rangeAxisFont
- the rangeAxisFont to setpublic void setRangeAxisLabel(java.lang.String rangeAxisLabel)
rangeAxisLabel
- the rangeAxisLabel to setpublic void setRangeAxisLocation(int rangeAxisLocation)
rangeAxisLocation
- the rangeAxisLocation to setpublic double getRangeAxisLowerMargin()
public void setRangeAxisLowerMargin(double rangeAxisLowerMargin)
rangeAxisLowerMargin
- the rangeAxisLowerMargin to setpublic double getRangeAxisUpperMargin()
public void setRangeAxisUpperMargin(double rangeAxisUpperMargin)
rangeAxisUpperMargin
- the rangeAxisUpperMargin to setpublic void setSeriesSpacing(double seriesSpacing)
seriesSpacing
- the seriesSpacing to setpublic void setTimeStyle(int timeStyle)
timeStyle
- the timeStyle to setpublic void setTitleColor(java.awt.Color titleColor)
titleColor
- the titleColor to setpublic void setTitleFont(java.awt.Font titleFont)
titleFont
- the titleFont to setpublic StatusChartDataSet getCalculatedDataset()
public java.util.Map<java.lang.String,ExtensionFunction> getExtensionFunctions()
getExtensionFunctions
in interface ExtensibleComponent
public void setExtensionFunctions(java.util.Map<java.lang.String,ExtensionFunction> map)
setExtensionFunctions
in interface ExtensibleComponent
public void localeChanged(java.util.Locale newLocale)
localeChanged
in interface LocaleListener
localeChanged
in class PMIChartPanel