All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class Texte3D.Representation

java.lang.Object
    |
    +----java.awt.Component
            |
            +----java.awt.Container
                    |
                    +----java.awt.Panel
                            |
                            +----Texte3D.Representation

public class Representation
extends Panel
A class which represents the display zone : it contains 3 different zone plan X - Y, plan X - Z, plan Z - Y a 3D displaying zone a reult zone where the generated image is displayed a legend zone where coordinates of a selected object are displayed

Author:
Laure Ottavj, Sylvain Leterreur

Class Index

 o Representation.MonPlan
A class which represents the plane zone

Constructor Index

 o Representation(Titre3D)

Method Index

 o anyObjectIsSelected()
Check whether any object is selected in any area
 o getInsets()
 o isObjectSelected(Representation.MonPlan, Point)
Check whether an object is selected in a given zone at a given position
 o paint(Graphics)
 o refresh(Representation.MonPlan, Point)
Refresh the given zone
 o refreshAndStop(Representation.MonPlan, Point)
 o testListeSphere(int, Point)
Check if a sphere object is present in the given zone at the given position
 o testListeTexte(int, Point)
Check if a text object is present in the given zone at the given position

Constructors

 o Representation
public Representation(Titre3D app)

Methods

 o isObjectSelected
public void isObjectSelected(Representation.MonPlan plan,
                             Point pos)
Check whether an object is selected in a given zone at a given position

Parameters:
MonPlan - the given zone : plan X - Y, plan X - Z or plan Z - Y
Point - the position in the given zone
 o testListeTexte
public boolean testListeTexte( int numPlan,
                              Point pos)
Check if a text object is present in the given zone at the given position

Parameters:
int - the number of the zone : 1 if plan X - Y, 2 if plan X - Z, 3 if plan Z - Y
Point - the position where the mouse has been clicked
Returns:
true if there is a text object in this position, false if not.
 o testListeSphere
public boolean testListeSphere( int numPlan,
                               Point pos)
Check if a sphere object is present in the given zone at the given position

Parameters:
int - the number of the zone : 1 if plan X - Y, 2 if plan X - Z, 3 if plan Z - Y
Point - the position where the mouse has been clicked
Returns:
true if there is a sphere object in this position, false if not.
 o anyObjectIsSelected
public boolean anyObjectIsSelected()
Check whether any object is selected in any area

Returns:
true if one object is selected, false if not.
 o refresh
public void refresh(Representation.MonPlan plan,
                    Point pos)
Refresh the given zone

Parameters:
MonPlan - the area to get refreshed : 1 if plan X - Y, 2 if plan X - Z, 3 if plan Z - Y
Point - the position
 o refreshAndStop
public void refreshAndStop(Representation.MonPlan plan,
                           Point pos)
 o getInsets
public Insets getInsets()
Overrides:
getInsets in class Container
 o paint
public void paint(Graphics g)
Overrides:
paint in class Container

All Packages  Class Hierarchy  This Package  Previous  Next  Index