Package org.jfree.ui

Class StrokeChooserPanel

    • 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

      • getSelector

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

        public Stroke getSelectedStroke()
        Returns the selected stroke.
        Returns:
        The selected stroke (possibly null).