Class SpeedScaleShell


  • public class SpeedScaleShell
    extends java.lang.Object
    Cheap ugly slider shell
    • Field Detail

      • 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
      • 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 java.util.LinkedHashMap mapOptions
      • sValue

        private java.lang.String sValue
      • composite

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

        private boolean menuChosen
      • lastMoveHadMouseDown

        protected boolean lastMoveHadMouseDown
      • assumeInitiallyDown

        private boolean assumeInitiallyDown
      • cursorBlinkEvent

        private TimerEvent cursorBlinkEvent
    • 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)
      • getBaselinePos

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