Documentation of 'jhplot.shapes.Line' Java class.
Line
jhplot.shapes

Class Line

  • All Implemented Interfaces:
    java.io.Serializable


    public class Line
    extends HShape
    Draw a line in the user or NDC coordinate system
    See Also:
    Serialized Form
    • Constructor Detail

      • Line

        public Line(double X1,
                    double Y1,
                    double X2,
                    double Y2,
                    java.awt.Stroke strock,
                    java.awt.Color color)
        Main constructor fot a line
        Parameters:
        X1 - X start position
        Y1 - Y start position
        X2 - X end position
        Y2 - Y end position
        strock - Stroke to draw it
        color - Color
      • Line

        public Line(double X1,
                    double Y1,
                    double X2,
                    double Y2)
        Make a line using black (default) color and default stroke
        Parameters:
        X1 - X start position
        Y1 - Y start position
        X2 - X end position
        Y2 - Y end position
    • Method Detail

      • toString

        public java.lang.String toString()
        Show it as a string
        Overrides:
        toString in class java.lang.Object
        Returns:
        a string representation of this label, the text.
      • doc

        public void doc()
        Show online documentation.

DMelt 3.0 © DataMelt by jWork.ORG