Class AuxLineStyle

  • All Implemented Interfaces:
    Style

    public class AuxLineStyle
    extends LineStyle
    LineStyle subclass that can vary the line's colour along its length.
    Since:
    24 Jul 2018
    Author:
    Mark Taylor
    • Constructor Detail

      • AuxLineStyle

        public AuxLineStyle​(java.awt.Color color,
                            java.awt.Stroke stroke,
                            boolean antialias,
                            Shader shader,
                            Scaling scaling,
                            java.awt.Color nullColor)
        Constructor.
        Parameters:
        color - line colour
        stroke - line stroke
        antialias - whether line is to be antialiased (only likely to make a difference on bitmapped paper)
        shader - colour ramp
        scaling - colour ramp metric
        nullColor - colour to use for null aux values; if null, such segments are not plotted
    • Method Detail

      • getShader

        public Shader getShader()
        Returns the shader.
        Returns:
        shader
      • getScaling

        public Scaling getScaling()
        Returns the colour scaling.
        Returns:
        scaling
      • getNullColor

        public java.awt.Color getNullColor()
        Returns the colour to use for null aux values.
        Returns:
        null colour
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class LineStyle