public class MarkStyleSelectors extends Object
Modifier and Type | Method and Description |
---|---|
static JComboBox<ErrorRenderer> |
createErrorSelector(ErrorRenderer[] errorRenderers,
ErrorRenderer defaultRenderer,
ErrorModeSelection[] errorModeSelections)
Returns a new JComboBox which will contain ErrorRenderer objects.
|
static JComboBox<MarkerShape> |
createMarkerShapeSelector(MarkerShape[] shapes)
Returns a new JComboBox for marker shape selection
with specified list of shapes.
|
static ComboBoxModel<Integer> |
createNumberedModel(int count)
Convenience method to construct a new ComboBoxModel which
contains Integers numbered from 0 to
count-1 . |
static JComboBox<MarkShape> |
createShapeSelector()
Returns a new JComboBox for marker shape selection
with a default list of shapes.
|
static JComboBox<MarkShape> |
createShapeSelector(MarkShape[] shapes)
Returns a new JComboBox for marker shape selection
with specified list of shapes.
|
static JComboBox<Integer> |
createSizeSelector()
Returns a new JComboBox for selecting symbol sizes,
using the default maximum size (
MAX_SIZE ). |
static JComboBox<Integer> |
createSizeSelector(int maxSize)
Returns a new JComboBox for selecting symbol sizes,
using a specified maximum size.
|
static MarkStyle |
getStyle(MarkShape shape,
int size,
Color color,
int opaqueLimit,
boolean hidePoints,
ErrorRenderer errorRenderer,
MarkStyle.Line line,
int thick,
float[] dash,
ErrorModeSelection[] errModels)
Returns a MarkStyle described by its attributes.
|
public static JComboBox<MarkShape> createShapeSelector()
public static JComboBox<MarkShape> createShapeSelector(MarkShape[] shapes)
shapes
- shape optionspublic static JComboBox<MarkerShape> createMarkerShapeSelector(MarkerShape[] shapes)
shapes
- shape optionspublic static JComboBox<Integer> createSizeSelector()
MAX_SIZE
).public static JComboBox<Integer> createSizeSelector(int maxSize)
maxSize
- maximum sizepublic static JComboBox<ErrorRenderer> createErrorSelector(ErrorRenderer[] errorRenderers, ErrorRenderer defaultRenderer, ErrorModeSelection[] errorModeSelections)
errorRenderers
- full list of renderers to select from
(may be subsetted according to current ErrorMode selections)defaultRenderer
- default error renderer to use if no other
is knownerrorModeSelections
- error mode selection models, one per axispublic static ComboBoxModel<Integer> createNumberedModel(int count)
count-1
.count
- number of entries in the modelpublic static MarkStyle getStyle(MarkShape shape, int size, Color color, int opaqueLimit, boolean hidePoints, ErrorRenderer errorRenderer, MarkStyle.Line line, int thick, float[] dash, ErrorModeSelection[] errModels)
shape
- marker shapesize
- marker sizecolor
- marker colourhidePoints
- whether markers are invisibleerrorRenderer
- error bar rendering styleline
- line typethick
- line thicknessdash
- line dash patternCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.