Class GraffitiToggleButton

All Implemented Interfaces:
ImageObserver, ItemSelectable, MenuContainer, Serializable, Accessible, SwingConstants, GraffitiComponent
Direct Known Subclasses:
ToolButton

public abstract class GraffitiToggleButton
extends JToggleButton
implements GraffitiComponent
Abstract class for all ToggleButtons that should be used as GraffitiComponents. Provides an implementation for the getPreferredComponent() method.
Version:
$Revision: 1.5 $
See Also:
Serialized Form
  • Constructor Details

    • GraffitiToggleButton

      public GraffitiToggleButton()
      Creates a new GraffitiToggleButton object.
    • GraffitiToggleButton

      public GraffitiToggleButton​(String preferredComp)
      Creates a new GraffitiToggleButton object.
      Parameters:
      preferredComp - DOCUMENT ME!
    • GraffitiToggleButton

      public GraffitiToggleButton​(String preferredComp, String text)
      Creates a new GraffitiToggleButton object.
      Parameters:
      preferredComp - DOCUMENT ME!
      text - DOCUMENT ME!
    • GraffitiToggleButton

      public GraffitiToggleButton​(String preferredComp, Icon i)
      Creates a new GraffitiToggleButton object.
      Parameters:
      preferredComp - DOCUMENT ME!
      i - DOCUMENT ME!
  • Method Details

    • getPreferredComponent

      public String getPreferredComponent()
      Returns the id of the component the button prefers to be inserted in.
      Specified by:
      getPreferredComponent in interface GraffitiComponent
      Returns:
      the id of the component the button prefers to be inserted in.