org.gudy.azureus2.ui.swt.shells
Class SpeedScaleShell
java.lang.Object
org.gudy.azureus2.ui.swt.shells.SpeedScaleShell
public class SpeedScaleShell
- extends 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 String _getStringValue()
getStringValue
public String getStringValue(int value,
String sValue)
addOption
public void addOption(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)