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

ikayaki.gui.IntensityPlot Class Reference

Inheritance diagram for ikayaki.gui.IntensityPlot:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

void add (MeasurementStep step)
void reset ()
int getNumMeasurements ()
void render (int w, int h, Graphics2D g2)

Private Attributes

Vector< Point2D > points = new Vector<Point2D>()
Project project = null

Detailed Description

Implements intensity graph plot.

Author:
Aki Sysmäläinen

Definition at line 38 of file IntensityPlot.java.


Member Function Documentation

void ikayaki.gui.IntensityPlot.add MeasurementStep  step  ) 
 

Adds one measurement step to this graph and converts the data to x- and y- coordinates

Implements ikayaki.gui.Plot.

Definition at line 50 of file IntensityPlot.java.

References ikayaki.MeasurementStep.getProject(), ikayaki.MeasurementStep.getStepValue(), ikayaki.Project.getValue(), ikayaki.gui.null, ikayaki.gui.IntensityPlot.points, ikayaki.gui.IntensityPlot.project, and ikayaki.gui.value.

Here is the call graph for this function:

int ikayaki.gui.IntensityPlot.getNumMeasurements  ) 
 

Returns the number of points in this graph.

Returns:
the number of points in this graph

Implements ikayaki.gui.Plot.

Definition at line 73 of file IntensityPlot.java.

References ikayaki.gui.IntensityPlot.points.

void ikayaki.gui.IntensityPlot.render int  w,
int  h,
Graphics2D  g2
[virtual]
 

Draws the contents of the plot

Parameters:
w Width of the drawable area
h Height of the drawable area
g2 Graphics context

Implements ikayaki.gui.AbstractPlot.

Definition at line 84 of file IntensityPlot.java.

References ikayaki.gui.IntensityPlot.points, and ikayaki.gui.IntensityPlot.project.

void ikayaki.gui.IntensityPlot.reset  ) 
 

Resets the graph data and repaints its contents.

Implements ikayaki.gui.Plot.

Definition at line 63 of file IntensityPlot.java.

References ikayaki.gui.IntensityPlot.points.


Member Data Documentation

Vector<Point2D> ikayaki.gui.IntensityPlot.points = new Vector<Point2D>() [private]
 

Contains all the data that is shown in this graph.

Definition at line 43 of file IntensityPlot.java.

Referenced by ikayaki.gui.IntensityPlot.add(), ikayaki.gui.IntensityPlot.getNumMeasurements(), ikayaki.gui.IntensityPlot.render(), and ikayaki.gui.IntensityPlot.reset().

Project ikayaki.gui.IntensityPlot.project = null [private]
 

Definition at line 45 of file IntensityPlot.java.

Referenced by ikayaki.gui.IntensityPlot.add(), and ikayaki.gui.IntensityPlot.render().


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