Package snap.view

Class RadioButton

All Implemented Interfaces:
PropChange.DoChange, XMLArchiver.Archivable

public class RadioButton extends ToggleButton
A ToggleButton subclass for RadioButton.
  • Constructor Details

    • RadioButton

      public RadioButton()
      Creates RadioButton.
    • RadioButton

      public RadioButton(String aStr)
      Creates RadioButton with given text.
  • Method Details

    • paintButton

      protected void paintButton(Painter aPntr)
      Override to suppress normal version.
      Overrides:
      paintButton in class ButtonBase
    • setPosition

      public void setPosition(Pos aPos)
      Override to situate Radio view.
      Overrides:
      setPosition in class ButtonBase
    • getPrefWidthImpl

      protected double getPrefWidthImpl(double aH)
      Returns the preferred width.
      Overrides:
      getPrefWidthImpl in class ButtonBase
    • getPrefHeightImpl

      protected double getPrefHeightImpl(double aW)
      Returns the preferred height.
      Overrides:
      getPrefHeightImpl in class ButtonBase
    • layoutImpl

      protected void layoutImpl()
      Override to layout children.
      Overrides:
      layoutImpl in class ButtonBase