Example usage for org.jfree.ui StrokeChooserPanel getSelectedStroke

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

Introduction

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

Prototype

public Stroke getSelectedStroke() 

Source Link

Document

Returns the selected stroke.

Usage

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

/**
 * Handle a grid stroke selection./*from w  ww  . j  av a2 s.co m*/
 */
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());
    }
}