Example usage for org.jfree.ui StrokeChooserPanel StrokeChooserPanel

List of usage examples for org.jfree.ui StrokeChooserPanel StrokeChooserPanel

Introduction

In this page you can find the example usage for org.jfree.ui StrokeChooserPanel StrokeChooserPanel.

Prototype

public StrokeChooserPanel(StrokeSample current, StrokeSample[] available) 

Source Link

Document

Creates a panel containing a combo-box that allows the user to select one stroke from a list of available strokes.

Usage

From source file:ch.zhaw.simulation.diagram.charteditor.DefaultNumberAxisEditor.java

/**
 * Handle a grid stroke selection.//w w w  .j  a  v a2s  . c om
 */
private void attemptGridStrokeSelection() {
    StrokeChooserPanel panel = new StrokeChooserPanel(this.gridStrokeSample, this.availableStrokeSamples);

    EditorDialog dlg = EditorDialog.create(this, localizationResources.getString("Stroke_Selection"), panel);

    if (dlg.display()) {
        this.gridStrokeSample.setStroke(panel.getSelectedStroke());
    }
}