public class TAlarmOverview extends javax.swing.JPanel implements TView
In this TWaver release, this component display the alarm overview information with table, bar chart and pie chart in different tabs. More graphical representations may added in future releases.
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
static int |
BAR_PANEL
Indicate the bar chart panel index
|
static int |
PIE_PANEL
Indicate the pie chart panel index
|
static int |
TABLE_PANEL
Indicate the table panel index
|
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
TAlarmOverview(TDataBox box)
Create alarm overview component connect to the given data box.
|
TAlarmOverview(TDataBox box,
java.util.List alarmSeverities)
Create alarm overview component connect to the given data box.
|
Modifier and Type | Method and Description |
---|---|
TAlarmStatTable |
getAlarmStatTable()
Get the alarm overview table, this table contained in
the internal table panel.
|
javax.swing.JToggleButton |
getBarButton()
Gets the bar button.
|
BarChart |
getBarChart()
Gets the bar chart.
|
javax.swing.JComponent |
getCurrentComponent()
Gets the current selected component.
|
TDataBox |
getDataBox()
Get connected data box
|
javax.swing.ButtonGroup |
getGroup()
Gets the button group.
|
javax.swing.JToggleButton |
getPieButton()
Gets the pie button.
|
PieChart |
getPieChart()
Gets the pie chart.
|
TAlarmStatTable |
getTable()
Gets the alram stat table.
|
javax.swing.JToggleButton |
getTableButton()
Gets the table button.
|
javax.swing.JPanel |
getTablePane()
Gets the table pane.
|
javax.swing.JToolBar |
getToolbar()
Gets the toolbar for this alarm overview.
|
VisibleFilter |
getVisibleFilter()
Gets the visible filter for alarm state statistics.
|
void |
reset()
Calls this to reset alarm state statistics.
|
void |
setDataBox(TDataBox box)
Sets new data box.
|
void |
setSelectedPanelIndex(int panelIndex)
Set current selected panel index.
|
void |
setVisibleFilter(VisibleFilter visibleFilter)
Sets the visible filter for alarm state statistics.
|
void |
updateTViewUI()
Call this method to update chart data.
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
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, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, 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, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, 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, 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, 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, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final int TABLE_PANEL
public static final int BAR_PANEL
public static final int PIE_PANEL
public TAlarmOverview(TDataBox box)
box
- TDataBox the connected data box.public TAlarmOverview(TDataBox box, java.util.List alarmSeverities)
box
- TDataBox the connected data box.alarmSeverities
- List the Alarm Severities.public void setSelectedPanelIndex(int panelIndex)
panelIndex
- the selected panel index.public void updateTViewUI()
updateTViewUI
in interface TView
public TAlarmStatTable getAlarmStatTable()
public TDataBox getDataBox()
getDataBox
in interface TView
TView.setDataBox(twaver.TDataBox)
public void setDataBox(TDataBox box)
setDataBox
in interface TView
box
- TDataBox the databox of this viewTView.getDataBox()
public VisibleFilter getVisibleFilter()
AlarmStateStatistics.getVisibleFilter()
public void setVisibleFilter(VisibleFilter visibleFilter)
visibleFilter
- the visible filter for alarm state statistics.AlarmStateStatistics.setVisibleFilter(VisibleFilter)
public void reset()
AlarmStateStatistics.reset()
public javax.swing.JToggleButton getBarButton()
public BarChart getBarChart()
public javax.swing.JComponent getCurrentComponent()
public javax.swing.ButtonGroup getGroup()
public javax.swing.JToggleButton getPieButton()
public PieChart getPieChart()
public TAlarmStatTable getTable()
public javax.swing.JToggleButton getTableButton()
public javax.swing.JPanel getTablePane()
public javax.swing.JToolBar getToolbar()
Copyright © 2002 - 2010 Serva Software. All Rights Reserved.