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 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.