Documentation of 'smile.plot.Line' Java class
Line
smile.plot

Class Line



  • public class Line
    extends Shape
    This class respesents a poly line in the plot.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class and Description
      static class  Line.Style
      The supported styles of lines.
    • Constructor Summary

      Constructors 
      Constructor and Description
      Line(double[]... points)
      Constructor.
      Line(Line.Style style, java.awt.Color color, double[]... points)
      Constructor.
      Line(Line.Style style, double[]... points)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.awt.Stroke getStroke()
      Returns the line stroke style.
      void paint(Graphics g)
      Draw the component with given graphics object.
      Line setStroke(java.awt.Stroke stroke)
      Set the line stroke style.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Line

        public Line(double[]... points)
        Constructor.
      • Line

        public Line(Line.Style style,
                    double[]... points)
        Constructor.
      • Line

        public Line(Line.Style style,
                    java.awt.Color color,
                    double[]... points)
        Constructor.
    • Method Detail

      • getStroke

        public java.awt.Stroke getStroke()
        Returns the line stroke style.
      • setStroke

        public Line setStroke(java.awt.Stroke stroke)
        Set the line stroke style.
      • paint

        public void paint(Graphics g)
        Description copied from class: Shape
        Draw the component with given graphics object.
        Specified by:
        paint in class Shape

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.