public class StyleKeys
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static ConfigKey<Anchor> |
ANCHOR
Config key for text anchor positioning.
|
static ConfigKey<java.lang.Boolean> |
ANTIALIAS
Config key for line antialiasing.
|
static ConfigKey<java.lang.Boolean> |
AUTOSCALE
Config key for autoscale flag for markers in data space.
|
static ConfigKey<java.lang.Boolean> |
AUTOSCALE_PIX
Config key for autoscale flag for markers in pixel space.
|
static ConfigKey<java.lang.Double> |
AUX_CROWD
Config key for aux axis tick crowding.
|
static ConfigKey<java.awt.Color> |
AUX_NULLCOLOR
Config key for aux null colour.
|
static ConfigKey<java.lang.Double> |
AUX_OPAQUE
Config key for the opacity limit of auxiliary shaded plots.
|
static RampKeySet |
AUX_RAMP
Config key set for global Aux axis colour ramp.
|
static ConfigKey<java.awt.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<java.awt.Color> |
COLOR
Config key for style colour.
|
static ConfigKey<Combiner> |
COMBINER
Config key for density map combination.
|
static ConfigKey<java.lang.Boolean> |
CUMULATIVE
Config key for cumulative histogram flag.
|
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<java.lang.Boolean> |
GRID_ANTIALIAS
Config key for axis grid antialiasing.
|
static ConfigKey<java.awt.Color> |
GRID_COLOR
Config key for axis grid colour.
|
static ConfigKey<java.lang.String> |
LABEL
Config key for a layer label string.
|
static ConfigKey<LevelMode> |
LEVEL_MODE
Config key for scaling level mode.
|
static ConfigKey<MarkShape> |
MARK_SHAPE
Config key for marker shape.
|
static ConfigKey<java.lang.Boolean> |
MINOR_TICKS
Config key for minor tick drawing key.
|
static ConfigKey<Normalisation> |
NORMALISE
Config key for histogram normalisation mode on generic axis.
|
static ConfigKey<Normalisation> |
NORMALISE_TIME
Cnofig key for histogram normalisation mode on time axis.
|
static ConfigKey<java.lang.Double> |
OPAQUE
Config key for the opacity limit of transparent plots.
|
static ConfigKey<java.lang.Double> |
SCALE
Config key for scaling of markers in data space.
|
static ConfigKey<java.lang.Double> |
SCALE_PIX
Config key for scaling of markers in pixel space.
|
static ConfigKey<java.lang.Double> |
SHADE_HIGH
Config key for aux shader upper limit.
|
static ConfigKey<java.lang.Double> |
SHADE_LOW
Config key for aux shader lower limit.
|
static ConfigKey<Subrange> |
SHADE_SUBRANGE
Config key for aux shader subrange.
|
static ConfigKey<java.lang.Boolean> |
SHOW_LABEL
Config key for legend inclusion flag.
|
static ConfigKey<java.lang.Integer> |
SIZE
Config key for marker size.
|
static ConfigKey<java.lang.Double> |
TRANSPARENCY
Config key for "normal" transparency - it's just 1-alpha.
|
static ConfigKey<java.lang.Double> |
TRANSPARENT_LEVEL
Config key for transparency level of adaptive transparent plots.
|
static MultiPointConfigKey |
VECTOR_SHAPE
Config key for vector marker style.
|
static ConfigKey<XYShape> |
XYSHAPE
Config key for XY shape.
|
static ConfigKey<java.lang.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<java.lang.String> |
createAxisLabelKey(java.lang.String axName)
Returns an axis labelling config key.
|
static ConfigKey<java.lang.Double> |
createCrowdKey(ConfigMeta meta)
Returns an axis tick mark crowding config key.
|
static ConfigKey<java.awt.Color> |
createNullColorKey(java.lang.String axname,
java.lang.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 java.awt.Stroke |
createStroke(ConfigMap config,
int cap,
int join)
Obtains a line drawing stroke based on a config map.
|
static ConfigKey<java.lang.Integer> |
createThicknessKey(int dfltThick)
Returns a config key for line thickness with a given default value.
|
static java.awt.Color |
getAlphaColor(ConfigMap config,
ConfigKey<java.awt.Color> colorKey,
ConfigKey<java.lang.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<java.lang.Integer> SIZE
public static final ConfigKey<java.awt.Color> COLOR
public static final ConfigKey<java.lang.Double> OPAQUE
public static final ConfigKey<java.lang.Double> AUX_OPAQUE
public static final ConfigKey<java.lang.Double> TRANSPARENT_LEVEL
public static final ConfigKey<java.lang.Double> TRANSPARENCY
public static final ConfigKey<float[]> DASH
public static final ConfigKey<java.awt.Color> GRID_COLOR
public static final ConfigKey<java.awt.Color> AXLABEL_COLOR
public static final ConfigKey<BarStyle.Form> BAR_FORM
public static final ConfigKey<java.lang.Boolean> CUMULATIVE
public static final ConfigKey<Normalisation> NORMALISE
public static final ConfigKey<Normalisation> NORMALISE_TIME
public static final ConfigKey<java.lang.Boolean> ANTIALIAS
public static final ConfigKey<java.lang.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<java.lang.Double> AUX_CROWD
public static final ConfigKey<java.lang.Double> SHADE_LOW
public static final ConfigKey<java.lang.Double> SHADE_HIGH
public static final ConfigKey<Subrange> SHADE_SUBRANGE
public static final ConfigKey<java.awt.Color> AUX_NULLCOLOR
public static final ConfigKey<java.lang.Double> SCALE
public static final ConfigKey<java.lang.Double> SCALE_PIX
public static final ConfigKey<java.lang.Boolean> AUTOSCALE
public static final ConfigKey<java.lang.Boolean> AUTOSCALE_PIX
public static final ConfigKey<java.lang.String> LABEL
public static final ConfigKey<java.lang.Boolean> SHOW_LABEL
public static final ConfigKey<java.lang.Boolean> MINOR_TICKS
public static final ConfigKey<java.lang.Double> ZOOM_FACTOR
public static final CaptionerKeySet CAPTIONER
public static final RampKeySet AUX_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 java.awt.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<java.lang.Double> createCrowdKey(ConfigMeta meta)
meta
- metadatapublic static ConfigKey<java.lang.String> createAxisLabelKey(java.lang.String axName)
axName
- axis namepublic static ConfigKey<java.awt.Color> createNullColorKey(java.lang.String axname, java.lang.String axName)
axname
- short form of axis name, used in text parameter namesaxName
- long form of axis name, used in descriptionspublic static ConfigKey<java.lang.Integer> createThicknessKey(int dfltThick)
dfltThick
- default value for line width in pixelspublic static java.awt.Color getAlphaColor(ConfigMap config, ConfigKey<java.awt.Color> colorKey, ConfigKey<java.lang.Double> transparencyKey)
config
- config mapcolorKey
- key for colour, for instance COLOR
transparencyKey
- key for 1-alpha, for instance
TRANSPARENCY
public static ClippedShader[] createAuxShaders()
Copyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.