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 ThrottlesPreferencesWindowKeyboardControlsclone()int[][]getAccelerateKeys()int[][]getAccelerateMoreKeys()int[][]getDecelerateKeys()int[][]getDecelerateMoreKeys()int[][]getForwardKeys()int[][]getFunctionsKeys(int fn)int[][]getIdleKeys()javax.swing.KeyStroke[]getKeyStrokes(java.lang.String evtString)floatgetMoreSpeedMultiplier()int[][]getMoveToAddressPanelKeys()int[][]getMoveToControlPanelKeys()int[][]getMoveToFunctionPanelKeys()intgetNbFunctionsKeys()int[][]getNextRunThrottleFrameKeys()int[][]getNextThrottleFrameKeys()int[][]getNextThrottleInternalWindowKeys()int[][]getNextThrottleWindowKeys()int[][]getPrevRunThrottleFrameKeys()int[][]getPrevThrottleFrameKeys()int[][]getPrevThrottleInternalWindowKeys()int[][]getPrevThrottleWindowKeys()int[][]getReverseKeys()int[][]getStopKeys()int[][]getSwitchDirectionKeys()voidload(org.jdom2.Element e)voidsetAccelerateKeys(int[][] accelerateKeys)voidsetAccelerateMoreKeys(int[][] accelerateMoreKeys)voidsetDecelerateKeys(int[][] decelerateKeys)voidsetDecelerateMoreKeys(int[][] decelerateMoreKeys)voidsetForwardKeys(int[][] forwardKeys)voidsetFunctionsKeys(int fn, int[][] aFunctionsKeys)voidsetIdleKeys(int[][] idleKeys)voidsetMoreSpeedMultiplier(float moreSpeedMultiplier)voidsetMoveToAddressPanelKeys(int[][] moveToAddressPanelKeys)voidsetMoveToControlPanelKeys(int[][] moveToControlPanelKeys)voidsetMoveToFunctionPanelKeys(int[][] moveToFunctionPanelKeys)voidsetNextRunThrottleFrameKeys(int[][] nextRunThrottleFrameKeys)voidsetNextThrottleInternalWindowKeys(int[][] nextThrottleInternalWindowKeys)voidsetNextThrottleWindowKeys(int[][] nextThrottleWindowKeys)voidsetNextTrottleFrameKeys(int[][] nextTrottleFrameKeys)voidsetPrevRunThrottleFrameKeys(int[][] prevRunThrottleFrameKeys)voidsetPrevThrottleFrameKeys(int[][] prevThrottleFrameKeys)voidsetPrevThrottleInternalWindowKeys(int[][] prevThrottleInternalWindowKeys)voidsetPrevThrottleWindowKeys(int[][] prevThrottleWindowKeys)voidsetReverseKeys(int[][] reverseKeys)voidsetStopKeys(int[][] stopKeys)voidsetSwitchDirectionKeys(int[][] switchDirectionKeys)(package private) org.jdom2.Elementstore()
-
-
-
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:
clonein classjava.lang.Object- Throws:
java.lang.CloneNotSupportedException
-
store
org.jdom2.Element store()
-
load
public void load(org.jdom2.Element e)
-
-