ter.SDK.controler
Class GraphDetailControler

java.lang.Object
  |
  +--ter.SDK.controler.AbstractControler
        |
        +--ter.SDK.controler.DetailControler
              |
              +--ter.SDK.controler.GraphDetailControler
All Implemented Interfaces:
java.awt.event.ActionListener, Controler, java.util.EventListener, java.awt.event.MouseListener, Plugin

public class GraphDetailControler
extends DetailControler
implements java.awt.event.ActionListener, java.awt.event.MouseListener

Title: GraphDetailControler

Description: this class is the controler of GraphDetailView

Company: UNICE

Version:
1.0
Author:
Lucas Charbit - Jerome Gahide - Galbois Xavier - Gabriel Zerbib

Field Summary
 java.io.File file
           
 
Constructor Summary
GraphDetailControler()
          empty constructor
GraphDetailControler(Manager m, View gdv)
          construtor with 2 parameters
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void changeView(javax.swing.JCheckBox jcb)
           
 void createJPopupMenu()
          this function create the JPopupMenu of the view
 java.lang.String getDefaultView()
          get the name of default view
 java.lang.String getName()
          get the name of this Class
 boolean isControlable(View v)
          this function says to the manager if the view can be controled
 void listenToView()
          this function put the listener to the view of this controler
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
 
Methods inherited from class ter.SDK.controler.DetailControler
getType, getView
 
Methods inherited from class ter.SDK.controler.AbstractControler
create, getManager, setManager
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

file

public java.io.File file
Constructor Detail

GraphDetailControler

public GraphDetailControler()
empty constructor


GraphDetailControler

public GraphDetailControler(Manager m,
                            View gdv)
construtor with 2 parameters

Parameters:
m - the manager of this controler
gdv - the view assiociated to this controler
Method Detail

getName

public java.lang.String getName()
get the name of this Class

Specified by:
getName in interface Plugin
Returns:
the name of this Class

listenToView

public void listenToView()
this function put the listener to the view of this controler

Specified by:
listenToView in interface Controler

createJPopupMenu

public void createJPopupMenu()
this function create the JPopupMenu of the view


isControlable

public boolean isControlable(View v)
this function says to the manager if the view can be controled

Specified by:
isControlable in interface Controler
Parameters:
v - the view
Returns:
true if the view can be controled

getDefaultView

public java.lang.String getDefaultView()
get the name of default view

Specified by:
getDefaultView in interface Controler
Returns:
the name of default view

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Specified by:
mouseExited in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

changeView

public void changeView(javax.swing.JCheckBox jcb)