draw
Class Bresenham

java.lang.Object
  extended by draw.Bresenham

public final class Bresenham
extends java.lang.Object

Algorithme de Bresenham.
Le but est de tracer un segment entre deux points (x1,y1) et (x2,y2).

Version:
1.0.0
Author:
COLIN Mathieu

Constructor Summary
Bresenham()
           
 
Method Summary
static void drawLine(Cadre cadre, int x1, int y1, int x2, int y2, Modele modele, java.awt.Color c)
          Trace un segment entre deux points.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Bresenham

public Bresenham()
Method Detail

drawLine

public static void drawLine(Cadre cadre,
                            int x1,
                            int y1,
                            int x2,
                            int y2,
                            Modele modele,
                            java.awt.Color c)
Trace un segment entre deux points.

Parameters:
cadre - Cadre.
x1 - Abscisse du point 1.
y1 - Ordonnée du point 1.
x2 - Abscisse du point 2.
y2 - Ordonnée du point 2.
c - Couleur.