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 class
VSDecoderPreferences.VSDecoderPrefsXml
An extension of the abstract XmlFile.
-
Field Summary
Fields Modifier and Type Field Description static int
DefaultMasterVolume
static java.lang.String
VSDPreferencesFileName
-
Constructor Summary
Constructors Constructor Description VSDecoderPreferences()
VSDecoderPreferences(java.lang.String sfile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Add an AddressListener.boolean
compareTo(VSDecoderPreferences tp)
java.lang.String
getDefaultVSDFilePath()
PhysicalLocation
getListenerPhysicalLocation()
ListeningSpot
getListenerPosition()
java.lang.Integer
getMasterVolume()
boolean
getUseBlocksSetting()
boolean
isAutoLoadingVSDFile()
boolean
isAutoStartingEngine()
void
load(org.jdom2.Element e)
void
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Remove an AddressListener.void
save()
void
set(VSDecoderPreferences tp)
void
setAutoLoadVSDFile(boolean b)
void
setAutoStartEngine(boolean b)
void
setDefaultVSDFilePath(java.lang.String s)
void
setListenerPosition(ListeningSpot p)
void
setListenerPosition(PhysicalLocation p)
void
setMasterVolume(int v)
void
setUseBlocksSetting(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
-
load
public void load(org.jdom2.Element e)
-
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.
-
-