Class IndicatorTrackPaths


  • public class IndicatorTrackPaths
    extends java.lang.Object
    A utility class replacing common methods formerly implementing the IndicatorTrack interface.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.ArrayList<java.lang.String> _paths  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected IndicatorTrackPaths()  
    • Field Detail

      • _paths

        protected java.util.ArrayList<java.lang.String> _paths
    • Method Detail

      • getPaths

        protected java.util.ArrayList<java.lang.String> getPaths()
      • setPaths

        protected void setPaths​(java.util.ArrayList<java.lang.String> paths)
      • addPath

        protected void addPath​(java.lang.String path)
      • removePath

        protected void removePath​(java.lang.String path)
      • setShowTrain

        protected void setShowTrain​(boolean set)
      • getStatus

        protected java.lang.String getStatus​(OBlock block,
                                             int state)
      • setLocoIcon

        @InvokeOnLayoutThread
        protected void setLocoIcon​(@Nonnull
                                   OBlock block,
                                   java.awt.Point pt,
                                   java.awt.Dimension size,
                                   Editor ed)
        Parameters:
        block - OBlock occupied by train
        pt - position of track icon
        size - size of track icon
        ed - editor LocoLabel ctor causes editor to draw a graphic. Must be done on GUI Called from IndicatorTrackIcon.setStatus and IndicatorTurnoutIcon.setStatus Each wraps this method with ThreadingUtil.runOnLayoutEventually, so there is a time lag for when track icon changes and display of the change.
      • getStatus

        protected java.lang.String getStatus​(int state)