Package jmri.jmrit.swing.meter
Class MeterFrameManager
- java.lang.Object
-
- jmri.jmrit.swing.meter.MeterFrameManager
-
public class MeterFrameManager extends java.lang.Object
Default implementation of a MeterFrameManager. This class is only used by jmri.jmrit.swing.meter.MeterFrame and jmri.jmrit.swing.meter.configurexml.MeterFrameManagerXml so no need to store it in the InstanceManager.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deregister(MeterFrame frame)
MeterFrame
getByUUID(java.util.UUID uuid)
static MeterFrameManager
getInstance()
Get the instance of MeterFrameManager.java.util.Collection<MeterFrame>
getMeterFrames()
int
getXMLOrder()
Determine the order that types should be written when storing panel files.void
register(MeterFrame frame)
-
-
-
Method Detail
-
getInstance
@CheckReturnValue public static MeterFrameManager getInstance()
Get the instance of MeterFrameManager.- Returns:
- the MeterFrameManager instance
-
getXMLOrder
@CheckReturnValue public int getXMLOrder()
Determine the order that types should be written when storing panel files. Uses one of the constants defined in this class.Yes, that's an overly-centralized methodology, but it works for now.
- Returns:
- write order for this Manager; larger is later.
-
register
public void register(@Nonnull MeterFrame frame)
-
deregister
public void deregister(@Nonnull MeterFrame frame)
-
getByUUID
public MeterFrame getByUUID(@Nonnull java.util.UUID uuid)
-
getMeterFrames
public java.util.Collection<MeterFrame> getMeterFrames()
-
-