Class FCheckBox.FCheckBoxIcon

java.lang.Object
fr.formiko.views.gui2d.FCheckBox.FCheckBoxIcon
All Implemented Interfaces:
Icon
Enclosing class:
FCheckBox

class FCheckBox.FCheckBoxIcon extends Object implements Icon
A simple checkBoxIcon using Formiko UI style.
Author:
Hydrolien
  • Field Details

    • size

      private int size
    • checked

      private boolean checked
  • Constructor Details

    • FCheckBoxIcon

      public FCheckBoxIcon(int size, boolean checked)
      Main constructor.
  • Method Details

    • getIconWidth

      public int getIconWidth()
      Specified by:
      getIconWidth in interface Icon
    • getIconHeight

      public int getIconHeight()
      Specified by:
      getIconHeight in interface Icon
    • paintIcon

      public void paintIcon(Component c, Graphics g, int x, int y)
      Main function that draw a box & a check if checked is true.
      Specified by:
      paintIcon in interface Icon