org.gudy.azureus2.ui.swt.shells
Class SpeedScaleShell

java.lang.Object
  extended by org.gudy.azureus2.ui.swt.shells.SpeedScaleShell

public class SpeedScaleShell
extends Object

Cheap ugly slider shell

Author:
TuxPaper

Field Summary
protected  boolean lastMoveHadMouseDown
           
 
Constructor Summary
SpeedScaleShell()
           
 
Method Summary
 String _getStringValue()
           
 void addOption(String id, int value)
           
 int getMaxTextValue()
           
 int getMaxValue()
           
 int getMinValue()
           
 String getStringValue(int value, String sValue)
           
 int getValue()
           
protected  int getValueFromMousePos(int x)
           
 boolean isCancelled()
           
 boolean open(org.eclipse.swt.widgets.Control cClickedFrom, int startValue, boolean _assumeInitiallyDown)
          Borks with 0 or -1 maxValue
 void setCancelled(boolean cancelled)
           
 void setMaxTextValue(int maxTextValue)
           
 void setMaxValue(int maxValue)
           
 void setMenuChosen(boolean menuChosen)
           
 void setMinValue(int minValue)
           
 void setParentShell(org.eclipse.swt.widgets.Shell parentShell)
           
 void setValue(int value)
           
 boolean wasMenuChosen()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lastMoveHadMouseDown

protected boolean lastMoveHadMouseDown
Constructor Detail

SpeedScaleShell

public SpeedScaleShell()
Method Detail

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)