Package jmri.jmrit.etcs.dmi.swing
Class DmiPanel
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
jmri.jmrit.etcs.dmi.swing.DmiPanel
- All Implemented Interfaces:
ImageObserver,MenuContainer,Serializable,Accessible
JPanel containing the ERTMS ETCS DMI.
- Since:
- 5.7.4
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanelNested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Colorstatic final Colorprotected static final Borderprotected static final Borderstatic final Colorstatic final Colorprotected static final Stringstatic final Colorstatic final Colorstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final Colorstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected static final Stringstatic final Colorstatic final Colorstatic final ColorFields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a TrackCondition Announcement to under the Dial.protected voidaddFlashListener(PropertyChangeListener pcl, boolean fast) Add a listener to synchronise panel flashing.voidadvance(int distance) Advance the train.voiddispose()Dispose of any Listeners, e.g.voidExtend the Movement Authority.protected voidfirePropertyChange(String property, String newVal) Fire a Property Change from this panel.protected intgetMode()Get the displayed operating mode.Get a List of current Movement Authorities.getNextAnnouncement(boolean mustBeStation) Get the next Planning Track Announcement with the Movement Authority.voidmessageDriver(CabMessage msg) Send a CabMessage to the Driver.voidplayDmiSound(int sound) Play one of the DMI UI Sounds.voidRemove an Announcement from under the Dial.protected voidremoveFlashListener(PropertyChangeListener pcl, boolean fast) Remove a listener from panel Flash timer notifications.voidremoveMessage(String messageId) Remove a previously sent CabMessage from the display.voidReset the Movement Authorities to the supplied List.voidsetActualSpeed(float speed) Set the speed value to be displayed by the dial and in centre of dial.voidsetAdhesionFactorOn(boolean newVal) Set the adhesion Factor symbol displayed.protected voidsetAtoMode(int mode) Set Automatic Train Operation Mode.voidsetCentreCircleAndDialColor(Color colour) Set the Centre Speedometer Circle and Dial Colour.voidsetCoasting(boolean visible) Set the Coasting Symbol visible.voidSet a list of Circular Speed Guide sections to display.voidsetDisplaySpeedUnit(String newVal) Set a speed unit to be displayed in the dial.voidsetDistanceToTarget(float distance) Set the distance to target bar.voidsetDoorIcon(int mode) Set Door Icon.voidsetDwellTime(int mins, int secs) Set remaining Station Dwell time.voidsetIndicationMarker(int distance, int whichSpeedChange) Set the Indication marker.voidsetIntervetionSymbol(boolean newVal) Set if Intervention Symbol is displayed.voidsetLevel(int level) Display Level Symbol.voidsetLevelTransition(int newLevel, boolean ackRequired) Set Level Transition Announcement Notification.voidsetLimitedSupervisionSpeed(float spd) Set a Limited Supervision Speed.voidsetMaxDialSpeed(int speed) Set the Maximum Speed on the Speed Dial.voidsetMode(int newMode) Set Mode. 0 - No Mode Displayed 1 - Shunting 4 - Trip 6 - Post Trip 7 - On Sight 9 - Staff Responsible 11 - Full Supervision Mode 12 - Non-leading 13 - Standby 14 - Reversing 16 - Unfitted 18 - System Failure 21 - Limited Supervision 23 - Automatic Driving ( From ERTMS4 ) 24 - Supervised Manoeuvre ( From ERTMS4 )voidsetModeAcknowledge(int newMode) Set the display to acknowledge the transition to a new Mode.voidsetNextAdviceChange(int distance) Set distance to the next Advice Change.voidsetReleaseSpeed(int speed) Set the release speed.voidsetReleaseSpeedColour(Color newColour) Set the text colour of the Release Speed.voidsetReversingPermittedSymbol(boolean newVal) Set the Reversing Permitted symbol visible.voidsetSafeRadioConnection(int newVal) Set the Safe Radio Connection Symbol.voidsetScale(int scale) Set the Scale on the Planning Area. 0 : 0 - 1000 1 : 0 - 2000 2 : 0 - 4000 3 : 0 - 8000 4 : 0 - 16000 5 : 0 - 32000voidsetSkipStoppingPoint(int mode) Set Skip Stopping Point Icon.voidsetStoppingAccuracy(int acc) Set Stopping accuracy symbol visible.voidsetStoppingPointLabel(String station, String eta) Set stopping point text.voidsetSupervisedDirection(int newDirection) Set the Direction Symbol and visibility.voidsetTargetAdviceSpeed(int newVal) Set the ATO Target Advice Speed.voidsetTrackAheadFreeQuestionVisible(boolean newVal) Set the Track Ahead Free?voidsetTunnelStoppingDistance(int distance) No value displayed if distance < 1voidsetTunnelStoppingIconVisible(boolean visible, boolean ack) Set Tunnel Stopping Icon Visible.voidsetVisible(boolean newVal) voidstopDmiSound(int sound) Stop playing a DMI Sound.Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIMethods 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, 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, unregisterKeyboardAction, updateMethods 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, validateTreeMethods 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, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Field Details
-
WHITE
-
BLACK
-
GREY
-
DARK_GREY
-
MEDIUM_GREY
-
DARK_BLUE
-
ORANGE
-
RED
-
YELLOW
-
BACKGROUND_COLOUR
-
BORDER_ACK
-
BORDER_NORMAL
-
FONT_NAME
- See Also:
-
PROP_CHANGE_CABMESSAGE_ACK
- See Also:
-
PROP_CHANGE_LEVEL_NTC_TRANSITION_ACK
- See Also:
-
PROP_CHANGE_LEVEL_0_TRANSITION_ACK
- See Also:
-
PROP_CHANGE_LEVEL_1_TRANSITION_ACK
- See Also:
-
PROP_CHANGE_LEVEL_2_TRANSITION_ACK
- See Also:
-
PROP_CHANGE_LEVEL_3_TRANSITION_ACK
- See Also:
-
MODE_NONE
- See Also:
-
MODE_SHUNTING
- See Also:
-
MODE_TRIP
- See Also:
-
MODE_POST_TRIP
- See Also:
-
MODE_ON_SIGHT
- See Also:
-
MODE_STAFF_RESPONSIBLE
- See Also:
-
MODE_FULL_SUPERVISION
- See Also:
-
MODE_NON_LEADING
- See Also:
-
MODE_STANDBY
- See Also:
-
MODE_REVERSING
- See Also:
-
MODE_UNFITTED
- See Also:
-
MODE_SYSTEM_FAILURE
- See Also:
-
MODE_NATIONAL_SYSTEM
- See Also:
-
MODE_LIMITED_SUPERVISION
- See Also:
-
MODE_AUTOMATIC_DRIVING
- See Also:
-
MODE_SUPERVISED_MANOEUVRE
- See Also:
-
PROP_CHANGE_MODE_SHUNTING_ACK
- See Also:
-
PROP_CHANGE_MODE_TRIP_ACK
- See Also:
-
PROP_CHANGE_MODE_ON_SIGHT_ACK
- See Also:
-
PROP_CHANGE_MODE_STAFF_RESPONSIBLE_ACK
- See Also:
-
PROP_CHANGE_MODE_REVERSING_ACK
- See Also:
-
PROP_CHANGE_MODE_UNFITTED_ACK
- See Also:
-
PROP_CHANGE_MODE_NATIONAL_SYSTEM_ACK
- See Also:
-
PROP_CHANGE_MODE_LIMITED_SUPERVISION_ACK
- See Also:
-
PROP_CHANGE_TRACK_AHEAD_FREE_TRUE
- See Also:
-
PROP_CHANGE_ATO_DRIVER_REQUEST_START
- See Also:
-
PROP_CHANGE_ATO_DRIVER_REQUEST_STOP
- See Also:
-
PROP_CHANGE_SKIP_STOPPING_POINT_INACTIVE_DRIVER
- See Also:
-
PROP_CHANGE_SKIP_STOPPING_POINT_REQUEST_DRIVER
- See Also:
-
PROP_CHANGE_TUNNEL_STOP_AREA_ACK
- See Also:
-
PROP_CHANGE_SOUND_HORN_ACK
- See Also:
-
PROP_CHANGE_LOWER_PANT_ACK
- See Also:
-
PROP_CHANGE_RAISE_PANT_ACK
- See Also:
-
PROP_CHANGE_AIRCON_OPEN_ACK
- See Also:
-
PROP_CHANGE_AIRCON_CLOSE_ACK
- See Also:
-
PROP_CHANGE_NEUTRAL_START_ACK
- See Also:
-
PROP_CHANGE_NEUTRAL_END_ACK
- See Also:
-
PROP_CHANGE_NONSTOP_ACK
- See Also:
-
PROP_CHANGE_INHIBIT_MAG_BRAKE_ACK
- See Also:
-
PROP_CHANGE_INHIBIT_EDDY_BRAKE_ACK
- See Also:
-
PROP_CHANGE_INHIBIT_REGEN_BRAKE_ACK
- See Also:
-
PROP_CHANGE_TRACTION_0_ACK
- See Also:
-
PROP_CHANGE_TRACTION_25KV_ACK
- See Also:
-
PROP_CHANGE_TRACTION_15KV_ACK
- See Also:
-
PROP_CHANGE_TRACTION_3KV_ACK
- See Also:
-
PROP_CHANGE_TRACTION_1_5KV_ACK
- See Also:
-
PROP_CHANGE_TRACTION_750V_ACK
- See Also:
-
PROPERTY_CENTRE_TEXT
-
-
Constructor Details
-
DmiPanel
public DmiPanel()Create a new DmiPanel.
-
-
Method Details
-
setMaxDialSpeed
Set the Maximum Speed on the Speed Dial.- Parameters:
speed- 140, 180, 250 or 400
-
setActualSpeed
Set the speed value to be displayed by the dial and in centre of dial.- Parameters:
speed- no unit specified.
-
setCentreCircleAndDialColor
Set the Centre Speedometer Circle and Dial Colour. Default is DmiPanel.GREY- Parameters:
colour- the colour to use.
-
setCsgSections
Set a list of Circular Speed Guide sections to display.- Parameters:
list- the list to display.
-
setDisplaySpeedUnit
Set a speed unit to be displayed in the dial.- Parameters:
newVal- the speed unit, for display purpose only.
-
setTargetAdviceSpeed
Set the ATO Target Advice Speed.- Parameters:
newVal- Target speed. Negative values hide the advice.
-
setNextAdviceChange
Set distance to the next Advice Change.- Parameters:
distance- to next advice. Negative values hide the advice.
-
setReleaseSpeed
Set the release speed. A negative value hides the speed.- Parameters:
speed- to display.
-
setReleaseSpeedColour
Set the text colour of the Release Speed.- Parameters:
newColour- the colour to use.
-
setLevelTransition
Set Level Transition Announcement Notification. Note that some valid options for ERTMS3.6 are invalid for ERTMS4 , e.g. 2, false.- Parameters:
newLevel- -2 : No notification displayed. -1 : NTC 0 : Level 0 1 : Level 1 Intermittent 2 : Level 2 3 : Level 3ackRequired- true if acknowledgement required by driver, else false.
-
setLevel
Display Level Symbol.- Parameters:
level- -2 : No notification displayed. -1 : NTC 0 : Level 0 1 : Level 1 Intermittent 2 : Level 2 3 : Level 3 ( ERTMS < 4 )
-
setMode
Set Mode. 0 - No Mode Displayed 1 - Shunting 4 - Trip 6 - Post Trip 7 - On Sight 9 - Staff Responsible 11 - Full Supervision Mode 12 - Non-leading 13 - Standby 14 - Reversing 16 - Unfitted 18 - System Failure 21 - Limited Supervision 23 - Automatic Driving ( From ERTMS4 ) 24 - Supervised Manoeuvre ( From ERTMS4 )- Parameters:
newMode- the mode to display.
-
setModeAcknowledge
Set the display to acknowledge the transition to a new Mode.- Parameters:
newMode- the new Mode to request acknowledgement for.
-
getMode
Get the displayed operating mode.- Returns:
- the current mode.
-
addAnnouncement
Add a TrackCondition Announcement to under the Dial.- Parameters:
tc- the Announcement to add.
-
removeAnnouncement
Remove an Announcement from under the Dial.- Parameters:
tc- the Announcement to remove.
-
setLimitedSupervisionSpeed
Set a Limited Supervision Speed. A negative value hides the icon.- Parameters:
spd- the Limited Supervision Speed.
-
setDistanceToTarget
Set the distance to target bar. A negative value hides the field. Values displayed to nearest 10m.- Parameters:
distance- the distance to set.
-
setAdhesionFactorOn
Set the adhesion Factor symbol displayed.- Parameters:
newVal- true to display, else false.
-
setIntervetionSymbol
Set if Intervention Symbol is displayed.- Parameters:
newVal- true to display, false to hide.
-
setReversingPermittedSymbol
Set the Reversing Permitted symbol visible.- Parameters:
newVal- true to display, false to hide.
-
setIndicationMarker
Set the Indication marker. Negative values not displayed.- Parameters:
distance- the distance at which to display the marker.whichSpeedChange- the order of the speed change in the Movement Authority.
-
setAtoMode
Set Automatic Train Operation Mode.- Parameters:
mode- the new ATO Mode. 0: No ATO 1: ATO selected 2: ATO Ready for Engagement 3: ATO Engaged 4: ATO Disengaging 5: ATO failure
-
setCoasting
Set the Coasting Symbol visible. Only valid to display if in ATO mode- Parameters:
visible- true to display, else false.
-
setStoppingAccuracy
Set Stopping accuracy symbol visible. Only valid in ATO Mode.- Parameters:
acc- -2: Hidden, -1: Undershot 0: Accurate 1: Overshot
-
setStoppingPointLabel
Set stopping point text. Only valid in ATO mode.- Parameters:
station- the next station.eta- ETA of next station.
-
setDwellTime
Set remaining Station Dwell time.- Parameters:
mins- minutes remaining.secs- seconds remaining.
-
setDoorIcon
Set Door Icon.- Parameters:
mode- the icon code to display. 0: Unset 10: Request driver to open both sides doors 11: Request driver to open left doors 12: Request driver to open right doors 13: Doors are open 14: Request driver to close doors 15: Doors are being closed by ATO 16: Doors are closed
-
setSkipStoppingPoint
Set Skip Stopping Point Icon.- Parameters:
mode- the icon code to display. 0: Unset 17: Skip Stopping Point Inactive 18: Skip Stopping Point requested by ATO-TS 19: Skip Stopping Point requested by driver
-
setSupervisedDirection
Set the Direction Symbol and visibility.- Parameters:
newDirection- -1: Reverse, 0 Hidden, 1 Forwards.
-
setTunnelStoppingDistance
No value displayed if distance < 1- Parameters:
distance- in m to stopping area.
-
setTunnelStoppingIconVisible
Set Tunnel Stopping Icon Visible.- Parameters:
visible- true if visible, false hidden.ack- true if Acknowledgement Required.
-
setSafeRadioConnection
Set the Safe Radio Connection Symbol.- Parameters:
newVal- -1 default, not displayed. 0 Connection Lost 1 Connection OK
-
setTrackAheadFreeQuestionVisible
Set the Track Ahead Free? Question visible.- Parameters:
newVal- true to display, false to hide.
-
setScale
Set the Scale on the Planning Area. 0 : 0 - 1000 1 : 0 - 2000 2 : 0 - 4000 3 : 0 - 8000 4 : 0 - 16000 5 : 0 - 32000- Parameters:
scale- the scale to use.
-
resetMovementAuthorities
Reset the Movement Authorities to the supplied List. Existing MAs will be discarded.- Parameters:
a- List of MAs.
-
getMovementAuthorities
Get a List of current Movement Authorities.- Returns:
- List of MAs.
-
extendMovementAuthorities
Extend the Movement Authority.- Parameters:
dma- the Movement Authority to add to existing List.
-
getNextAnnouncement
Get the next Planning Track Announcement with the Movement Authority.- Parameters:
mustBeStation- true if only station data is required.- Returns:
- the next Announcement, may be null if none within the Movement Authority.
-
advance
Advance the train. Updates planning panel. Updates distance to target.- Parameters:
distance- to advance.
-
messageDriver
Send a CabMessage to the Driver.- Parameters:
msg- the CabMessage to send.
-
removeMessage
Remove a previously sent CabMessage from the display.- Parameters:
messageId- the messageId of the CabMessage to remove.
-
playDmiSound
Play one of the DMI UI Sounds.1 - S1_toofast.wav - 2 secs, plays once.
2 - S2_warning.wav - 3 secs, loops until stopped.
3 - S_info.wav - 1 sec, plays once.
4 - click.wav - 1 sec, plays once.
- Parameters:
sound- which Sound,- Throws:
IllegalArgumentException- when needed
-
stopDmiSound
Stop playing a DMI Sound.- Parameters:
sound- the sound to Stop, normally 2 which plays in a loop.
-
addFlashListener
Add a listener to synchronise panel flashing.- Parameters:
pcl- the listener to add.fast- true if fast flashing, false for slow.
-
removeFlashListener
Remove a listener from panel Flash timer notifications.- Parameters:
pcl- the listener to remove.fast- true if fast listener, false if slow.
-
firePropertyChange
Fire a Property Change from this panel. Old value fired as empty String.- Parameters:
property- the property name.newVal- the new value.
-
setVisible
- Overrides:
setVisiblein classJComponent
-
dispose
Dispose of any Listeners, e.g. Fast Clock.
-