net.sourceforge.webcompmath.draw.beans
Class WCMVectorFieldBean

java.lang.Object
  extended by java.awt.Component
      extended by net.sourceforge.webcompmath.draw.Drawable
          extended by net.sourceforge.webcompmath.draw.VectorField
              extended by net.sourceforge.webcompmath.draw.beans.WCMVectorFieldBean
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, Computable

public class WCMVectorFieldBean
extends VectorField

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.VectorField
ARROWS, CLAMPED_VECTORS, LINES, lineWidth, SCALED_LINES, SCALED_VECTORS
 
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
WCMVectorFieldBean()
          Default constructor
 
Method Summary
 java.awt.Color getColor()
          Get the color.
 int getPixelSpacing()
          Get the pixel spacing.
 int getStyle()
          Get the style.
 Function getXFunction()
          Get the x function.
 Function getYFunction()
          Get the y function.
 void setColor(java.awt.Color c)
          Set the color.
 void setPixelSpacing(int spacing)
          Set the pixel spacing.
 void setStyle(int style)
          set the style.
 void setXFunction(Function dx)
          Set the x function.
 void setYFunction(Function dy)
          Set the y function.
 
Methods inherited from class net.sourceforge.webcompmath.draw.VectorField
compute, draw, getLineWidth, getRealXSpacing, getRealYSpacing, setFunctions, setLineWidth, setRealXSpacing, setRealYSpacing
 
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

WCMVectorFieldBean

public WCMVectorFieldBean()
Default constructor

Method Detail

getXFunction

public Function getXFunction()
Get the x function.

Overrides:
getXFunction in class VectorField
Returns:
function that gives the x-component of the vector field
See Also:
VectorField.getXFunction()

setXFunction

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

Overrides:
setXFunction in class VectorField
Parameters:
dx - function that gives the x-component of the vector field
See Also:
VectorField.setXFunction(net.sourceforge.webcompmath.data.Function)

getYFunction

public Function getYFunction()
Get the y function.

Overrides:
getYFunction in class VectorField
Returns:
function that gives the y-component of the vector field
See Also:
VectorField.getYFunction()

setYFunction

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

Overrides:
setYFunction in class VectorField
Parameters:
dy - function that gives the y-component of the vector field
See Also:
VectorField.setYFunction(net.sourceforge.webcompmath.data.Function)

getStyle

public int getStyle()
Get the style.

Overrides:
getStyle in class VectorField
Returns:
ARROWS, LINES, CLAMPED_VECTORS, SCALED_LINES, or SCALED_VECTORS
See Also:
VectorField.getStyle()

setStyle

public void setStyle(int style)
set the style.

Overrides:
setStyle in class VectorField
Parameters:
style - vector field style constant
See Also:
VectorField.setStyle(int)

getColor

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

Overrides:
getColor in class VectorField
Returns:
field line color
See Also:
VectorField.getColor()

setColor

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

Overrides:
setColor in class VectorField
Parameters:
c - field line color
See Also:
VectorField.setColor(java.awt.Color)

getPixelSpacing

public int getPixelSpacing()
Get the pixel spacing.

Overrides:
getPixelSpacing in class VectorField
Returns:
pixel spacing
See Also:
VectorField.getPixelSpacing()

setPixelSpacing

public void setPixelSpacing(int spacing)
Set the pixel spacing.

Overrides:
setPixelSpacing in class VectorField
Parameters:
spacing - pixel spacing
See Also:
VectorField.setPixelSpacing(int)