Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.fudaa.ebli.geometrie
Class GrPositionRelativePoint  view GrPositionRelativePoint download GrPositionRelativePoint.java

java.lang.Object
  extended byorg.fudaa.ebli.geometrie.GrObjet
      extended byorg.fudaa.ebli.geometrie.GrPositionRelativePoint
All Implemented Interfaces:
GrContour, java.io.Serializable

public final class GrPositionRelativePoint
extends GrObjet
implements GrContour

Une position relative par rapport a un GrPoint

Version:
$Revision: 1.4 $ $Date: 2001/09/11 15:29:21 $ by $Author: deniger $

Field Summary
 GrPoint origine
           
 GrVecteur position
           
 
Fields inherited from class org.fudaa.ebli.geometrie.GrObjet
 
Constructor Summary
GrPositionRelativePoint()
           
 
Method Summary
 GrPositionRelativePoint applique(GrMorphisme t)
           
 void autoApplique(GrMorphisme t)
           
 GrPoint[] contour()
          Methode retournant les points du contour de l'objet.
 boolean estSelectionne(GrMorphisme _ecran, int _dist, java.awt.Point _pt)
          Indique si l'objet est sélectionné pour un point donné.
 GrPoint toGrPoint()
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 double x()
           
 double y()
           
 double z()
           
 
Methods inherited from class org.fudaa.ebli.geometrie.GrObjet
boite, data, data
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

origine

public GrPoint origine

position

public GrVecteur position
Constructor Detail

GrPositionRelativePoint

public GrPositionRelativePoint()
Method Detail

toString

public final java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).


x

public final double x()

y

public final double y()

z

public final double z()

toGrPoint

public final GrPoint toGrPoint()

applique

public final GrPositionRelativePoint applique(GrMorphisme t)

autoApplique

public final void autoApplique(GrMorphisme t)
Overrides:
autoApplique in class GrObjet

contour

public final GrPoint[] contour()
Description copied from interface: GrContour
Methode retournant les points du contour de l'objet.

Par exemple, pour un GrElement, ces points sont les noeuds du GrElement. Ces points servent a determiner si un objet est dans la selection pour une sélection par rectangle ou polygone (tous ses points sont dans la sélection) ou non.

Ils servent également à afficher les poignées si l'objet sélectionné.

Specified by:
contour in interface GrContour

estSelectionne

public final boolean estSelectionne(GrMorphisme _ecran,
                                    int _dist,
                                    java.awt.Point _pt)
Indique si l'objet est sélectionné pour un point donné.

La méthode a été implémentée dans le but de satisfaire l'interface GrContour. Son fonctionnement n'est peut être pas exactement celui attendu.

Specified by:
estSelectionne in interface GrContour