Arrow
jhplot.shapes

Class Arrow

    • Constructor Detail

      • Arrow

        public Arrow(double X1,     double Y1,     double X2,     double Y2,     Stroke stroke,     Color color)
        Build an arrow
        Parameters:
        X1 - X start position
        Y1 - Y start position
        X2 - X end position
        Y2 - Y end position
        stroke - Stroke to draw the line
        color - Color
      • Arrow

        public Arrow(double X1,     double Y1,     double X2,     double Y2)
        Build an arrow in
        Parameters:
        X1 - X start position
        Y1 - Y start position
        X2 - X end position
        Y2 - Y end position
    • Method Detail

      • getEndLength

        public double getEndLength()
        Get length of the ends
        Returns:
        lenght
      • getEndWidth

        public double getEndWidth()
        Get widths of the ends
        Returns:
        width
      • setEndLength

        public void setEndLength(double length)
        Set lenght of the ends
        Parameters:
        length - lenght of the ends
      • setEndWidth

        public void setEndWidth(double width)
        Set width of the ends
        Parameters:
        width - width of the ends
      • setType

        public void setType(int type)
        Set the type of arrow: 1,2,3
      • getType

        public int getType()
        Get the type of arrow
      • toString

        public String toString()
        Represent it as a string
        Overrides:
        toString in class Object
        Returns:
        a string representation of this HShape object
      • doc

        public void doc()
        Show online documentation.

SCaVis 2.0 © jWork.ORG