public class MarkStyleSelectors
extends java.lang.Object
Modifier and Type | Method | Description |
---|---|---|
static javax.swing.JComboBox |
createErrorSelector(ErrorRenderer[] errorRenderers,
ErrorRenderer defaultRenderer,
ErrorModeSelection[] errorModeSelections) |
Returns a new JComboBox which will contain ErrorRenderer objects.
|
static javax.swing.ComboBoxModel |
createNumberedModel(int count) |
Convenience method to construct a new ComboBoxModel which
contains Integers numbered from 0 to
count-1 . |
static javax.swing.JComboBox |
createShapeSelector() |
Returns a new JComboBox which will contain a standard set of
MarkShape objects.
|
static javax.swing.JComboBox |
createSizeSelector() |
Returns a new JComboBox which will contain a standard set of integers
for specifying marker size (0..MAX_SIZE).
|
static MarkStyle |
getStyle(MarkShape shape,
int size,
java.awt.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 javax.swing.JComboBox createShapeSelector()
public static javax.swing.JComboBox createSizeSelector()
public static javax.swing.JComboBox 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 javax.swing.ComboBoxModel createNumberedModel(int count)
count-1
.count
- number of entries in the modelpublic static MarkStyle getStyle(MarkShape shape, int size, java.awt.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 © 2018 Central Laboratory of the Research Councils. All Rights Reserved.