Class PMIStatusChart

    • Nested Class Summary

      • 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
      • Nested classes/interfaces inherited from class java.awt.Container

        java.awt.Container.AccessibleAWTContainer
      • Nested classes/interfaces inherited from class java.awt.Component

        java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
    • Field Summary

      Fields 
      Modifier and Type Field 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  
      • Fields inherited from class org.jfree.chart.ChartPanel

        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
      • 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 java.awt.image.ImageObserver

        ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
      • Fields inherited from interface java.awt.print.Printable

        NO_SUCH_PAGE, PAGE_EXISTS
    • Constructor Summary

      Constructors 
      Constructor Description
      PMIStatusChart()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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)  
      • Methods inherited from class org.jfree.chart.ChartPanel

        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
      • Methods inherited from class javax.swing.JPanel

        getAccessibleContext, getUI, getUIClassID, paramString, setUI
      • 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, 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
      • 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, 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PMIStatusChart

        public PMIStatusChart()
    • Method Detail

      • getBackground

        public java.awt.Color getBackground()
        Overrides:
        getBackground in class java.awt.Component
      • getChartTitle

        public java.lang.String getChartTitle()
      • getData

        public Dataset getData()
      • getTranslatedData

        public Dataset getTranslatedData()
      • getDataFormat

        public int getDataFormat()
      • getDateStyle

        public int getDateStyle()
      • getDomainAxisColor

        public java.awt.Color getDomainAxisColor()
      • getDomainAxisFont

        public java.awt.Font getDomainAxisFont()
      • getDomainAxisLabel

        public java.lang.String getDomainAxisLabel()
      • getDomainAxisLocation

        public int getDomainAxisLocation()
      • getProperties

        public Dataset getProperties()
      • getRangeAxisColor

        public java.awt.Color getRangeAxisColor()
      • getRangeAxisFont

        public java.awt.Font getRangeAxisFont()
      • getRangeAxisLabel

        public java.lang.String getRangeAxisLabel()
      • getRangeAxisLocation

        public int getRangeAxisLocation()
      • getSeriesSpacing

        public double getSeriesSpacing()
      • getTimeStyle

        public int getTimeStyle()
      • getTitleColor

        public java.awt.Color getTitleColor()
      • getTitleFont

        public java.awt.Font getTitleFont()
      • isDomainAxisVisible

        public boolean isDomainAxisVisible()
      • setDomainAxisVisible

        public void setDomainAxisVisible​(boolean domainAxisVisible)
      • isRangeAxisVisible

        public boolean isRangeAxisVisible()
      • setRangeAxisVisible

        public void setRangeAxisVisible​(boolean rangeAxisVisible)
      • getLegend

        public Dataset getLegend()
      • setLegend

        public void setLegend​(Dataset legend)
      • isOpaque

        public boolean isOpaque()
        Overrides:
        isOpaque in class javax.swing.JComponent
      • setBackground

        public void setBackground​(java.awt.Color bg)
        Overrides:
        setBackground in class javax.swing.JComponent
      • setChartTitle

        public void setChartTitle​(java.lang.String chartTitle)
        Parameters:
        chartTitle - the chartTitle to set
      • setData

        public void setData​(Dataset data)
        Parameters:
        data - the data to set
      • setDataFormat

        public void setDataFormat​(int dataFormat)
        Parameters:
        dataFormat - the dataFormat to set
      • setDateStyle

        public void setDateStyle​(int dateStyle)
        Parameters:
        dateStyle - the dateStyle to set
      • setDomainAxisColor

        public void setDomainAxisColor​(java.awt.Color domainAxisColor)
        Parameters:
        domainAxisColor - the domainAxisColor to set
      • setDomainAxisFont

        public void setDomainAxisFont​(java.awt.Font domainAxisFont)
        Parameters:
        domainAxisFont - the domainAxisFont to set
      • setDomainAxisLabel

        public void setDomainAxisLabel​(java.lang.String domainAxisLabel)
        Parameters:
        domainAxisLabel - the domainAxisLabel to set
      • setDomainAxisLocation

        public void setDomainAxisLocation​(int domainAxisLocation)
        Parameters:
        domainAxisLocation - the domainAxisLocation to set
      • setProperties

        public void setProperties​(Dataset properties)
        The properties is the dataset that defines the colors for the chart's renderer
      • setPropertiesLoading

        public void setPropertiesLoading​(int propertiesLoading)
        Specified by:
        setPropertiesLoading in interface LoadingMonitor
        Parameters:
        propertiesLoading - the propertiesLoading to set
      • setRangeAxisColor

        public void setRangeAxisColor​(java.awt.Color rangeAxisColor)
        Parameters:
        rangeAxisColor - the rangeAxisColor to set
      • setRangeAxisFont

        public void setRangeAxisFont​(java.awt.Font rangeAxisFont)
        Parameters:
        rangeAxisFont - the rangeAxisFont to set
      • setRangeAxisLabel

        public void setRangeAxisLabel​(java.lang.String rangeAxisLabel)
        Parameters:
        rangeAxisLabel - the rangeAxisLabel to set
      • setRangeAxisLocation

        public void setRangeAxisLocation​(int rangeAxisLocation)
        Parameters:
        rangeAxisLocation - the rangeAxisLocation to set
      • getRangeAxisLowerMargin

        public double getRangeAxisLowerMargin()
        Returns:
        the rangeAxisLowerMargin
      • setRangeAxisLowerMargin

        public void setRangeAxisLowerMargin​(double rangeAxisLowerMargin)
        Parameters:
        rangeAxisLowerMargin - the rangeAxisLowerMargin to set
      • getRangeAxisUpperMargin

        public double getRangeAxisUpperMargin()
        Returns:
        the rangeAxisUpperMargin
      • setRangeAxisUpperMargin

        public void setRangeAxisUpperMargin​(double rangeAxisUpperMargin)
        Parameters:
        rangeAxisUpperMargin - the rangeAxisUpperMargin to set
      • setSeriesSpacing

        public void setSeriesSpacing​(double seriesSpacing)
        Parameters:
        seriesSpacing - the seriesSpacing to set
      • setTimeStyle

        public void setTimeStyle​(int timeStyle)
        Parameters:
        timeStyle - the timeStyle to set
      • setTitleColor

        public void setTitleColor​(java.awt.Color titleColor)
        Parameters:
        titleColor - the titleColor to set
      • setTitleFont

        public void setTitleFont​(java.awt.Font titleFont)
        Parameters:
        titleFont - the titleFont to set