Class Staircase

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

public class Staircase extends Shape
This class represents a poly line in the plot.
  • Constructor Details Link icon

    • Staircase Link icon

      public Staircase(double[][] points, Color color)
      Constructor.
      Parameters:
      points - an n-by-2 or n-by-3 matrix that are the coordinates of points.
      color - the color of points.
  • Method Details Link icon

    • paint Link icon

      public void paint(Renderer g)
      Description copied from class: Shape
      Draws the shape.
      Specified by:
      paint in class Shape
      Parameters:
      g - the renderer.
    • of Link icon

      public static Staircase of(double[][] points)
      Creates a Staircase with solid stroke and black color.
      Parameters:
      points - the points.
      Returns:
      the plot.