Class DmiPanel

  • All Implemented Interfaces:
    java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible

    @API(status=EXPERIMENTAL)
    public class DmiPanel
    extends javax.swing.JPanel
    JPanel containing the ERTMS ETCS DMI.
    Since:
    5.7.4
    See Also:
    Serialized Form
    • 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
    • Constructor Summary

      Constructors 
      Constructor Description
      DmiPanel()
      Create a new DmiPanel.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addAnnouncement​(TrackCondition tc)
      Add a TrackCondition Announcement to under the Dial.
      protected void addFlashListener​(java.beans.PropertyChangeListener pcl, boolean fast)
      Add a listener to synchronise panel flashing.
      void advance​(int distance)
      Advance the train.
      void dispose()
      Dispose of any Listeners, e.g.
      void extendMovementAuthorities​(MovementAuthority dma)
      Extend the Movement Authority.
      protected void firePropertyChange​(java.lang.String property, java.lang.String newVal)
      Fire a Property Change from this panel.
      protected int getMode()
      Get the displayed operating mode.
      java.util.List<MovementAuthority> getMovementAuthorities()
      Get a List of current Movement Authorities.
      TrackCondition getNextAnnouncement​(boolean mustBeStation)
      Get the next Planning Track Announcement with the Movement Authority.
      void messageDriver​(CabMessage msg)
      Send a CabMessage to the Driver.
      void playDmiSound​(int sound)
      Play one of the DMI UI Sounds.
      void removeAnnouncement​(TrackCondition tc)
      Remove an Announcement from under the Dial.
      protected void removeFlashListener​(java.beans.PropertyChangeListener pcl, boolean fast)
      Remove a listener from panel Flash timer notifications.
      void removeMessage​(java.lang.String messageId)
      Remove a previously sent CabMessage from the display.
      void resetMovementAuthorities​(java.util.List<MovementAuthority> a)
      Reset the Movement Authorities to the supplied List.
      void setActualSpeed​(float speed)
      Set the speed value to be displayed by the dial and in centre of dial.
      void setAdhesionFactorOn​(boolean newVal)
      Set the adhesion Factor symbol displayed.
      protected void setAtoMode​(int mode)
      Set Automatic Train Operation Mode.
      void setCentreCircleAndDialColor​(java.awt.Color colour)
      Set the Centre Speedometer Circle and Dial Colour.
      void setCoasting​(boolean visible)
      Set the Coasting Symbol visible.
      void setCsgSections​(java.util.List<DmiCircularSpeedGuideSection> list)
      Set a list of Circular Speed Guide sections to display.
      void setDisplaySpeedUnit​(java.lang.String newVal)
      Set a speed unit to be displayed in the dial.
      void setDistanceToTarget​(float distance)
      Set the distance to target bar.
      void setDoorIcon​(int mode)
      Set Door Icon.
      void setDwellTime​(int mins, int secs)
      Set remaining Station Dwell time.
      void setIndicationMarker​(int distance, int whichSpeedChange)
      Set the Indication marker.
      void setIntervetionSymbol​(boolean newVal)
      Set if Intervention Symbol is displayed.
      void setLevel​(int level)
      Display Level Symbol.
      void setLevelTransition​(int newLevel, boolean ackRequired)
      Set Level Transition Announcement Notification.
      void setLimitedSupervisionSpeed​(float spd)
      Set a Limited Supervision Speed.
      void setMaxDialSpeed​(int speed)
      Set the Maximum Speed on the Speed Dial.
      void setMode​(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 )
      void setModeAcknowledge​(int newMode)
      Set the display to acknowledge the transition to a new Mode.
      void setNextAdviceChange​(int distance)
      Set distance to the next Advice Change.
      void setReleaseSpeed​(int speed)
      Set the release speed.
      void setReleaseSpeedColour​(java.awt.Color newColour)
      Set the text colour of the Release Speed.
      void setReversingPermittedSymbol​(boolean newVal)
      Set the Reversing Permitted symbol visible.
      void setSafeRadioConnection​(int newVal)
      Set the Safe Radio Connection Symbol.
      void setScale​(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 - 32000
      void setSkipStoppingPoint​(int mode)
      Set Skip Stopping Point Icon.
      void setStoppingAccuracy​(int acc)
      Set Stopping accuracy symbol visible.
      void setStoppingPointLabel​(java.lang.String station, java.lang.String eta)
      Set stopping point text.
      void setSupervisedDirection​(int newDirection)
      Set the Direction Symbol and visibility.
      void setTargetAdviceSpeed​(int newVal)
      Set the ATO Target Advice Speed.
      void setTrackAheadFreeQuestionVisible​(boolean newVal)
      Set the Track Ahead Free?
      void setTunnelStoppingDistance​(int distance)
      No value displayed if distance < 1
      void setTunnelStoppingIconVisible​(boolean visible, boolean ack)
      Set Tunnel Stopping Icon Visible.
      void setVisible​(boolean newVal)  
      void stopDmiSound​(int sound)
      Stop playing a DMI Sound.
      • Methods inherited from class javax.swing.JPanel

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

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait