fractsplinewavelets
Class PlotXY

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Canvas
              |
              +--fractsplinewavelets.PlotXY
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class PlotXY
extends java.awt.Canvas


Plugin of ImageJ:
Fractional Spline Wavelet

Authors:
Daniel Sage daniel.sage@epfl.ch
Swiss Federal Institute of Technology Lausanne, Biomedical Imaging Group, CH-1015 Lausanne, Switzerland, http://bigwww.epfl.ch

Version:
24 January 2002

Copyright
Copyright © 2002, Swiss Federal Institute of Technology, Lausanne, Switzerland, (EPFL)


Purpose of the class:
Display a plot XY.

See Also:
Serialized Form

Inner classes inherited from class java.awt.Canvas
java.awt.Canvas.AccessibleAWTCanvas
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent
 
Field Summary
static int AUTOSCALING
           
static int FIXSCALING
           
 
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
PlotXY(int sizeX, int sizeY)
          The constructor only creates an empty space of specified dimensions.
 
Method Summary
 void paint(java.awt.Graphics g)
          Overload the update paint.
 void setColor(java.awt.Color colorCurve, java.awt.Color colorAxis)
          Set the color curve.
 void setScalingModeOnX(int modeScalingX)
          Set the scaling mode on X.
 void setScalingModeOnX(int modeScalingX, double a, double b)
          Set the scaling mode on X (FIXSCALING).
 void setScalingModeOnY(int modeScalingY)
          Set the scaling mode on Y.
 void setScalingModeOnY(int modeScalingY, double a, double b)
          Set the scaling mode on Y (FIXSCALING).
 void setXY(double[] x, double[] y)
          Set the x and y vector for the curve y = f(x) and display it.
 void update(java.awt.Graphics g)
          Overload the update method.
 
Methods inherited from class java.awt.Canvas
addNotify, getAccessibleContext
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPeer, getPreferredSize, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

AUTOSCALING

public static final int AUTOSCALING

FIXSCALING

public static final int FIXSCALING
Constructor Detail

PlotXY

public PlotXY(int sizeX,
              int sizeY)
The constructor only creates an empty space of specified dimensions.
Parameters:
sizeX - Size of the canvas in X
sizeY - Size of the canvas in Y
Method Detail

setColor

public void setColor(java.awt.Color colorCurve,
                     java.awt.Color colorAxis)
Set the color curve.
Parameters:
color - Color of the curve

setScalingModeOnX

public void setScalingModeOnX(int modeScalingX)
Set the scaling mode on X. It could be AUTOSCALING meaning the curve is resample to occupied all the size or FIXSCALING meaning the original data are scaled ass (a*(x-b)) .
Parameters:
modeScalingX - Scaling mode on X axis

setScalingModeOnX

public void setScalingModeOnX(int modeScalingX,
                              double a,
                              double b)
Set the scaling mode on X (FIXSCALING). It should be FIXSCALING meaning the curve is resample to xplot <- a * (x - b) where x are the original data.
Parameters:
modeScalingX - Scaling mode on X axis
a - Multiplying factor
b - Shift factor

setScalingModeOnY

public void setScalingModeOnY(int modeScalingY)
Set the scaling mode on Y. It could be AUTOSCALING meaning the curve is resample to occupied all the size or meaning the original data are scaled ass (a*(x-b)) .
Parameters:
modeScalingY - Scaling mode on Y axis

setScalingModeOnY

public void setScalingModeOnY(int modeScalingY,
                              double a,
                              double b)
Set the scaling mode on Y (FIXSCALING). It should be FIXSCALING meaning the curve is resample to yplot <- a * (y - b) where y are the original data.
Parameters:
modeScalingX - Scaling mode on X axis
a - Multiplying factor
b - Shift factor

setXY

public void setXY(double[] x,
                  double[] y)
Set the x and y vector for the curve y = f(x) and display it. y[] should have the same length than the x[] vector.
Parameters:
x - data on X axis
y - data on Y axis

update

public void update(java.awt.Graphics g)
Overload the update method.
Overrides:
update in class java.awt.Component

paint

public void paint(java.awt.Graphics g)
Overload the update paint.
Overrides:
paint in class java.awt.Canvas