org.tigris.swidgets

Class ArrowButton


public class ArrowButton
extends javax.swing.JButton

A simple arrow button that can be created to point to a compass point.
Author:
Bob Tarling

Constructor Summary

ArrowButton(int direction)
Construct an ArrowButton pointing in the given direction
ArrowButton(int direction, Border border)
Construct an ArrowButton pointing in the given direction

Method Summary

Dimension
getPreferredSize()

Constructor Details

ArrowButton

public ArrowButton(int direction)
Construct an ArrowButton pointing in the given direction
Parameters:
direction - the direction the arrow will point, this being one of the constants NORTH, SOUTH, EAST, WEST

ArrowButton

public ArrowButton(int direction,
                   Border border)
Construct an ArrowButton pointing in the given direction
Parameters:
direction - the direction the arrow will point, this being one of the constants NORTH, SOUTH, EAST, WEST

Method Details

getPreferredSize

public Dimension getPreferredSize()