Package jmri.jmrit.display
Class IndicatorTrackPaths
- java.lang.Object
-
- jmri.jmrit.display.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()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addPath(java.lang.String path)
protected IndicatorTrackPaths
deepClone()
protected java.util.ArrayList<java.lang.String>
getPaths()
protected java.lang.String
getStatus(int state)
protected java.lang.String
getStatus(OBlock block, int state)
void
removeLocoIcon()
protected void
removePath(java.lang.String path)
protected void
setLocoIcon(OBlock block, java.awt.Point pt, java.awt.Dimension size, Editor ed)
protected void
setPaths(java.util.ArrayList<java.lang.String> paths)
protected void
setShowTrain(boolean set)
protected boolean
showTrain()
-
-
-
Field Detail
-
_paths
protected java.util.ArrayList<java.lang.String> _paths
-
-
Constructor Detail
-
IndicatorTrackPaths
protected IndicatorTrackPaths()
-
-
Method Detail
-
deepClone
protected IndicatorTrackPaths deepClone()
-
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)
-
showTrain
protected boolean showTrain()
-
removeLocoIcon
public void removeLocoIcon()
-
setLocoIcon
@InvokeOnLayoutThread protected void setLocoIcon(@Nonnull OBlock block, java.awt.Point pt, java.awt.Dimension size, Editor ed)
- Parameters:
block
- OBlock occupied by trainpt
- position of track iconsize
- size of track iconed
- 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)
-
-