org.gudy.azureus2.ui.swt.shells
Class SpeedScaleShell
java.lang.Object
org.gudy.azureus2.ui.swt.shells.SpeedScaleShell
public class SpeedScaleShell
- extends java.lang.Object
Cheap ugly slider shell
- Author:
- TuxPaper
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lastMoveHadMouseDown
protected boolean lastMoveHadMouseDown
SpeedScaleShell
public SpeedScaleShell()
open
public boolean open(org.eclipse.swt.widgets.Control cClickedFrom,
int startValue,
boolean _assumeInitiallyDown)
- Borks with 0 or -1 maxValue
- Parameters:
cClickedFrom
- startValue
- assumeInitiallyDown
-
- Returns:
- Since:
- 3.0.1.7
getValueFromMousePos
protected int getValueFromMousePos(int x)
- Parameters:
x
-
- Returns:
- Since:
- 3.0.1.7
getValue
public int getValue()
isCancelled
public boolean isCancelled()
setCancelled
public void setCancelled(boolean cancelled)
getMinValue
public int getMinValue()
setMinValue
public void setMinValue(int minValue)
getMaxValue
public int getMaxValue()
setMaxValue
public void setMaxValue(int maxValue)
setValue
public void setValue(int value)
_getStringValue
public java.lang.String _getStringValue()
getStringValue
public java.lang.String getStringValue(int value,
java.lang.String sValue)
addOption
public void addOption(java.lang.String id,
int value)
getMaxTextValue
public int getMaxTextValue()
setMaxTextValue
public void setMaxTextValue(int maxTextValue)
wasMenuChosen
public boolean wasMenuChosen()
setMenuChosen
public void setMenuChosen(boolean menuChosen)
setParentShell
public void setParentShell(org.eclipse.swt.widgets.Shell parentShell)