fr.umlv.ji.figures
Class Disque
java.lang.Object
|
+--fr.umlv.ji.figures.Figure
|
+--fr.umlv.ji.figures.Disque
- public class Disque
- extends Figure
Represents discs figures in a 2D coordinates plane
Nested Class Summary |
static class |
Disque.Collection
Represents a collections of discs. |
Nested classes inherited from class fr.umlv.ji.figures.Figure |
|
Constructor Summary |
Disque(Point center,
double radius)
A constructor for disc instances.
|
Method Summary |
static void |
main(String[] args)
|
double |
surface()
Returns the surface of the figure. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
center
private Point center
radius
private double radius
Disque
public Disque(Point center,
double radius)
- A constructor for disc instances.
This figure illustrates the signification of the parameters:
- Parameters:
center
- The center of the discradius
- The radius of the disc
surface
public double surface()
- Description copied from class:
Figure
- Returns the surface of the figure.
- Specified by:
surface
in class Figure
- Returns:
- the surface of this figure.
main
public static void main(String[] args)