Package jmri.jmrit.throttle
Class ThrottlesPreferencesWindowKeyboardControls
- java.lang.Object
-
- jmri.jmrit.throttle.ThrottlesPreferencesWindowKeyboardControls
-
- All Implemented Interfaces:
java.lang.Cloneable
public class ThrottlesPreferencesWindowKeyboardControls extends java.lang.Object implements java.lang.Cloneable
A class to store JMRI throttles keyboard shortcuts
-
-
Constructor Summary
Constructors Constructor Description ThrottlesPreferencesWindowKeyboardControls()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ThrottlesPreferencesWindowKeyboardControls
clone()
int[][]
getAccelerateKeys()
int[][]
getAccelerateMoreKeys()
int[][]
getDecelerateKeys()
int[][]
getDecelerateMoreKeys()
int[][]
getForwardKeys()
int[][]
getFunctionsKeys(int fn)
int[][]
getIdleKeys()
javax.swing.KeyStroke[]
getKeyStrokes(java.lang.String evtString)
float
getMoreSpeedMultiplier()
int[][]
getMoveToAddressPanelKeys()
int[][]
getMoveToControlPanelKeys()
int[][]
getMoveToFunctionPanelKeys()
int
getNbFunctionsKeys()
int[][]
getNextRunThrottleFrameKeys()
int[][]
getNextThrottleFrameKeys()
int[][]
getNextThrottleInternalWindowKeys()
int[][]
getNextThrottleWindowKeys()
int[][]
getPrevRunThrottleFrameKeys()
int[][]
getPrevThrottleFrameKeys()
int[][]
getPrevThrottleInternalWindowKeys()
int[][]
getPrevThrottleWindowKeys()
int[][]
getReverseKeys()
int[][]
getStopKeys()
int[][]
getSwitchDirectionKeys()
void
load(org.jdom2.Element e)
void
setAccelerateKeys(int[][] accelerateKeys)
void
setAccelerateMoreKeys(int[][] accelerateMoreKeys)
void
setDecelerateKeys(int[][] decelerateKeys)
void
setDecelerateMoreKeys(int[][] decelerateMoreKeys)
void
setForwardKeys(int[][] forwardKeys)
void
setFunctionsKeys(int fn, int[][] aFunctionsKeys)
void
setIdleKeys(int[][] idleKeys)
void
setMoreSpeedMultiplier(float moreSpeedMultiplier)
void
setMoveToAddressPanelKeys(int[][] moveToAddressPanelKeys)
void
setMoveToControlPanelKeys(int[][] moveToControlPanelKeys)
void
setMoveToFunctionPanelKeys(int[][] moveToFunctionPanelKeys)
void
setNextRunThrottleFrameKeys(int[][] nextRunThrottleFrameKeys)
void
setNextThrottleInternalWindowKeys(int[][] nextThrottleInternalWindowKeys)
void
setNextThrottleWindowKeys(int[][] nextThrottleWindowKeys)
void
setNextTrottleFrameKeys(int[][] nextTrottleFrameKeys)
void
setPrevRunThrottleFrameKeys(int[][] prevRunThrottleFrameKeys)
void
setPrevThrottleFrameKeys(int[][] prevThrottleFrameKeys)
void
setPrevThrottleInternalWindowKeys(int[][] prevThrottleInternalWindowKeys)
void
setPrevThrottleWindowKeys(int[][] prevThrottleWindowKeys)
void
setReverseKeys(int[][] reverseKeys)
void
setStopKeys(int[][] stopKeys)
void
setSwitchDirectionKeys(int[][] switchDirectionKeys)
(package private) org.jdom2.Element
store()
-
-
-
Constructor Detail
-
ThrottlesPreferencesWindowKeyboardControls
public ThrottlesPreferencesWindowKeyboardControls()
-
-
Method Detail
-
getNextThrottleWindowKeys
public int[][] getNextThrottleWindowKeys()
- Returns:
- the nextThrottleWindowKeys
-
getPrevThrottleWindowKeys
public int[][] getPrevThrottleWindowKeys()
- Returns:
- the prevThrottleWindowKeys
-
getNextThrottleFrameKeys
public int[][] getNextThrottleFrameKeys()
- Returns:
- the nextThrottleFrameKeys
-
getPrevThrottleFrameKeys
public int[][] getPrevThrottleFrameKeys()
- Returns:
- the prevThrottleFrameKeys
-
getNextRunThrottleFrameKeys
public int[][] getNextRunThrottleFrameKeys()
- Returns:
- the nextRunThrottleFrameKeys
-
getPrevRunThrottleFrameKeys
public int[][] getPrevRunThrottleFrameKeys()
- Returns:
- the prevRunThrottleFrameKeys
-
getNextThrottleInternalWindowKeys
public int[][] getNextThrottleInternalWindowKeys()
- Returns:
- the nextThrottleInternalWindowKeys
-
getPrevThrottleInternalWindowKeys
public int[][] getPrevThrottleInternalWindowKeys()
- Returns:
- the prevThrottleInternalWindowKeys
-
getMoveToControlPanelKeys
public int[][] getMoveToControlPanelKeys()
- Returns:
- the moveToControlPanelKeys
-
getMoveToFunctionPanelKeys
public int[][] getMoveToFunctionPanelKeys()
- Returns:
- the moveToFunctionPanelKeys
-
getMoveToAddressPanelKeys
public int[][] getMoveToAddressPanelKeys()
- Returns:
- the moveToAddressPanelKeys
-
getReverseKeys
public int[][] getReverseKeys()
- Returns:
- the reverseKeys
-
getForwardKeys
public int[][] getForwardKeys()
- Returns:
- the forwardKeys
-
getSwitchDirectionKeys
public int[][] getSwitchDirectionKeys()
- Returns:
- the switchDirectionKeys
-
getIdleKeys
public int[][] getIdleKeys()
- Returns:
- the idleKeys
-
getStopKeys
public int[][] getStopKeys()
- Returns:
- the stopKeys
-
getAccelerateKeys
public int[][] getAccelerateKeys()
- Returns:
- the accelerateKeys
-
getDecelerateKeys
public int[][] getDecelerateKeys()
- Returns:
- the decelerateKeys
-
getAccelerateMoreKeys
public int[][] getAccelerateMoreKeys()
- Returns:
- the accelerateMoreKeys
-
getDecelerateMoreKeys
public int[][] getDecelerateMoreKeys()
- Returns:
- the decelerateMoreKeys
-
getFunctionsKeys
public int[][] getFunctionsKeys(int fn)
- Parameters:
fn
- function number- Returns:
- the functionsKeys
-
getKeyStrokes
public javax.swing.KeyStroke[] getKeyStrokes(java.lang.String evtString)
-
getNbFunctionsKeys
public int getNbFunctionsKeys()
- Returns:
- the number of functions shortcuts
-
setFunctionsKeys
public void setFunctionsKeys(int fn, int[][] aFunctionsKeys)
- Parameters:
fn
- the function numbersaFunctionsKeys
- the functionsKeys to set
-
getMoreSpeedMultiplier
public float getMoreSpeedMultiplier()
- Returns:
- the moreSpeedMultiplier
-
setMoreSpeedMultiplier
public void setMoreSpeedMultiplier(float moreSpeedMultiplier)
- Parameters:
moreSpeedMultiplier
- the moreSpeedMultiplier to set
-
setNextThrottleWindowKeys
public void setNextThrottleWindowKeys(int[][] nextThrottleWindowKeys)
- Parameters:
nextThrottleWindowKeys
- the nextThrottleWindowKeys to set
-
setPrevThrottleWindowKeys
public void setPrevThrottleWindowKeys(int[][] prevThrottleWindowKeys)
- Parameters:
prevThrottleWindowKeys
- the prevThrottleWindowKeys to set
-
setNextTrottleFrameKeys
public void setNextTrottleFrameKeys(int[][] nextTrottleFrameKeys)
- Parameters:
nextTrottleFrameKeys
- the nextThrottleFrameKeys to set
-
setPrevThrottleFrameKeys
public void setPrevThrottleFrameKeys(int[][] prevThrottleFrameKeys)
- Parameters:
prevThrottleFrameKeys
- the prevThrottleFrameKeys to set
-
setNextRunThrottleFrameKeys
public void setNextRunThrottleFrameKeys(int[][] nextRunThrottleFrameKeys)
- Parameters:
nextRunThrottleFrameKeys
- the nextRunThrottleFrameKeys to set
-
setPrevRunThrottleFrameKeys
public void setPrevRunThrottleFrameKeys(int[][] prevRunThrottleFrameKeys)
- Parameters:
prevRunThrottleFrameKeys
- the prevRunThrottleFrameKeys to set
-
setNextThrottleInternalWindowKeys
public void setNextThrottleInternalWindowKeys(int[][] nextThrottleInternalWindowKeys)
- Parameters:
nextThrottleInternalWindowKeys
- the nextThrottleInternalWindowKeys to set
-
setPrevThrottleInternalWindowKeys
public void setPrevThrottleInternalWindowKeys(int[][] prevThrottleInternalWindowKeys)
- Parameters:
prevThrottleInternalWindowKeys
- the prevThrottleInternalWindowKeys to set
-
setMoveToControlPanelKeys
public void setMoveToControlPanelKeys(int[][] moveToControlPanelKeys)
- Parameters:
moveToControlPanelKeys
- the moveToControlPanelKeys to set
-
setMoveToFunctionPanelKeys
public void setMoveToFunctionPanelKeys(int[][] moveToFunctionPanelKeys)
- Parameters:
moveToFunctionPanelKeys
- the moveToFunctionPanelKeys to set
-
setMoveToAddressPanelKeys
public void setMoveToAddressPanelKeys(int[][] moveToAddressPanelKeys)
- Parameters:
moveToAddressPanelKeys
- the moveToAddressPanelKeys to set
-
setReverseKeys
public void setReverseKeys(int[][] reverseKeys)
- Parameters:
reverseKeys
- the reverseKeys to set
-
setForwardKeys
public void setForwardKeys(int[][] forwardKeys)
- Parameters:
forwardKeys
- the forwardKeys to set
-
setSwitchDirectionKeys
public void setSwitchDirectionKeys(int[][] switchDirectionKeys)
- Parameters:
switchDirectionKeys
- the switchDirectionKeys to set
-
setIdleKeys
public void setIdleKeys(int[][] idleKeys)
- Parameters:
idleKeys
- the idleKeys to set
-
setStopKeys
public void setStopKeys(int[][] stopKeys)
- Parameters:
stopKeys
- the stopKeys to set
-
setAccelerateKeys
public void setAccelerateKeys(int[][] accelerateKeys)
- Parameters:
accelerateKeys
- the accelerateKeys to set
-
setDecelerateKeys
public void setDecelerateKeys(int[][] decelerateKeys)
- Parameters:
decelerateKeys
- the decelerateKeys to set
-
setAccelerateMoreKeys
public void setAccelerateMoreKeys(int[][] accelerateMoreKeys)
- Parameters:
accelerateMoreKeys
- the accelerateMoreKeys to set
-
setDecelerateMoreKeys
public void setDecelerateMoreKeys(int[][] decelerateMoreKeys)
- Parameters:
decelerateMoreKeys
- the decelerateMoreKeys to set
-
clone
public ThrottlesPreferencesWindowKeyboardControls clone() throws java.lang.CloneNotSupportedException
- Overrides:
clone
in classjava.lang.Object
- Throws:
java.lang.CloneNotSupportedException
-
store
org.jdom2.Element store()
-
load
public void load(org.jdom2.Element e)
-
-