Documentation API of the 'jhplot.shapes.Ellipse' Java class
Ellipse
jhplot.shapes

Class Ellipse

    • Constructor Detail

      • Ellipse

        public Ellipse(double X1,               double Y1,               double r1,               double r2,               Stroke strock,               Color color)
        Create an ellipse with given semimajor and semiminor axes, centered on (x, y). Major axis: The longest diameter of an ellipse. Minor axis: The shortest diameter of an ellipse. Semimajor is major/2.
        Parameters:
        X1 - X center position
        Y1 - Y center position
        r1 - radius in X, or semimajor axis of the ellipse (major divided by 2).
        r2 - radius in Y, or the semiminor axis of the ellipse (minor divided by 2).
        strock - Stroke
        color - Color
      • Ellipse

        public Ellipse(double X1,               double Y1,               double r1,               double r2)
        Create an ellipse using the default stroke and the color
        Parameters:
        X1 - X center
        Y1 - Y center
        r1 - radius in X, or semimajor axis of the ellipse (major divided by 2).
        r2 - radius in Y, or the semiminor axis of the ellipse (minor divided by 2).
    • Method Detail

      • getRadiusX

        public double getRadiusX()
        Get the radius in X. This is semimajor size (major/2).
        Returns:
        radius in X or semimajor size.
      • getRadiusY

        public double getRadiusY()
        Get the radius in Y. This is semiminor size (major/2).
        Returns:
        radius in Y or semiminor.
      • toString

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

        public void doc()
        Show online documentation.

SCaVis 2.2 © jWork.ORG

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

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