jds.util
Class GraphMaker

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Canvas
              |
              +--jds.util.GraphMaker

public class GraphMaker
extends java.awt.Canvas
implements java.util.Observer

See Also:
Serialized Form

Field Summary
static int logx
           
static int x
           
static int xlogx
           
static int xx
           
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
GraphMaker(int thexmax, int theymax)
           
 
Method Summary
 void addGrid()
           
 void addLine(int i)
           
 void clear()
           
 void clearData(int x, int y)
           
 void drawAxis(java.awt.Color c)
           
 void drawGrid(java.awt.Color c)
           
 void drawLine(int i, java.awt.Color c)
           
 Reporter getReporter(java.lang.String name)
           
 void makeTable()
           
 void paint(java.awt.Graphics g)
           
 void plotData(java.awt.Color c, int[] x, int[] y)
           
 void plotData(int[] x, int[] y)
           
 void plotData(int x, int y)
           
 void setXCoeff(int newval)
           
 void setYCoeff(int newval)
           
 void setYMax(int newval)
           
 void update(java.util.Observable o, java.lang.Object arg)
           
 
Methods inherited from class java.awt.Canvas
addNotify
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, 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, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, remove, removeComponentListener, removeFocusListener, 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, update, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

logx

public static final int logx

x

public static final int x

xlogx

public static final int xlogx

xx

public static final int xx
Constructor Detail

GraphMaker

public GraphMaker(int thexmax,
                  int theymax)
Method Detail

setYMax

public void setYMax(int newval)

setXCoeff

public void setXCoeff(int newval)

setYCoeff

public void setYCoeff(int newval)

update

public void update(java.util.Observable o,
                   java.lang.Object arg)
Specified by:
update in interface java.util.Observer

drawAxis

public void drawAxis(java.awt.Color c)

addGrid

public void addGrid()

drawGrid

public void drawGrid(java.awt.Color c)

plotData

public void plotData(int x,
                     int y)

clearData

public void clearData(int x,
                      int y)

plotData

public void plotData(int[] x,
                     int[] y)

plotData

public void plotData(java.awt.Color c,
                     int[] x,
                     int[] y)

clear

public void clear()

paint

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

getReporter

public Reporter getReporter(java.lang.String name)

makeTable

public void makeTable()

addLine

public void addLine(int i)

drawLine

public void drawLine(int i,
                     java.awt.Color c)