Package org.jfree.ui

Class ArrowPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class ArrowPanel extends JPanel
A basic panel that displays a small up or down arrow.
See Also:
  • Field Details

    • UP

      public static final int UP
      A constant for the up arrow.
      See Also:
    • DOWN

      public static final int DOWN
      A constant for the down arrow.
      See Also:
    • type

      private int type
      The arrow type.
    • available

      private Rectangle2D available
      The available area.
  • Constructor Details

    • ArrowPanel

      public ArrowPanel(int type)
      Creates a new arrow panel.
      Parameters:
      type - the arrow type.
  • Method Details

    • paintComponent

      public void paintComponent(Graphics g)
      Paints the arrow panel.
      Overrides:
      paintComponent in class JComponent
      Parameters:
      g - the graphics device for drawing on.
    • getArrow

      private Shape getArrow(int t)
      Returns a shape for the arrow.
      Parameters:
      t - the arrow type.
      Returns:
      the arrow shape.
    • getUpArrow

      private Shape getUpArrow()
      Returns an up arrow.
      Returns:
      an up arrow.
    • getDownArrow

      private Shape getDownArrow()
      Returns a down arrow.
      Returns:
      a down arrow.