Class SpeedScaleShell

java.lang.Object
com.biglybt.ui.swt.shells.SpeedScaleShell

public class SpeedScaleShell extends Object
Cheap ugly slider shell
  • 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

      private LinkedHashMap mapOptions
    • sValue

      private String sValue
    • composite

      private org.eclipse.swt.widgets.Composite composite
    • lastMoveHadMouseDown

      protected boolean lastMoveHadMouseDown
    • assumeInitiallyDown

      private boolean assumeInitiallyDown
    • cursorBlinkPerformer

      private TimerEventPerformer cursorBlinkPerformer
    • cursorBlinkEvent

      private TimerEvent 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

      public String _getStringValue()
    • getStringValue

      public String getStringValue(int value, String sValue)
    • getBaselinePos

      private int getBaselinePos()
    • 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)