Package jmri.jmrit.display
Class IndicatorTrackPaths
java.lang.Object
jmri.jmrit.display.IndicatorTrackPaths
A utility class replacing common methods formerly implementing the
IndicatorTrack interface.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected IndicatorTrackPathsgetPaths()protected StringgetStatus(int state) protected Stringvoidprotected voidremovePath(String path) protected voidsetLocoIcon(OBlock block, Point pt, Dimension size, Editor ed) protected voidprotected voidsetShowTrain(boolean set) protected boolean
-
Field Details
-
_paths
-
-
Constructor Details
-
IndicatorTrackPaths
protected IndicatorTrackPaths()
-
-
Method Details
-
deepClone
-
getPaths
-
setPaths
-
addPath
-
removePath
-
setShowTrain
-
showTrain
-
getStatus
-
removeLocoIcon
-
setLocoIcon
@InvokeOnLayoutThread protected void setLocoIcon(@Nonnull OBlock block, Point pt, 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
-