All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ChaosDemos.linearFitPlot

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----ChaosDemos.linearFitPlot

public class linearFitPlot
extends Frame
Plots data in separate frame and allows linear fit for range between two points selected with the mouse.


Constructor Index

 o linearFitPlot(double[], URL)

Method Index

 o handleEvent(Event)
Event handler: Stops iteration on minimising and handles close window event
(May fail under Windows95)
 o mouseDown(Event, int, int)
 o setAxisStrings(String, String)
Sets axis labels
 o setInterceptString(String)
Sets text to go with intercept result
 o setShowIntercept(boolean)
 o setShowSlope(boolean)
 o setSlopeString(String)
Sets text to go with slope result

Constructors

 o linearFitPlot
 public linearFitPlot(double in_data[],
                      URL in_documentBase)
Parameters:
in_data - array of data in x,y pairs
in_documentBase - URL giving location of marler.txt file for markers

Methods

 o handleEvent
 public boolean handleEvent(Event evt)
Event handler: Stops iteration on minimising and handles close window event
(May fail under Windows95)

Overrides:
handleEvent in class Component
 o mouseDown
 public boolean mouseDown(Event evt,
                          int x,
                          int y)
Overrides:
mouseDown in class Component
 o setSlopeString
 public void setSlopeString(String text)
Sets text to go with slope result

Parameters:
text - text to display
 o setInterceptString
 public void setInterceptString(String text)
Sets text to go with intercept result

Parameters:
text - text to display
 o setAxisStrings
 public void setAxisStrings(String xText,
                            String yText)
Sets axis labels

Parameters:
xText - x-axis label
yText - y-axis label
 o setShowSlope
 public void setShowSlope(boolean yesno)
Parameters:
yesno - true to display slope in answer
 o setShowIntercept
 public void setShowIntercept(boolean yesno)
Parameters:
yesno - true to display intercept in answer

All Packages  Class Hierarchy  This Package  Previous  Next  Index