jhplot.shapes
Class Ellipse

java.lang.Object
  extended by jhplot.shapes.HShape
      extended by jhplot.shapes.Ellipse
All Implemented Interfaces:
java.io.Serializable

public class Ellipse
extends HShape

Draw an ellipse in the USER coordinate system

See Also:
Serialized Form

Field Summary
 
Fields inherited from class jhplot.shapes.HShape
ARROW, CIRCLE, ELLIPSE, IMAGE, LINE, POLYGON, RECTAN, TEXT
 
Constructor Summary
Ellipse(double X1, double Y1, double r1, double r2)
          Create an ellipse using the default stroke and the color
Ellipse(double X1, double Y1, double r1, double r2, java.awt.Stroke strock, java.awt.Color color)
          Create an ellipse
 
Method Summary
 void doc()
          Show online documentation.
 double getRadiusX()
          Get the radius in X
 double getRadiusY()
          Get the radius in Y
 java.lang.String toString()
          Show it as a string
 
Methods inherited from class jhplot.shapes.HShape
contains, getColor, getFill, getPosition, getPositionCoordinate, getScaledPosition, getSettings, getStroke, getTransparency, getWhoAm, setColor, setDashed, setDotted, setFill, setPosCoord, setPositionCoordinate, setStroke, setTransparency, setWhoAm, updateSettings
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Ellipse

public Ellipse(double X1,
               double Y1,
               double r1,
               double r2,
               java.awt.Stroke strock,
               java.awt.Color color)
Create an ellipse

Parameters:
X1 - X center position
Y1 - Y center position
r1 - radius in X
r2 - radious in Y
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
r2 - Radious in Y
Method Detail

getRadiusX

public double getRadiusX()
Get the radius in X

Returns:
radius in X

getRadiusY

public double getRadiusY()
Get the radius in Y

Returns:
radius in Y

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.



jHepWork 2.8 (©) S.Chekanov