org.jfree.ui

Class StrokeChooserPanel

public class StrokeChooserPanel extends JPanel

A component for choosing a stroke from a list of available strokes. This class needs work.

Author: David Gilbert

Constructor Summary
StrokeChooserPanel(StrokeSample current, StrokeSample[] available)
Creates a panel containing a combo-box that allows the user to select one stroke from a list of available strokes.
Method Summary
StrokegetSelectedStroke()
Returns the selected stroke.
protected JComboBoxgetSelector()
Returns the selector component.

Constructor Detail

StrokeChooserPanel

public StrokeChooserPanel(StrokeSample current, StrokeSample[] available)
Creates a panel containing a combo-box that allows the user to select one stroke from a list of available strokes.

Parameters: current the current stroke sample. available an array of 'available' stroke samples.

Method Detail

getSelectedStroke

public Stroke getSelectedStroke()
Returns the selected stroke.

Returns: The selected stroke (possibly null).

getSelector

protected final JComboBox getSelector()
Returns the selector component.

Returns: Returns the selector.