Class TexturedToggleButton

  • All Implemented Interfaces:
    MouseListener, java.awt.event.ActionListener, java.util.EventListener

    public class TexturedToggleButton
    extends Button
    implements java.awt.event.ActionListener
    • Constructor Detail

      • TexturedToggleButton

        public TexturedToggleButton​(java.awt.Rectangle bounds,
                                    Texture textureOn,
                                    Texture textureOff)
    • Method Detail

      • getState

        public boolean getState()
      • draw

        public void draw()
        Specified by:
        draw in class Button
      • cleanup

        public void cleanup()
        Specified by:
        cleanup in class Button
      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent e)
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener