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

ikayaki.MeasurementEvent Class Reference

Collaboration diagram for ikayaki.MeasurementEvent:

Collaboration graph
[legend]
List of all members.

Public Types

enum  Type {
  STEP_START, STEP_END, STEP_ABORTED, HANDLER_MOVE,
  HANDLER_ROTATE, HANDLER_STOP, DEMAGNETIZE_START, DEMAGNETIZE_END,
  VALUE_MEASURED
}

Public Member Functions

 MeasurementEvent (Project project, MeasurementStep step, Type type)
Project getProject ()
MeasurementStep getStep ()
Type getType ()

Private Attributes

Project project
MeasurementStep step
Type type

Detailed Description

MeasurementEvent is used to notify listeners about the stages of an ongoing measurement.

Author:
Esko Luontola

Definition at line 32 of file MeasurementEvent.java.


Member Enumeration Documentation

enum ikayaki::MeasurementEvent::Type
 

The type of a measurement event.

Enumeration values:
STEP_START 
STEP_END 
STEP_ABORTED 
HANDLER_MOVE 
HANDLER_ROTATE 
HANDLER_STOP 
DEMAGNETIZE_START 
DEMAGNETIZE_END 
VALUE_MEASURED 

Definition at line 91 of file MeasurementEvent.java.


Constructor & Destructor Documentation

ikayaki.MeasurementEvent.MeasurementEvent Project  project,
MeasurementStep  step,
Type  type
 

Creates a new measurement event.

Parameters:
project the project whose measurement sent this event.
step the measurement that sent this event.
type the type of event this is.
Exceptions:
NullPointerException if project or type is null.

Definition at line 57 of file MeasurementEvent.java.


Member Function Documentation

Project ikayaki.MeasurementEvent.getProject  ) 
 

Returns the project whose measurement sent this event.

Definition at line 70 of file MeasurementEvent.java.

References ikayaki.MeasurementEvent.project.

MeasurementStep ikayaki.MeasurementEvent.getStep  ) 
 

Returns the measurement that sent this event. Can be null, if this event was sent by a manual command.

Definition at line 77 of file MeasurementEvent.java.

References ikayaki.MeasurementEvent.step.

Referenced by ikayaki.gui.MeasurementSequenceTableModel.measurementUpdated(), ikayaki.gui.MeasurementSequencePanel.measurementUpdated(), and ikayaki.gui.MeasurementDetailsPanel.measurementUpdated().

Type ikayaki.MeasurementEvent.getType  ) 
 

Returns the type of event this is.

Definition at line 84 of file MeasurementEvent.java.

References ikayaki.MeasurementEvent.type.

Referenced by ikayaki.gui.MeasurementSequenceTableModel.measurementUpdated(), ikayaki.gui.MeasurementSequencePanel.measurementUpdated(), and ikayaki.gui.MeasurementGraphsPanel.measurementUpdated().


Member Data Documentation

Project ikayaki.MeasurementEvent.project [private]
 

The project whose measurement sent this event.

Definition at line 37 of file MeasurementEvent.java.

Referenced by ikayaki.MeasurementEvent.getProject().

MeasurementStep ikayaki.MeasurementEvent.step [private]
 

The measurement that sent this event.

Definition at line 42 of file MeasurementEvent.java.

Referenced by ikayaki.MeasurementEvent.getStep().

Type ikayaki.MeasurementEvent.type [private]
 

The type of event this is.

Definition at line 47 of file MeasurementEvent.java.

Referenced by ikayaki.MeasurementEvent.getType().


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