Class ContourPlotOptions

  • All Implemented Interfaces:
    Serializable, OptionDataListener, org.zkoss.json.JSONAware

    public class ContourPlotOptions
    extends SeriesPlotOptions
    Options for a contour plot.

    The plot is drawn with WebGPU from the color axis colors, which must be plain colors such as "#3060cf". Set the stops, or the min and max colors, of the color axis: the default colors are CSS variables, which draw the plot black. The width of the contour lines only takes effect when set on the series, with Series.setLineWidth(Number).

    All the options in this class support DynamicalAttribute.

    Since:
    13.1.1.0
    Author:
    peggypeng
    See Also:
    Serialized Form
    • Constructor Detail

      • ContourPlotOptions

        public ContourPlotOptions()
    • Method Detail

      • getContourInterval

        public Number getContourInterval()
        Returns the spacing between contour lines.

        Default: null

        Since:
        13.1.1.0
      • setContourInterval

        public void setContourInterval​(Number contourInterval)
        Sets the spacing between contour lines.
        Since:
        13.1.1.0
      • getContourOffset

        public Number getContourOffset()
        Returns the value offset applied to the first contour line. Shifts the entire contour pattern along the value axis without changing the spacing defined by getContourInterval().

        Default: 0

        Since:
        13.1.1.0
      • setContourOffset

        public void setContourOffset​(Number contourOffset)
        Sets the value offset applied to the first contour line.
        Since:
        13.1.1.0
      • getLineColor

        public Color getLineColor()
        Returns the color of the contour lines.

        Default: null

        Since:
        13.1.1.0
      • setLineColor

        public void setLineColor​(Color color)
        Sets the color of the contour lines. Defaults to "#000000".
        Since:
        13.1.1.0
      • setLineColor

        public void setLineColor​(String color)
        Sets the color of the contour lines. Defaults to "#000000".
        Since:
        13.1.1.0
      • isSmoothColoring

        public boolean isSmoothColoring()
        Returns whether color bands between contour lines are blended smoothly or rendered as discrete steps. When true, adjacent bands interpolate into each other for a continuous appearance.

        Default: false

        Since:
        13.1.1.0
      • setSmoothColoring

        public void setSmoothColoring​(boolean smoothColoring)
        Sets whether color bands between contour lines are blended smoothly (true) or rendered as discrete steps (false).
        Since:
        13.1.1.0