Package snap.view

Class CheckBox

All Implemented Interfaces:
PropChange.DoChange, XMLArchiver.Archivable

public class CheckBox extends ToggleButton
A View subclass for CheckBox.
  • Constructor Details

    • CheckBox

      public CheckBox()
      Creates CheckBox.
    • CheckBox

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

    • paintButton

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

      public void setPosition(Pos aPos)
      Override to situate Check 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