    001package org.vishia.gral.widget;
    002
    003import org.vishia.gral.base.GralMng;
    004import org.vishia.gral.base.GralWidgImpl_ifc;
    005import org.vishia.gral.base.GralWidget;
    006
    007public class GralLabel extends GralWidget
    008{
    009  /**Use 1..9 for
    010   *
    011   *
    012   */
    013  int origin;
    014
    015  public GralLabel(String sName)
    016  {
    017    super(sName, 'S');
    018  }
    019
    020  public GralLabel(String sName, String sText, int origin)
    021  {
    022    super(sName, 'S');
    023    this.origin = origin;
    024    super.setText(sText);
    025  }
    026
    027
    028  public GralLabel(String pos, String sName, String sText, int origin)
    029  {
    030    super(pos,sName, 'S');
    031    this.origin = origin;
    032    super.setText(sText);
    033  }
    034
    035
    036  public abstract class GraphicImplAccess extends GralWidget.ImplAccess
    037  implements GralWidgImpl_ifc
    038  {
    039    protected GraphicImplAccess(GralWidget widgg, GralMng mng)
    040    {
    041      super(widgg, mng);
    042    }
    043
    044    protected int origin(){ return origin; }
    045
    046  }
    047
    048}