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

Stroke
getSelectedStroke()
Returns the selected stroke.
protected JComboBox
getSelector()
Returns the selector component.

Constructor Details

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 Details

getSelectedStroke

public Stroke getSelectedStroke()
Returns the selected stroke.
Returns:
the selected stroke.

getSelector

protected final JComboBox getSelector()
Returns the selector component.
Returns:
Returns the selector.