Class IndicatorTurnoutIcon

  • All Implemented Interfaces:
    java.awt.image.ImageObserver, java.awt.MenuContainer, java.beans.PropertyChangeListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.SwingConstants, IndicatorTrack, Positionable, InlineLogixNG

    public class IndicatorTurnoutIcon
    extends TurnoutIcon
    implements IndicatorTrack
    An icon to display a status and state of a color coded turnout.

    This responds to only KnownState, leaving CommandedState to some other graphic representation later.

    "state" is the state of the underlying turnout ("closed", "thrown", etc.)

    "status" is the operating condition of the track ("clear", "occupied", etc.)

    A click on the icon will command a state change. Specifically, it will set the CommandedState to the opposite (THROWN vs CLOSED) of the current KnownState. This will display the setting of the turnout points.

    The status is indicated by color and changes are done only done by the occupancy sensing - OBlock or other sensor.

    The default icons are for a left-handed turnout, facing point for east-bound traffic.

    See Also:
    Serialized Form