public class StyleKeys extends Object
Modifier and Type | Field and Description |
---|---|
static ConfigKey<Anchor> |
ANCHOR
Config key for text anchor positioning.
|
static ConfigKey<Boolean> |
ANTIALIAS
Config key for line antialiasing.
|
static ConfigKey<Boolean> |
AUTOSCALE
Config key for autoscale flag for markers in data space.
|
static ConfigKey<Boolean> |
AUTOSCALE_PIX
Config key for autoscale flag for markers in pixel space.
|
static ConfigKey<Double> |
AUX_CROWD
Config key for global aux axis tick crowding.
|
static ConfigKey<Color> |
AUX_NULLCOLOR
Config key for global aux null colour.
|
static ConfigKey<Double> |
AUX_OPAQUE
Config key for the opacity limit of global auxiliary shaded plots.
|
static RampKeySet |
AUX_RAMP
Config key set for global Aux axis colour ramp.
|
static ConfigKey<Color> |
AUXLOCAL_NULLCOLOR
Config key for non-global aux null colour.
|
static RampKeySet |
AUXLOCAL_RAMP
Config key set for non-global Aux axis colour ramp.
|
static ConfigKey<Color> |
AXLABEL_COLOR
Config key for axis label colour.
|
static ConfigKey<BarStyle.Form> |
BAR_FORM
Config key for histogram bar style.
|
static CaptionerKeySet |
CAPTIONER
Config key set for axis and general captioner.
|
static ConfigKey<Color> |
COLOR
Config key for style colour.
|
static ConfigKey<Cumulation> |
CUMULATIVE
Config key for cumulative histogram mode.
|
static ConfigKey<float[]> |
DASH
Config key for line dash style.
|
static RampKeySet |
DENSITY_RAMP
Config key set for density point shading.
|
static MultiPointConfigKey |
ELLIPSE_SHAPE
Config key for ellipse marker style.
|
static MultiPointConfigKey |
ERROR_SHAPE_1D
Config key for 1d (vertical) error marker style.
|
static MultiPointConfigKey |
ERROR_SHAPE_2D
Config key for 2d error marker style.
|
static MultiPointConfigKey |
ERROR_SHAPE_3D
Config key for 3d error marker style.
|
static ConfigKey<FillMode> |
FILL
Config key for KDE fill mode.
|
static ConfigKey<Boolean> |
GRID_ANTIALIAS
Config key for axis grid antialiasing.
|
static ConfigKey<Color> |
GRID_COLOR
Config key for axis grid colour.
|
static ConfigKey<Double> |
GRID_TRANSPARENCY
Config key for axis grid transparency.
|
static KeySet<Color> |
GRIDCOLOR_KEYSET
Config keyset for axis grid colour, including transparency.
|
static ConfigKey<String> |
LABEL
Config key for a layer label string.
|
static ConfigKey<LevelMode> |
LEVEL_MODE
Config key for scaling level mode.
|
static ConfigKey<MarkerShape> |
MARKER_SHAPE
Config key for marker shape.
|
static ConfigKey<Boolean> |
MINOR_TICKS
Config key for minor tick drawing.
|
static ConfigKey<Normalisation> |
NORMALISE
Config key for histogram normalisation mode on generic axis.
|
static ConfigKey<Double> |
SCALE
Config key for scaling of markers in data space.
|
static ConfigKey<Double> |
SCALE_PIX
Config key for scaling of markers in pixel space.
|
static ConfigKey<Double> |
SHADE_HIGH
Config key for global aux shader upper limit.
|
static ConfigKey<Double> |
SHADE_LOW
Config key for global aux shader lower limit.
|
static ConfigKey<Subrange> |
SHADE_SUBRANGE
Config key for global aux shader subrange.
|
static ConfigKey<Boolean> |
SHADOW_TICKS
Config key for shadow tick drawing.
|
static ConfigKey<Boolean> |
SHOW_LABEL
Config key for legend inclusion flag.
|
static ConfigKey<Boolean> |
SIDEWAYS
Config key for drawing histogram-like plots sideways.
|
static ConfigKey<Integer> |
SIZE
Config key for marker size.
|
static ConfigKey<Double> |
TRANSPARENCY
Config key for "normal" transparency - it's just 1-alpha.
|
static ConfigKey<Double> |
TRANSPARENT_LEVEL
Config key for transparency level of adaptive transparent plots.
|
static MultiPointConfigKey |
VECTOR_SHAPE
Config key for vector marker style.
|
static ConfigKey<BasicXYShape> |
XYSHAPE
Config key for XY shape.
|
static ConfigKey<Double> |
ZOOM_FACTOR
Config key for zoom factor.
|
Modifier and Type | Method and Description |
---|---|
static ClippedShader[] |
createAuxShaders()
Returns a list of shaders suitable for aux axis shading.
|
static ConfigKey<String> |
createAxisLabelKey(String axName)
Returns an axis labelling config key.
|
static ConfigKey<Double> |
createCrowdKey(ConfigMeta meta)
Returns an axis tick mark crowding config key.
|
static ConfigKey<MarkerShape> |
createMarkerShapeKey(ConfigMeta meta,
MarkerShape dflt)
Returns a config key for choosing marker shape.
|
static ConfigKey<Integer> |
createMarkSizeKey(ConfigMeta meta,
int dflt)
Returns a config key for choosing marker size in pixels.
|
static ConfigKey<Color> |
createNullColorKey(String axname,
String axName)
Returns a key for acquiring a colour used in place of a shading ramp
colour in case that the input data is null.
|
static ConfigKey<Double> |
createOpaqueKey(int dfltValue)
Returns a key for acquiring an opacity value; the value is the
number of pixels that have to be overplotted on a given position
to completely obscure the background.
|
static ConfigKey<Integer> |
createPaintThicknessKey(ConfigMeta meta,
int max)
Returns a config key for painting stroke thickness.
|
static Stroke |
createStroke(ConfigMap config,
int cap,
int join)
Obtains a line drawing stroke based on a config map.
|
static ConfigKey<Integer> |
createThicknessKey(int dfltThick)
Returns a config key for line thickness with a given default value.
|
static Color |
getAlphaColor(ConfigMap config,
ConfigKey<Color> colorKey,
ConfigKey<Double> transparencyKey)
Returns a colour specified by a basic colour key and a transparency key.
|
static ConfigKey<?>[] |
getStrokeKeys()
Returns a list of config keys for configuring a line-drawing stroke.
|
public static final ConfigKey<MarkerShape> MARKER_SHAPE
public static final ConfigKey<BasicXYShape> XYSHAPE
public static final ConfigKey<Boolean> SIDEWAYS
public static final ConfigKey<Double> AUX_OPAQUE
public static final ConfigKey<Double> TRANSPARENT_LEVEL
public static final ConfigKey<Double> TRANSPARENCY
public static final ConfigKey<float[]> DASH
public static final KeySet<Color> GRIDCOLOR_KEYSET
public static final ConfigKey<Double> GRID_TRANSPARENCY
public static final ConfigKey<BarStyle.Form> BAR_FORM
public static final ConfigKey<Cumulation> CUMULATIVE
public static final ConfigKey<Normalisation> NORMALISE
public static final ConfigKey<Boolean> GRID_ANTIALIAS
public static final MultiPointConfigKey VECTOR_SHAPE
public static final MultiPointConfigKey ELLIPSE_SHAPE
public static final MultiPointConfigKey ERROR_SHAPE_1D
public static final MultiPointConfigKey ERROR_SHAPE_2D
public static final MultiPointConfigKey ERROR_SHAPE_3D
public static final ConfigKey<Double> AUX_CROWD
public static final ConfigKey<Double> SHADE_LOW
public static final ConfigKey<Double> SHADE_HIGH
public static final ConfigKey<Subrange> SHADE_SUBRANGE
public static final ConfigKey<Color> AUX_NULLCOLOR
public static final ConfigKey<Color> AUXLOCAL_NULLCOLOR
public static final ConfigKey<Double> SCALE_PIX
public static final ConfigKey<Boolean> AUTOSCALE
public static final ConfigKey<Boolean> AUTOSCALE_PIX
public static final ConfigKey<Boolean> SHADOW_TICKS
public static final CaptionerKeySet CAPTIONER
public static final RampKeySet AUX_RAMP
public static final RampKeySet AUXLOCAL_RAMP
public static final RampKeySet DENSITY_RAMP
public static ConfigKey<?>[] getStrokeKeys()
createStroke
method.createStroke(uk.ac.starlink.ttools.plot2.config.ConfigMap, int, int)
public static Stroke createStroke(ConfigMap config, int cap, int join)
getStrokeKeys
.
The line join and cap policy must be provided.config
- config mapcap
- one of BasicStroke
's CAP_* constantsjoin
- one of BasicStroke
's JOIN_* constantspublic static ConfigKey<MarkerShape> createMarkerShapeKey(ConfigMeta meta, MarkerShape dflt)
meta
- metadatadflt
- default shape valuepublic static ConfigKey<Integer> createMarkSizeKey(ConfigMeta meta, int dflt)
meta
- metadatadflt
- default size valuepublic static ConfigKey<Double> createCrowdKey(ConfigMeta meta)
meta
- metadatapublic static ConfigKey<String> createAxisLabelKey(String axName)
axName
- axis namepublic static ConfigKey<Color> createNullColorKey(String axname, String axName)
axname
- short form of axis name, used in text parameter namesaxName
- long form of axis name, used in descriptionspublic static ConfigKey<Double> createOpaqueKey(int dfltValue)
dfltValue
- default opacity; the lowest sensible value is 1
(no transparency)public static ConfigKey<Integer> createThicknessKey(int dfltThick)
dfltThick
- default value for line width in pixelspublic static ConfigKey<Integer> createPaintThicknessKey(ConfigMeta meta, int max)
meta
- metadatamax
- maximum valuepublic static Color getAlphaColor(ConfigMap config, ConfigKey<Color> colorKey, ConfigKey<Double> transparencyKey)
config
- config mapcolorKey
- key for colour, for instance COLOR
transparencyKey
- key for 1-alpha, for instance
TRANSPARENCY
public static ClippedShader[] createAuxShaders()
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.