Documentation API of the 'jhplot.shapes.Arrow' Java class
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.

DataMelt 1.1 © jWork.ORG

Warning: You see this message because an access to the DatMelt documentation for third-party Java classes is denied. Guests can only view jhplot Java API. To enable the description of all Java classes of dataMelt, please request the full DataMelt membership.

If you are already a full member, please login to the DataMelt member area before visiting this documentation.