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 int
private boolean
private int
private boolean
private static final long
private org.eclipse.swt.widgets.Composite
private TimerEvent
private TimerEventPerformer
private int
protected boolean
private LinkedHashMap
private int
private int
private int
private int
private boolean
private int
private int
private static final boolean
private int
private int
private int
private int
private org.eclipse.swt.widgets.Shell
private int
private int
private int
private int
private org.eclipse.swt.widgets.Shell
private String
private int
private static final int
private int
private int
private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
private int
int
int
int
getStringValue
(int value, String sValue) int
getValue()
protected int
getValueFromMousePos
(int x) boolean
boolean
open
(org.eclipse.swt.widgets.Control cClickedFrom, int startValue, boolean _assumeInitiallyDown) Borks with 0 or -1 maxValuevoid
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
-
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)
-