bookExamples.ch26Graphics.draw2d
Class SineFcn

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by bookExamples.ch26Graphics.draw2d.SineFcn
All Implemented Interfaces:
Fcn1, PropertyEditorFcn1, java.beans.PropertyEditor

public class SineFcn
extends java.beans.PropertyEditorSupport
implements PropertyEditorFcn1


Constructor Summary
SineFcn()
           
SineFcn(double amplitude, double dcOffset, double frequency)
           
 
Method Summary
 java.awt.Component getCustomEditor()
           
 java.awt.geom.Point2D getPoint(double t)
          Fcn of one variable that returns a locus of points
 boolean supportsCustomEditor()
          Determines whether the propertyEditor can provide a custom editor.
 void update()
           
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getAsText, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setAsText, setSource, setValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.beans.PropertyEditor
addPropertyChangeListener, getAsText, getJavaInitializationString, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setAsText, setValue
 

Constructor Detail

SineFcn

public SineFcn()

SineFcn

public SineFcn(double amplitude,
               double dcOffset,
               double frequency)
Method Detail

supportsCustomEditor

public boolean supportsCustomEditor()
Determines whether the propertyEditor can provide a custom editor.

Specified by:
supportsCustomEditor in interface java.beans.PropertyEditor
Overrides:
supportsCustomEditor in class java.beans.PropertyEditorSupport
Returns:
True if the propertyEditor can provide a custom editor.

update

public void update()

getCustomEditor

public java.awt.Component getCustomEditor()
Specified by:
getCustomEditor in interface java.beans.PropertyEditor
Overrides:
getCustomEditor in class java.beans.PropertyEditorSupport

getPoint

public java.awt.geom.Point2D getPoint(double t)
Description copied from interface: Fcn1
Fcn of one variable that returns a locus of points

Specified by:
getPoint in interface Fcn1
Parameters:
t - - ranging from 0 to 1 inclusive
Returns:
a point on the function