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

Class Ellipse

  • All Implemented Interfaces:
    java.io.Serializable


    public class Ellipse
    extends HShape
    Draw an ellipse in the USER coordinate system using HPlot canvas.
    See Also:
    Serialized Form
    • Constructor Detail

      • Ellipse

        public Ellipse(double X1,
                       double Y1,
                       double r1,
                       double r2,
                       java.awt.Stroke strock,
                       java.awt.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 java.lang.String toString()
        Show it as a string
        Overrides:
        toString in class java.lang.Object
        Returns:
        a string representation of this object
      • doc

        public void doc()
        Show online documentation.

DMelt 3.0 © DataMelt by jWork.ORG