Class TypeToggleButton

All Implemented Interfaces:
ImageObserver, ItemSelectable, MenuContainer, Serializable, Accessible, SwingConstants

public class TypeToggleButton extends JButton
Author:
Christian W. Guenther (christian@deckfour.org)
See Also:
  • Field Details

    • colorPassive

      protected Color colorPassive
    • colorTextPassive

      protected Color colorTextPassive
    • colorTextActive

      protected Color colorTextActive
    • metrics

      protected FontMetrics metrics
    • size

      protected int size
    • mouseOver

      protected boolean mouseOver
    • buttonIsEnabled

      protected boolean buttonIsEnabled
    • type

      protected String type
    • letter

      protected String letter
    • active

      protected Color active
  • Constructor Details

    • TypeToggleButton

      public TypeToggleButton(String type, String letter, Color active)
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Overrides:
      isEnabled in class Component
    • setButtonEnabled

      public void setButtonEnabled(boolean enabled)
    • paintComponent

      protected void paintComponent(Graphics g)
      Overrides:
      paintComponent in class JComponent