Class GraffitiButton

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

public abstract class GraffitiButton
extends JButton
implements GraffitiComponent
TODO
See Also:
Serialized Form
  • Constructor Details

    • GraffitiButton

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

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

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

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

    • setMainFrame

      public void setMainFrame​(MainFrame mf)
      See Also:
      org.graffiti.plugin.gui.GraffitiComponent#setMainFrame(org.graffiti.editor.MainFrame)
    • 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.