Class AuxLineStyle
java.lang.Object
uk.ac.starlink.ttools.plot2.layer.LineStyle
uk.ac.starlink.ttools.plot2.layer.AuxLineStyle
- All Implemented Interfaces:
Style
- Direct Known Subclasses:
LinePlotter.LinesStyle
LineStyle subclass that can vary the line's colour along its length.
- Since:
- 24 Jul 2018
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the adjustment for the input data scale.Returns the colour to use for null aux values.Returns the colour scaling.Returns the shader.int
hashCode()
Methods inherited from class uk.ac.starlink.ttools.plot2.layer.LineStyle
createLineTracer, getAntialias, getColor, getLegendIcon, getStroke
-
Constructor Details
-
AuxLineStyle
public AuxLineStyle(Color color, Stroke stroke, boolean antialias, Shader shader, Scaling scaling, Subrange dataclip, Color nullColor) Constructor.- Parameters:
color
- line colourstroke
- line strokeantialias
- whether line is to be antialiased (only likely to make a difference on bitmapped paper)shader
- colour rampscaling
- colour ramp metricdataclip
- colour ramp input data subrangenullColor
- colour to use for null aux values; if null, such segments are not plotted
-
-
Method Details
-
getShader
Returns the shader.- Returns:
- shader
-
getScaling
Returns the colour scaling.- Returns:
- scaling
-
getDataClip
Returns the adjustment for the input data scale.- Returns:
- data clipping subrange
-
getNullColor
Returns the colour to use for null aux values.- Returns:
- null colour
-
hashCode
public int hashCode() -
equals
-