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.
-
linearFitPlot(double[], URL)
-
-
handleEvent(Event)
- Event handler:
Stops iteration on minimising and handles close window event
(May fail under Windows95)
-
mouseDown(Event, int, int)
-
-
setAxisStrings(String, String)
- Sets axis labels
-
setInterceptString(String)
- Sets text to go with intercept result
-
setShowIntercept(boolean)
-
-
setShowSlope(boolean)
-
-
setSlopeString(String)
- Sets text to go with slope result
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
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
mouseDown
public boolean mouseDown(Event evt,
int x,
int y)
- Overrides:
- mouseDown in class Component
setSlopeString
public void setSlopeString(String text)
- Sets text to go with slope result
- Parameters:
- text - text to display
setInterceptString
public void setInterceptString(String text)
- Sets text to go with intercept result
- Parameters:
- text - text to display
setAxisStrings
public void setAxisStrings(String xText,
String yText)
- Sets axis labels
- Parameters:
- xText - x-axis label
- yText - y-axis label
setShowSlope
public void setShowSlope(boolean yesno)
- Parameters:
- yesno - true to display slope in answer
setShowIntercept
public void setShowIntercept(boolean yesno)
- Parameters:
- yesno - true to display intercept in answer
All Packages Class Hierarchy This Package Previous Next Index