jus.aoo.geometrie
Class NewSegment

java.lang.Object
  extended by jus.aoo.geometrie.NewFigure
      extended by jus.aoo.geometrie.NewSegment
All Implemented Interfaces:
_NewFigure

public class NewSegment
extends NewFigure

Modélise la notion d'acquisition de segment

Version:
1.0
Author:
P.Morat ou http://imag.fr/Philippe.Morat
See Also:
NewSegment
Mots-clé
géométrie, figure, segment

Constructor Summary
NewSegment()
           
 
Method Summary
 void changePoint(jus.util.geometrie.Point p)
          Ajout d'un point non définitif
 boolean isComplete()
          la construction est-elle finalisée
 Segment newFigure()
          la figure courante
 void newPoint(jus.util.geometrie.Point p)
          Ajout d'un point définitif
 
Methods inherited from class jus.aoo.geometrie.NewFigure
setGeometrie
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewSegment

public NewSegment()
Method Detail

changePoint

public void changePoint(jus.util.geometrie.Point p)
Ajout d'un point non définitif

Parameters:
p - le point

newPoint

public void newPoint(jus.util.geometrie.Point p)
Ajout d'un point définitif

Parameters:
p - le point

newFigure

public Segment newFigure()
la figure courante

Returns:
la figure courante compatible à la situation

isComplete

public boolean isComplete()
la construction est-elle finalisée

Returns:
vrai si fini fauxsinon