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

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

public class SpeedScaleShell
extends java.lang.Object

Cheap ugly slider shell

Author:
TuxPaper

Field Summary
protected  boolean lastMoveHadMouseDown
           
 
Constructor Summary
SpeedScaleShell()
           
 
Method Summary
 java.lang.String _getStringValue()
           
 void addOption(java.lang.String id, int value)
           
 int getMaxTextValue()
           
 int getMaxValue()
           
 int getMinValue()
           
 java.lang.String getStringValue(int value, java.lang.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 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)