org.vishia.gral.base

## Class GralSlider

- java.lang.Object
- - org.vishia.gral.base.GralWidget
  - - org.vishia.gral.base.GralSlider

- All Implemented Interfaces:
    GetGralWidget_ifc, GralSetValue_ifc, GralSlider_ifc, GralWidget_ifc, Removeable

      public abstract class GralSlider
      extends GralWidget
      implements GralSlider_ifc

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `class` | `GralSlider._GraphicImplAccess_` This class contains the access to the GralWidget class.

    - ### Nested classes/interfaces inherited from class org.vishia.gral.base.GralWidget

      `GralWidget.ActionChangeSelect, GralWidget.ConfigData, GralWidget.DynamicData, GralWidget.ImplAccess`

    - ### Nested classes/interfaces inherited from interface org.vishia.gral.ifc.GralWidget_ifc

      `GralWidget_ifc.ActionChange, GralWidget_ifc.ActionChangeWhen`

  - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected float` | `posSlider`
    `protected float` | `sizeSlider`

    - ### Fields inherited from class org.vishia.gral.base.GralWidget

      `_wdgImpl, bEditable, bHasFocus, bShouldInitialize, buildMng, bVisibleState, cfg, contextMenu, dateUser, dyda, htmlHelp, itsMng, lastTimeSetVisible, name, repaintDelay, repaintDelayMax, sCmd, sFormat, sToolTip, sVersion, whatIs`

    - ### Fields inherited from interface org.vishia.gral.ifc.GralSetValue_ifc

      `version`

    - ### Fields inherited from interface org.vishia.gral.base.GetGralWidget_ifc

      `version`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `GralSlider(java.lang.String sName, GralMng mng)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `float` | `getSliderPosition()` Returns a value between 0.0 and 1.0 which presents the slider position. 0.0 is left or bottom, 1.0 is right or top.
    `void` | `setSliderSize(float ratio)` Sets the slider size as ratio of the slider range.

    - ### Methods inherited from class org.vishia.gral.base.GralWidget

      `chgPos, clearShowParam, createImplWidget_Gthread, getActionChange, getActionChangeStrict, getActionDrag, getActionDrop, getActionFocused, getActionShow, getBackColor, getCfgElement, getCmd, getCmd, getContentIdent, getContentInfo, getContextMenu, getData, getDataIx, getDataPath, getDataPath, getFloatValue, getFormat, getGralWidget, getHtmlHelp, getImpl, getItsPanel, getLongValue, getName, getShowMethod, getShowParam, getsToolTip, getText, getValue, getVariable, getVariableFromContentInfo, gralMng, isChanged, isEditable, isGraphicDisposed, isInFocus, isNotEditableOrShouldInitialize, isVisible, pos, refreshFromVariable, refreshFromVariable, registerWidget, remove, repaint, repaint, requestNewValueForVariable, setActionChange, setActionFocused, setActionMouse, setActionShow, setBackColor, setBackgroundColor, setBoundsPixel, setCfgElement, setCmd, setContentIdent, setContentInfo, setData, setDataIx, setDataPath, setDragEnable, setDropEnable, setEditable, setFocus, setFocus, setForegroundColor, setFormat, setHtmlHelp, setLineColor, setLongValue, setMinMax, setPanelMng, setPrimaryWidgetOfPanel, setText, setTextColor, setToolTip, setToPanel, setValue, setValue, setValue, setValue, setVisible, setVisibleState, setVisibleStateWidget, specifyActionChange, specifyContextMenu, stop, toString, XXXgetPixelPositionSize, XXXgetWidgetImplementation, XXXremoveWidgetImplementation, XXXrepaintGthread, XXXsetFocusGThread, XXXsetVisibleGThread`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### posSlider

          protected float posSlider

    - #### sizeSlider

          protected float sizeSlider

  - ### Constructor Detail

    - #### GralSlider

          public GralSlider(java.lang.String sName,
                            GralMng mng)

  - ### Method Detail

    - #### getSliderPosition

          public float getSliderPosition()

      Description copied from interface: `GralSlider_ifc`
      Returns a value between 0.0 and 1.0 which presents the slider position. 0.0 is left or bottom, 1.0 is right or top.
      Specified by:
        `getSliderPosition` in interface `GralSlider_ifc`

    - #### setSliderSize

          public void setSliderSize(float ratio)

      Description copied from interface: `GralSlider_ifc`
      Sets the slider size as ratio of the slider range. It may be the ratio between existing range to visible rangefor a slider which presents a visible range of anything.
      Specified by:
        `setSliderSize` in interface `GralSlider_ifc`
      Parameters:
        `ratio` - Value from 0.0 to 1.0: 0.0 means a 1-pixel-line slider. 1.0 means a non-move-able slider because it uses the full range for moving.