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)
    Add a point to the contour line.
    boolean
    Returns true if the isoline doesn't have any points.
    void
    Paint 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.
  • Method Details

    • isEmpty

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

      public void add(double... point)
      Add a point to the contour line.
    • paint

      public void paint(Graphics g)
      Paint 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