public class SystemDisplay extends org.jdesktop.swingx.JXPanel implements java.lang.Comparable<SystemDisplay>, IPeriodicUpdates
| Modifier and Type | Class and Description |
|---|---|
static class |
SystemDisplay.BlinkingStateEnum |
javax.swing.JPanel.AccessibleJPaneljavax.swing.JComponent.AccessibleJComponent| Modifier and Type | Field and Description |
|---|---|
protected SystemDisplay.BlinkingStateEnum |
blinkingState |
protected static java.awt.Color |
BLUE_1 |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
SystemDisplay(java.lang.String id) |
| Modifier and Type | Method and Description |
|---|---|
void |
blink(boolean blink) |
int |
compareTo(SystemDisplay o) |
void |
dispose()
Call this to dispose of the component.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAttentionToolTip() |
ConnectionSymbol.ConnectionStrengthEnum |
getConnectionStrength() |
java.awt.Color |
getDisplayColor() |
EmergencyTaskSymbol.EmergencyStatus |
getEmergencyStatus() |
double |
getFuelLevelPercentage()
-1 for none
|
java.lang.String |
getFuelLevelToolTip() |
int |
getIconSize() |
java.lang.String |
getId() |
int |
getIncrementFontSize() |
int |
getIndicatorsSize() |
java.lang.String |
getLocationKnownToolTip() |
java.awt.Dimension |
getMinimumSize() |
java.awt.Dimension |
getPreferredSize() |
long |
getSelectionTimeMillis()
The selection time for this SystemDisplay.
|
java.awt.Image |
getSystemImage() |
java.lang.String |
getSystemType() |
ImcSystem.IMCAuthorityState |
getWithAuthority() |
boolean |
isActive() |
boolean |
isAnnounceReceived() |
boolean |
isAttentionAlert() |
boolean |
isEmergencyTaskAlocated() |
boolean |
isEnableSelection() |
boolean |
isFuelLevel() |
boolean |
isIdAlert() |
boolean |
isLocationKnown() |
boolean |
isMainVehicle() |
boolean |
isSelected() |
boolean |
isShowExtraInfoVisible() |
boolean |
isShowSystemSymbolOrText() |
boolean |
isTaskAlocated() |
boolean |
isWithAuthority() |
static void |
main(java.lang.String[] args) |
long |
millisBetweenUpdates()
Use this method to return the desired update interval
|
ConnectionSymbol.ConnectionStrengthEnum |
reduceConnectionStrength() |
void |
setActive(boolean active) |
void |
setActiveToolTip(java.lang.String text) |
void |
setAnnounceReceived(boolean announceReceived) |
void |
setAttentionAlert(boolean attentionAlert) |
void |
setAttentionToolTip(java.lang.String text) |
void |
setConnectionStrength(ConnectionSymbol.ConnectionStrengthEnum strength) |
void |
setDisplayColor(java.awt.Color displayColor) |
void |
setEmergencyStatus(EmergencyTaskSymbol.EmergencyStatus status) |
void |
setEmergencyTaskAlocated(boolean emergencyTaskAlocated) |
void |
setEmergencyTaskAlocatedToolTip(java.lang.String text) |
void |
setEnableSelection(boolean enableSelection) |
void |
setFuelLevel(boolean active) |
void |
setFuelLevelPercentage(double value)
-1 for none
|
void |
setFuelLevelToolTip(java.lang.String text) |
void |
setFullConnectionStrength() |
void |
setIconSize(int iconSize) |
void |
setId(java.lang.String id) |
void |
setIdAlert(boolean idAlert) |
void |
setIdAttentionToolTip(java.lang.String text) |
void |
setIncrementFontSize(int incrementFontSize) |
void |
setIndicatorsSize(int indicatorsSize) |
void |
setInfoLabel(java.lang.String info) |
void |
setLocationKnown(boolean locationKnown) |
void |
setLocationKnownToolTip(java.lang.String text) |
void |
setMainVehicle(boolean mainVehicle) |
void |
setMainVehicleToolTip(java.lang.String text) |
void |
setSelected(boolean selected) |
void |
setShowExtraInfoVisible(boolean showExtraInfoVisible) |
void |
setShowSystemSymbolOrText(boolean showSystemSymbolOrText) |
void |
setSystemImage(java.awt.Image systemImage) |
void |
setSystemType(java.lang.String systemType) |
void |
setTaskAlocated(boolean taskAlocated) |
void |
setTaskAlocatedToolTip(java.lang.String text) |
void |
setWithAuthority(ImcSystem.IMCAuthorityState withAuthority) |
void |
setWithAuthorityToolTip(java.lang.String text) |
boolean |
toggleMainVehicle()
Toggles the boolean value
|
boolean |
toggleSelected()
Toggles the boolean value
|
void |
toggleShowMoreInfoVisible() |
boolean |
toggleShowSystemSymbolOrText()
Toggles the boolean value
|
boolean |
update()
This method is called periodically (same period as specified by
IPeriodicUpdates.millisBetweenUpdates() |
getAlpha, getBackgroundPainter, getEffectiveAlpha, getPainterChangeListener, getPreferredScrollableViewportSize, getScrollableBlockIncrement, getScrollableHeightHint, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getScrollableWidthHint, isInheritAlpha, isPaintBorderInsets, paint, paintComponent, setAlpha, setBackground, setBackgroundPainter, setInheritAlpha, setPaintBorderInsets, setScrollableHeightHint, setScrollableTracksViewportHeight, setScrollableTracksViewportWidth, setScrollableWidthHintgetAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, 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, getNextFocusableComponent, getPopupLocation, 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, paintBorder, paintChildren, 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, setVisible, unregisterKeyboardAction, updateadd, 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, validateTreeaction, 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, transferFocusUpCycleprotected static java.awt.Color BLUE_1
protected SystemDisplay.BlinkingStateEnum blinkingState
public java.awt.Dimension getMinimumSize()
getMinimumSize in class javax.swing.JComponentpublic java.awt.Dimension getPreferredSize()
getPreferredSize in class javax.swing.JComponentpublic void dispose()
public boolean isShowExtraInfoVisible()
public void setShowExtraInfoVisible(boolean showExtraInfoVisible)
showExtraInfoVisible - the showExtraInfoVisible to setpublic void setInfoLabel(java.lang.String info)
info - public void toggleShowMoreInfoVisible()
public int compareTo(SystemDisplay o)
compareTo in interface java.lang.Comparable<SystemDisplay>public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int getIndicatorsSize()
public void setIndicatorsSize(int indicatorsSize)
indicatorsSize - the indicatorsSize to setpublic int getIconSize()
public void setIconSize(int iconSize)
iconSize - the iconSize to setpublic int getIncrementFontSize()
public void setIncrementFontSize(int incrementFontSize)
incrementFontSize - the incrementFontSize to setpublic java.lang.String getId()
public void setId(java.lang.String id)
id - the id to setpublic java.awt.Image getSystemImage()
public void setSystemImage(java.awt.Image systemImage)
systemImage - the systemImage to setpublic boolean isActive()
public void setActive(boolean active)
active - the active to setpublic void setActiveToolTip(java.lang.String text)
text - public ConnectionSymbol.ConnectionStrengthEnum getConnectionStrength()
public void setConnectionStrength(ConnectionSymbol.ConnectionStrengthEnum strength)
strength - the strength to setpublic void setFullConnectionStrength()
public ConnectionSymbol.ConnectionStrengthEnum reduceConnectionStrength()
public boolean isAnnounceReceived()
public void setAnnounceReceived(boolean announceReceived)
announceReceived - the announceReceived to setpublic boolean isSelected()
public void setSelected(boolean selected)
selected - the selected to setpublic boolean toggleSelected()
public boolean isEnableSelection()
public void setEnableSelection(boolean enableSelection)
enableSelection - the enableSelection to setpublic long getSelectionTimeMillis()
isSelected() to see
if this value has meaning.public java.awt.Color getDisplayColor()
public void setDisplayColor(java.awt.Color displayColor)
displayColor - the displayColor to setpublic boolean isLocationKnown()
public void setLocationKnown(boolean locationKnown)
locationKnown - public java.lang.String getLocationKnownToolTip()
public void setLocationKnownToolTip(java.lang.String text)
text - public boolean isMainVehicle()
public void setMainVehicle(boolean mainVehicle)
mainVehicle - the mainVehicle to setpublic void setMainVehicleToolTip(java.lang.String text)
text - public boolean toggleMainVehicle()
public boolean isShowSystemSymbolOrText()
public void setShowSystemSymbolOrText(boolean showSystemSymbolOrText)
showSystemSymbolOrText - the showSystemSymbolOrText to setpublic boolean toggleShowSystemSymbolOrText()
public java.lang.String getSystemType()
public void setSystemType(java.lang.String systemType)
systemType - the systemType to setpublic boolean isWithAuthority()
public ImcSystem.IMCAuthorityState getWithAuthority()
public void setWithAuthority(ImcSystem.IMCAuthorityState withAuthority)
withAuthority - the withAuthority to setpublic void setWithAuthorityToolTip(java.lang.String text)
text - public boolean isTaskAlocated()
public void setTaskAlocated(boolean taskAlocated)
taskAlocated - the taskAlocated to setpublic void setTaskAlocatedToolTip(java.lang.String text)
text - public boolean isEmergencyTaskAlocated()
public void setEmergencyTaskAlocated(boolean emergencyTaskAlocated)
emergencyTaskAlocated - the emergencyTaskAlocated to setpublic void setEmergencyTaskAlocatedToolTip(java.lang.String text)
public EmergencyTaskSymbol.EmergencyStatus getEmergencyStatus()
public void setEmergencyStatus(EmergencyTaskSymbol.EmergencyStatus status)
public boolean isAttentionAlert()
public void setAttentionAlert(boolean attentionAlert)
attentionAlert - the attentionAlert to setpublic boolean isFuelLevel()
public void setFuelLevel(boolean active)
public double getFuelLevelPercentage()
public void setFuelLevelPercentage(double value)
public java.lang.String getFuelLevelToolTip()
public void setFuelLevelToolTip(java.lang.String text)
text - public java.lang.String getAttentionToolTip()
public void setAttentionToolTip(java.lang.String text)
text - public boolean isIdAlert()
public void setIdAlert(boolean idAlert)
idAlert - the idAlert to setpublic void setIdAttentionToolTip(java.lang.String text)
public void blink(boolean blink)
public long millisBetweenUpdates()
IPeriodicUpdatesmillisBetweenUpdates in interface IPeriodicUpdatespublic boolean update()
IPeriodicUpdatesIPeriodicUpdates.millisBetweenUpdates()update in interface IPeriodicUpdatespublic static void main(java.lang.String[] args)
Copyright © 2004-2014 FEUP-LSTS and Neptus developers. All Rights Reserved.