Package jmri.jmrit.vsdecoder
Class VSDecoderPreferences
- java.lang.Object
-
- jmri.jmrit.vsdecoder.VSDecoderPreferences
-
public class VSDecoderPreferences extends java.lang.Object
Manage VSDecoder Preferences.
This file is part of JMRI.JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.
JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classVSDecoderPreferences.VSDecoderPrefsXmlAn extension of the abstract XmlFile.
-
Field Summary
Fields Modifier and Type Field Description static intDefaultMasterVolumestatic java.lang.StringVSDPreferencesFileName
-
Constructor Summary
Constructors Constructor Description VSDecoderPreferences()VSDecoderPreferences(java.lang.String sfile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPropertyChangeListener(java.beans.PropertyChangeListener l)Add an AddressListener.booleancompareTo(VSDecoderPreferences tp)java.lang.StringgetDefaultVSDFilePath()PhysicalLocationgetListenerPhysicalLocation()ListeningSpotgetListenerPosition()java.lang.IntegergetMasterVolume()booleangetUseBlocksSetting()booleanisAutoLoadingVSDFile()booleanisAutoStartingEngine()voidremovePropertyChangeListener(java.beans.PropertyChangeListener l)Remove an AddressListener.voidsave()voidset(VSDecoderPreferences tp)voidsetAutoLoadVSDFile(boolean b)voidsetAutoStartEngine(boolean b)voidsetDefaultVSDFilePath(java.lang.String s)voidsetListenerPosition(ListeningSpot p)voidsetListenerPosition(PhysicalLocation p)voidsetMasterVolume(int v)voidsetUseBlocksSetting(boolean b)
-
-
-
Field Detail
-
VSDPreferencesFileName
public static final java.lang.String VSDPreferencesFileName
- See Also:
- Constant Field Values
-
DefaultMasterVolume
public static final int DefaultMasterVolume
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
VSDecoderPreferences
public VSDecoderPreferences(java.lang.String sfile)
-
VSDecoderPreferences
public VSDecoderPreferences()
-
-
Method Detail
-
set
public void set(VSDecoderPreferences tp)
-
compareTo
public boolean compareTo(VSDecoderPreferences tp)
-
save
public void save()
-
getDefaultVSDFilePath
public java.lang.String getDefaultVSDFilePath()
-
setDefaultVSDFilePath
public void setDefaultVSDFilePath(java.lang.String s)
-
isAutoStartingEngine
public boolean isAutoStartingEngine()
-
setAutoStartEngine
public void setAutoStartEngine(boolean b)
-
isAutoLoadingVSDFile
public boolean isAutoLoadingVSDFile()
-
setUseBlocksSetting
public void setUseBlocksSetting(boolean b)
-
getUseBlocksSetting
public boolean getUseBlocksSetting()
-
setAutoLoadVSDFile
public void setAutoLoadVSDFile(boolean b)
-
getListenerPosition
public ListeningSpot getListenerPosition()
-
setListenerPosition
public void setListenerPosition(ListeningSpot p)
-
getListenerPhysicalLocation
public PhysicalLocation getListenerPhysicalLocation()
-
setListenerPosition
public void setListenerPosition(PhysicalLocation p)
-
setMasterVolume
public void setMasterVolume(int v)
-
getMasterVolume
public java.lang.Integer getMasterVolume()
-
addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
Add an AddressListener.AddressListeners are notified when the user selects a new address and when a Throttle is acquired for that address.
- Parameters:
l- listener to add.
-
removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
Remove an AddressListener.- Parameters:
l- listener to remove.
-
-