Package smile.plot.swing
Class Isoline
java.lang.Object
smile.plot.swing.Shape
smile.plot.swing.Isoline
Contour contains a list of segments.
-
Constructor Summary
Constructors -
Method Summary
-
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
Paints the contour line. If the color attribute is null, the level value of contour line will be shown along the line.
-