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
 
Field Summary
private  Point center
           
private  double radius
           
 
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 fr.umlv.ji.figures.Figure
isEmpty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

center

private Point center

radius

private double radius
Constructor Detail

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 disc
radius - The radius of the disc
Method Detail

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)