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 LinkedHashMap<Long, String> private intprivate intprivate longprivate longprivate booleanprivate intprivate longprivate 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 longprivate intprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate intlonglonglonggetStringValue(long value, String sValue) longgetValue()protected longgetValueFromMousePos(int x) booleanbooleanopen(org.eclipse.swt.widgets.Control cClickedFrom, long startValue, boolean _assumeInitiallyDown) Borks with 0 or -1 maxValuevoidsetCancelled(boolean cancelled) voidsetMaxTextValue(long maxTextValue) voidsetMaxValue(long maxValue) voidsetMenuChosen(boolean menuChosen) voidsetMinValue(long minValue) voidsetParentShell(org.eclipse.swt.widgets.Shell parentShell) voidsetValue(long 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 long value -
cancelled
private boolean cancelled -
minValue
private long minValue -
maxValue
private long maxValue -
maxTextValue
private long 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, long startValue, boolean _assumeInitiallyDown) Borks with 0 or -1 maxValue- Parameters:
cClickedFrom-startValue-_assumeInitiallyDown-- Returns:
- Since:
- 3.0.1.7
-
getValueFromMousePos
protected long getValueFromMousePos(int x) - Parameters:
x-- Returns:
- Since:
- 3.0.1.7
-
getValue
public long getValue() -
isCancelled
public boolean isCancelled() -
setCancelled
public void setCancelled(boolean cancelled) -
getMinValue
public long getMinValue() -
setMinValue
public void setMinValue(long minValue) -
getMaxValue
public long getMaxValue() -
setMaxValue
public void setMaxValue(long maxValue) -
setValue
public void setValue(long value) -
_getStringValue
-
getStringValue
-
getBaselinePos
private int getBaselinePos() -
addOption
-
getMaxTextValue
public long getMaxTextValue() -
setMaxTextValue
public void setMaxTextValue(long maxTextValue) -
wasMenuChosen
public boolean wasMenuChosen() -
setMenuChosen
public void setMenuChosen(boolean menuChosen) -
setParentShell
public void setParentShell(org.eclipse.swt.widgets.Shell parentShell)
-