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
Representation.MonPlan- A class which represents the plane zone
Representation(Titre3D)
-
anyObjectIsSelected()
- Check whether any object is selected in any area
getInsets()
-
isObjectSelected(Representation.MonPlan, Point)
- Check whether an object is selected in a given zone at a given position
paint(Graphics)
-
refresh(Representation.MonPlan, Point)
- Refresh the given zone
refreshAndStop(Representation.MonPlan, Point)
-
testListeSphere(int, Point)
- Check if a sphere object is present in the given zone at the given position
testListeTexte(int, Point)
- Check if a text object is present in the given zone at the given position
Representation
public Representation(Titre3D app)
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
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.
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.
anyObjectIsSelected
public boolean anyObjectIsSelected()
- Check whether any object is selected in any area
- Returns:
- true if one object is selected,
false if not.
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
refreshAndStop
public void refreshAndStop(Representation.MonPlan plan,
Point pos)
getInsets
public Insets getInsets()
- Overrides:
- getInsets in class Container
paint
public void paint(Graphics g)
- Overrides:
- paint in class Container
All Packages Class Hierarchy This Package Previous Next Index