net.sourceforge.webcompmath.draw.beans
Class WCMParametricCurveBean

java.lang.Object
  extended by java.awt.Component
      extended by net.sourceforge.webcompmath.draw.Drawable
          extended by net.sourceforge.webcompmath.draw.ParametricCurve
              extended by net.sourceforge.webcompmath.draw.beans.WCMParametricCurveBean
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, Computable
Direct Known Subclasses:
WCMPolarCurveBean

public class WCMParametricCurveBean
extends ParametricCurve

Author:
Tom Downey
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
 
Fields inherited from class net.sourceforge.webcompmath.draw.ParametricCurve
DASHED_STYLE, lineStyle, lineWidth, SOLID_STYLE
 
Fields inherited from class net.sourceforge.webcompmath.draw.Drawable
canvas, coords
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
WCMParametricCurveBean()
          Default constructor
 
Method Summary
 java.awt.Color getColor()
          Get the color of the graph.
 Value getIntervals()
          Get the number of intervals.
 int getLineStyle()
          Get the line style
 int getLineWidth()
          Get the line width
 Value getTMax()
          Get t max.
 Value getTMin()
          Get t min.
 Function getXFunction()
          Get the x function.
 Function getYFunction()
          Get the y function.
 void setColor(java.awt.Color c)
          Set the color of the graph.
 void setIntervals(Value intervalCount)
          Set the number of intervals.
 void setLineStyle(int lineStyle)
          Set the line style
 void setLineWidth(int width)
          Set the line width
 void setTMax(Value tmax)
          Set t max.
 void setTMin(Value tmin)
          Set t min.
 void setXFunction(Function x)
          Set the x function.
 void setYFunction(Function y)
          Set the y function.
 
Methods inherited from class net.sourceforge.webcompmath.draw.ParametricCurve
compute, draw, setFunctions, setLimits
 
Methods inherited from class net.sourceforge.webcompmath.draw.Drawable
getVisible, needsRedraw, setOwnerData, setVisible
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WCMParametricCurveBean

public WCMParametricCurveBean()
Default constructor

Method Detail

getColor

public java.awt.Color getColor()
Get the color of the graph.

Overrides:
getColor in class ParametricCurve
Returns:
graph color
See Also:
ParametricCurve.getColor()

setColor

public void setColor(java.awt.Color c)
Set the color of the graph.

Overrides:
setColor in class ParametricCurve
Parameters:
c - graph color
See Also:
ParametricCurve.setColor(java.awt.Color)

getXFunction

public Function getXFunction()
Get the x function.

Overrides:
getXFunction in class ParametricCurve
Returns:
function defining the x coord
See Also:
ParametricCurve.getXFunction()

setXFunction

public void setXFunction(Function x)
Set the x function.

Overrides:
setXFunction in class ParametricCurve
Parameters:
x - function defining the x coord
See Also:
ParametricCurve.setXFunction(net.sourceforge.webcompmath.data.Function)

getYFunction

public Function getYFunction()
Get the y function.

Overrides:
getYFunction in class ParametricCurve
Returns:
function defining the y coord
See Also:
ParametricCurve.getYFunction()

setYFunction

public void setYFunction(Function y)
Set the y function.

Overrides:
setYFunction in class ParametricCurve
Parameters:
y - function defining the yfunction defining the x coord coord
See Also:
ParametricCurve.setYFunction(net.sourceforge.webcompmath.data.Function)

getIntervals

public Value getIntervals()
Get the number of intervals.

Overrides:
getIntervals in class ParametricCurve
Returns:
number of subintervals
See Also:
ParametricCurve.getIntervals()

setIntervals

public void setIntervals(Value intervalCount)
Set the number of intervals.

Overrides:
setIntervals in class ParametricCurve
Parameters:
intervalCount - number of subintervals
See Also:
ParametricCurve.setIntervals(net.sourceforge.webcompmath.data.Value)

getTMax

public Value getTMax()
Get t max.

Overrides:
getTMax in class ParametricCurve
Returns:
max value of parameter
See Also:
ParametricCurve.getTMax()

setTMax

public void setTMax(Value tmax)
Set t max.

Overrides:
setTMax in class ParametricCurve
Parameters:
tmax - max value of parameter
See Also:
ParametricCurve.setTMax(net.sourceforge.webcompmath.data.Value)

getTMin

public Value getTMin()
Get t min.

Overrides:
getTMin in class ParametricCurve
Returns:
min value of parameter
See Also:
ParametricCurve.getTMin()

setTMin

public void setTMin(Value tmin)
Set t min.

Overrides:
setTMin in class ParametricCurve
Parameters:
tmin - min value of parameter
See Also:
ParametricCurve.setTMin(net.sourceforge.webcompmath.data.Value)

getLineStyle

public int getLineStyle()
Get the line style

Overrides:
getLineStyle in class ParametricCurve
Returns:
Returns the lineStyle.
See Also:
ParametricCurve.getLineStyle()

getLineWidth

public int getLineWidth()
Get the line width

Overrides:
getLineWidth in class ParametricCurve
Returns:
line width
See Also:
ParametricCurve.getLineWidth()

setLineStyle

public void setLineStyle(int lineStyle)
Set the line style

Overrides:
setLineStyle in class ParametricCurve
Parameters:
lineStyle - The lineStyle to set.
See Also:
ParametricCurve.setLineStyle(int)

setLineWidth

public void setLineWidth(int width)
Set the line width

Overrides:
setLineWidth in class ParametricCurve
Parameters:
width - line width
See Also:
ParametricCurve.setLineWidth(int)