Package com.biglybt.ui.swt.shells
Class SpeedScaleShell
java.lang.Object
com.biglybt.ui.swt.shells.SpeedScaleShell
Cheap ugly slider shell
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate booleanprivate intprivate booleanprivate static final longprivate org.eclipse.swt.widgets.Compositeprivate TimerEventprivate TimerEventPerformerprivate intprotected booleanprivate LinkedHashMapprivate intprivate intprivate intprivate intprivate booleanprivate intprivate intprivate static final booleanprivate intprivate intprivate intprivate intprivate org.eclipse.swt.widgets.Shellprivate intprivate intprivate intprivate intprivate org.eclipse.swt.widgets.Shellprivate Stringprivate intprivate static final intprivate intprivate intprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate intintintintgetStringValue(int value, String sValue) intgetValue()protected intgetValueFromMousePos(int x) booleanbooleanopen(org.eclipse.swt.widgets.Control cClickedFrom, int startValue, boolean _assumeInitiallyDown) Borks with 0 or -1 maxValuevoidsetCancelled(boolean cancelled) voidsetMaxTextValue(int maxTextValue) voidsetMaxValue(int maxValue) voidsetMenuChosen(boolean menuChosen) voidsetMinValue(int minValue) voidsetParentShell(org.eclipse.swt.widgets.Shell parentShell) voidsetValue(int value) boolean
-
Field Details
-
MOUSE_ONLY_UP_EXITS
private static final boolean MOUSE_ONLY_UP_EXITS- See Also:
-
AD_ACCEPT_DELAY
private static final int AD_ACCEPT_DELAY- See Also:
-
OPTION_HEIGHT
private int OPTION_HEIGHT -
TEXT_HEIGHT
private int TEXT_HEIGHT -
SCALER_HEIGHT
private int SCALER_HEIGHT -
HEIGHT
private int HEIGHT -
MIN_WIDTH
private int MIN_WIDTH -
PADDING_X0
private int PADDING_X0 -
PADDING_X1
private int PADDING_X1 -
MARKER_HEIGHT
private int MARKER_HEIGHT -
MARKER_WIDTH
private int MARKER_WIDTH -
PX_5
private int PX_5 -
PX_2
private int PX_2 -
PX_10
private int PX_10 -
TYPED_TEXT_ALPHA
private static final int TYPED_TEXT_ALPHA- See Also:
-
CLOSE_DELAY
private static final long CLOSE_DELAY- See Also:
-
WIDTH
private int WIDTH -
WIDTH_NO_PADDING
private int WIDTH_NO_PADDING -
value
private int value -
cancelled
private boolean cancelled -
minValue
private int minValue -
maxValue
private int maxValue -
maxTextValue
private int maxTextValue -
pageIncrement
private int pageIncrement -
bigPageIncrement
private int bigPageIncrement -
shell
private org.eclipse.swt.widgets.Shell shell -
parentShell
private org.eclipse.swt.widgets.Shell parentShell -
mapOptions
-
sValue
-
composite
private org.eclipse.swt.widgets.Composite composite -
lastMoveHadMouseDown
protected boolean lastMoveHadMouseDown -
assumeInitiallyDown
private boolean assumeInitiallyDown -
cursorBlinkPerformer
-
cursorBlinkEvent
-
-
Constructor Details
-
SpeedScaleShell
public SpeedScaleShell()
-
-
Method Details
-
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
-
getStringValue
-
getBaselinePos
private int getBaselinePos() -
addOption
-
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)
-