vipratech.beans.standardbeans.resources
Class VerticalChartPaper

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Canvas
              |
              +--vipratech.awt.VCanvas
                    |
                    +--vipratech.beans.standardbeans.resources.VerticalChartPaper

public class VerticalChartPaper
extends VCanvas

The VerticalChartPaper.class provides the "chart paper" to a vipratech.beans.VerticalChartRecorder.

Version:
1.03, March 11 2001
Author:
Warwick Bailey   warwick-bailey@bigfoot.com
See Also:
VerticalChartRecorder, Serialized Form

Fields inherited from class vipratech.awt.VCanvas
fm
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
VerticalChartPaper()
          Constructor
 
Method Summary
 void destroy()
          Cleans up offscreen graphics context.
 java.awt.Dimension getMinimumSize()
          Returns the minimum paper size.
 void initialize()
          Initilaises variables and off screen graphics.
 void paint(java.awt.Graphics g)
          Updates offscreen graphics and then draw these to sceen.
 void reset()
          Resets a blank sheet of chart paper.
 void setColorY1(java.awt.Color colorY1)
           
 void setColorY2(java.awt.Color colorY2)
           
 void setDataFile1(java.util.Vector dataFile1)
           
 void setDataFile2(java.util.Vector dataFile2)
           
 void setNumberOfGridLines(int numberOfGridLines)
           
 void setPause(boolean pause)
           
 void setRightMargin(int rightMargin)
           
 void setScreen(boolean screen)
           
 void setT(int t)
          Sets t.
 void setXAxisPixels(int xAxisPixels)
           
 void setXGridInterval(int xGridInterval)
           
 void setYAxisPixels(int yAxisPixels)
           
 void setYGridInterval(int yGridInterval)
           
 void update(java.awt.Graphics g)
          Overidden method.
 
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, 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, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VerticalChartPaper

public VerticalChartPaper()
Constructor
Method Detail

initialize

public final void initialize()
Initilaises variables and off screen graphics.

paint

public final void paint(java.awt.Graphics g)
Updates offscreen graphics and then draw these to sceen. The method also checks re-sizing at design time and recalculates scaling as needed.
Overrides:
paint in class java.awt.Canvas

update

public final void update(java.awt.Graphics g)
Overidden method. Reduced flicker when using double buffering animation.
Overrides:
update in class java.awt.Component

reset

public final void reset()
Resets a blank sheet of chart paper.

destroy

public final void destroy()
Cleans up offscreen graphics context.

getMinimumSize

public final java.awt.Dimension getMinimumSize()
Returns the minimum paper size. The minimum size is set to 200 x 160 pixels.
Overrides:
getMinimumSize in class java.awt.Component

setT

public final void setT(int t)
Sets t. The t variable is a counter for each pixel moved by the chart paper.

setDataFile1

public final void setDataFile1(java.util.Vector dataFile1)

setDataFile2

public final void setDataFile2(java.util.Vector dataFile2)

setNumberOfGridLines

public final void setNumberOfGridLines(int numberOfGridLines)

setRightMargin

public final void setRightMargin(int rightMargin)

setXAxisPixels

public final void setXAxisPixels(int xAxisPixels)

setYAxisPixels

public final void setYAxisPixels(int yAxisPixels)

setXGridInterval

public final void setXGridInterval(int xGridInterval)

setYGridInterval

public final void setYGridInterval(int yGridInterval)

setScreen

public final void setScreen(boolean screen)

setPause

public final void setPause(boolean pause)

setColorY1

public void setColorY1(java.awt.Color colorY1)

setColorY2

public void setColorY2(java.awt.Color colorY2)

dathe@chemie.uni-leipzig.de"

http://leipzig.vernetztes-studium.de