001package org.vishia.gral.base; 002 003import org.vishia.gral.ifc.GralSlider_ifc; 004 005public abstract class GralSlider extends GralWidget implements GralSlider_ifc 006{ 007 protected float posSlider; 008 009 protected float sizeSlider; 010 011 012 public GralSlider(String sName, GralMng mng) 013 { 014 super(sName, 'V', mng); 015 } 016 017 @Override 018 public float getSliderPosition() { 019 return posSlider; 020 } 021 022 @Override 023 public void setSliderSize(float ratio) { 024 sizeSlider = ratio; 025 026 } 027 028 029 /**This class contains the access to the GralWidget class. It is used only as super class for the implementation level. 030 * Don't use this class from user applications! It is public only because it should be seen from the graphic implementation. 031 */ 032 public abstract class _GraphicImplAccess_ extends GralWidget.ImplAccess 033 implements GralWidgImpl_ifc 034 { 035 036 /**Because this class is not a static one, the constructor is invoked with the following pattern: 037 * <pre> 038 * widgg.super(widgg); 039 * </pre> 040 * @param widgg 041 */ 042 protected _GraphicImplAccess_(GralWidget widgg) 043 { 044 super(widgg); 045 } 046 047 048 } 049 050}