jhplot.shapes
Class Circle
java.lang.Object
jhplot.shapes.HShape
jhplot.shapes.Circle
- All Implemented Interfaces:
- java.io.Serializable
public class Circle
- extends HShape
Build a Circle using the USER coordinate system
- See Also:
- Serialized Form
Constructor Summary |
Circle(double X1,
double Y1,
double radius)
Build a circle using the default stroke and color |
Circle(double X1,
double Y1,
double radius,
java.awt.Stroke strock,
java.awt.Color color)
Build a circle |
Method Summary |
double |
getRadius()
Get the radius |
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, setStroke, setTransparency, setWhoAm, updateSettings |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Circle
public Circle(double X1,
double Y1,
double radius,
java.awt.Stroke strock,
java.awt.Color color)
- Build a circle
- Parameters:
X1
- X position of the centerY1
- Y position of the centerradius
- radiusstrock
- Stroke to draw itcolor
- Color
Circle
public Circle(double X1,
double Y1,
double radius)
- Build a circle using the default stroke and color
- Parameters:
X1
- X center positionY1
- Y center positionradius
- Radius
getRadius
public double getRadius()
- Get the radius
- Returns:
- Radius
toString
public java.lang.String toString()
- Show it as a string
- Overrides:
toString
in class java.lang.Object
- Returns:
- a string representation of this HShape object
jHepWork 1.7 (C) Chekanov