org.jfree.ui

Class ArrowPanel


public class ArrowPanel
extends JPanel

A basic panel that displays a small up or down arrow.
Author:
David Gilbert

Field Summary

static int
DOWN
A constant for the down arrow.
static int
UP
A constant for the up arrow.

Constructor Summary

ArrowPanel(int type)
Creates a new arrow panel.

Method Summary

void
paintComponent(Graphics g)
Paints the arrow panel.

Field Details

DOWN

public static final int DOWN
A constant for the down arrow.
Field Value:
1

UP

public static final int UP
A constant for the up arrow.
Field Value:
0

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.
Parameters:
g - the graphics device for drawing on.