Main Page | Packages | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ikayaki.gui.ProjectComponent Class Reference

Inheritance diagram for ikayaki.gui.ProjectComponent:

Inheritance graph
[legend]
Collaboration diagram for ikayaki.gui.ProjectComponent:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ProjectComponent ()
Project getProject ()
void setProject (Project project)
Frame getParentFrame ()
void projectUpdated (ProjectEvent event)
void measurementUpdated (MeasurementEvent event)

Private Attributes

Project project

Detailed Description

Common superclass for components which use a Project and listen to MeasurementEvents and ProjectEvents.

Author:
Esko Luontola

Definition at line 35 of file ProjectComponent.java.


Constructor & Destructor Documentation

ikayaki.gui.ProjectComponent.ProjectComponent  ) 
 

Initializes this ProjectComponent with no project.

Definition at line 45 of file ProjectComponent.java.

References ikayaki.gui.null, and ikayaki.gui.ProjectComponent.project.


Member Function Documentation

Frame ikayaki.gui.ProjectComponent.getParentFrame  ) 
 

Returns the parent Frame of this component.

Returns:
the parent frame, or null if this component had not been laid in a frame.

Definition at line 80 of file ProjectComponent.java.

References ikayaki.gui.null.

Referenced by ikayaki.gui.MainViewPanel.MainViewPanel(), and ikayaki.gui.MeasurementGraphsPanel.MeasurementGraphsPanel().

Project ikayaki.gui.ProjectComponent.getProject  ) 
 

Returns the active project, or null if no project is active.

Reimplemented in ikayaki.gui.MainViewPanel.

Definition at line 53 of file ProjectComponent.java.

References ikayaki.gui.ProjectComponent.project.

Referenced by ikayaki.gui.MeasurementControlsPanel.MeasurementControlsPanel(), ikayaki.gui.ProjectInformationPanel.saveParameters(), and ikayaki.gui.ProjectInformationPanel.saveProperties().

void ikayaki.gui.ProjectComponent.measurementUpdated MeasurementEvent  event  ) 
 

Does nothing; subclasses override this if they want to listen MeasurementEvents.

Parameters:
event MeasurementEvent received.

Implements ikayaki.MeasurementListener.

Reimplemented in ikayaki.gui.MeasurementControlsPanel, ikayaki.gui.MeasurementDetailsPanel, ikayaki.gui.MeasurementGraphsPanel, and ikayaki.gui.MeasurementSequencePanel.

Definition at line 106 of file ProjectComponent.java.

void ikayaki.gui.ProjectComponent.projectUpdated ProjectEvent  event  ) 
 

Does nothing; subclasses override this if they want to listen ProjectEvents.

Parameters:
event ProjectEvent received.

Implements ikayaki.ProjectListener.

Reimplemented in ikayaki.gui.MainViewPanel, ikayaki.gui.MeasurementControlsPanel, ikayaki.gui.MeasurementGraphsPanel, and ikayaki.gui.MeasurementSequencePanel.

Definition at line 97 of file ProjectComponent.java.

void ikayaki.gui.ProjectComponent.setProject Project  project  ) 
 

Sets the project for this ProjectComponent. Unregisters MeasurementListener and ProjectListener from the old project, and registers them to the new project.

Parameters:
project new active project, or null to make no project active.

Reimplemented in ikayaki.gui.CalibrationPanel, ikayaki.gui.MainViewPanel, ikayaki.gui.MeasurementControlsPanel, ikayaki.gui.MeasurementDetailsPanel, ikayaki.gui.MeasurementGraphsPanel, ikayaki.gui.ProjectExplorerPanel, and ikayaki.gui.ProjectInformationPanel.

Definition at line 63 of file ProjectComponent.java.

References ikayaki.Project.addMeasurementListener(), ikayaki.Project.addProjectListener(), ikayaki.gui.null, ikayaki.gui.project, ikayaki.Project.removeMeasurementListener(), and ikayaki.Project.removeProjectListener().

Here is the call graph for this function:


Member Data Documentation

Project ikayaki.gui.ProjectComponent.project [private]
 

The active project.

Reimplemented in ikayaki.gui.MainViewPanel.

Definition at line 40 of file ProjectComponent.java.

Referenced by ikayaki.gui.ProjectComponent.getProject(), and ikayaki.gui.ProjectComponent.ProjectComponent().


The documentation for this class was generated from the following file:
Generated on Fri May 6 16:01:07 2005 for Squid by  doxygen 1.4.1