Class Isoline

java.lang.Object
smile.plot.swing.Shape
smile.plot.swing.Isoline

public class Isoline extends Shape
Contour contains a list of segments.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Isoline(double level, boolean isLevelVisible)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(double... point)
    Adds a point to the contour line.
    boolean
    Returns true if the isoline doesn't have any points.
    void
    Paints the contour line.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Isoline

      public Isoline(double level, boolean isLevelVisible)
      Constructor.
      Parameters:
      level - the level value of contour line.
      isLevelVisible - true if showing the value of isoline.
  • Method Details

    • isEmpty

      public boolean isEmpty()
      Returns true if the isoline doesn't have any points.
      Returns:
      true if the isoline doesn't have any points.
    • add

      public void add(double... point)
      Adds a point to the contour line.
      Parameters:
      point - the point coordinates.
    • paint

      public void paint(Renderer g)
      Paints the contour line. If the color attribute is null, the level value of contour line will be shown along the line.
      Specified by:
      paint in class Shape
      Parameters:
      g - the renderer.