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

public class ArrowButton extends SimpleButton
A simple resizable button identified by an arrow icon.
Version:
$id$
Author:
Jernej Kamenik
See Also:
  • Constructor Details

    • ArrowButton

      public ArrowButton(ArrowButton.Orientation newOrientation)
      Constructor for ArrowButton. Sets the orientation of the arrow icon.
      Parameters:
      newOrientation - int
  • Method Details

    • setArrowInsets

      public void setArrowInsets(Insets newInsets)
      Sets the insets of the arrow icon.
      Parameters:
      newInsets - Insets
    • getArrowInsets

      public Insets getArrowInsets()
      Returns the insets of the arrow icon.
      Returns:
      Insets
    • paintComponent

      public void paintComponent(Graphics g)
      This method has been overriden to implement arrow icon painting.
      Overrides:
      paintComponent in class SimpleButton
      Parameters:
      g - Graphics
      See Also:
    • getOrientation

      public int getOrientation()
      Returns the orientation of the arrow icon.
      Returns:
      int
    • setOrientation

      public void setOrientation(int newOrientation)
      Sets the orientation of the arrow icon.
      Parameters:
      newOrientation - int