All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ncsa.hdf.jhv.JHVVdataRangeCanvas

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----ncsa.hdf.jhv.JHVVdataRangeCanvas

public class JHVVdataRangeCanvas
extends Canvas
implements MouseListener
This class will create a new canvas to display an HDF field name & records


Variable Index

 o HORIZONTAL
The horizontal Canvas variable.
 o rectLen
 o VERTICAL
The vertical Canvas variable.
 o xLen
 o yLen

Constructor Index

 o JHVVdataRangeCanvas(JHVVdataFrame, int)
new class constructor

Method Index

 o init()
Initialize the canvas by default
 o init(int)
Initialize the canvas
 o mouseClicked(MouseEvent)
 o mouseEntered(MouseEvent)
 o mouseExited(MouseEvent)
 o mousePressed(MouseEvent)
 o mouseReleased(MouseEvent)
 o paint(Graphics)
draw anHDF title responding to the spreadsheet
 o setFont(Font)
Sets the font of the component.
 o update(Graphics)
Updates the component.

Variables

 o HORIZONTAL
 public static final int HORIZONTAL
The horizontal Canvas variable.

 o VERTICAL
 public static final int VERTICAL
The vertical Canvas variable.

 o rectLen
 public int rectLen
 o xLen
 public int xLen
 o yLen
 public int yLen

Constructors

 o JHVVdataRangeCanvas
 public JHVVdataRangeCanvas(JHVVdataFrame frame,
                            int direction)
new class constructor

Parameters:
frame - the spreadsheet frame
direction - the variable to specify the canvas associated with spreadsheet

Methods

 o init
 public void init(int len)
Initialize the canvas

Parameters:
len - the canvas width or length
 o init
 public void init()
Initialize the canvas by default

 o setFont
 public synchronized void setFont(Font f)
Sets the font of the component.

Parameters:
f - the font
Overrides:
setFont in class Component
 o paint
 public synchronized void paint(Graphics g)
draw anHDF title responding to the spreadsheet

Overrides:
paint in class Canvas
 o update
 public void update(Graphics g)
Updates the component. This method is called in response to a call to repaint. You can assume that the background is not cleared.

Parameters:
g - the specified Graphics window
Overrides:
update in class Component
See Also:
update
 o mousePressed
 public void mousePressed(MouseEvent me)
 o mouseEntered
 public void mouseEntered(MouseEvent me)
 o mouseExited
 public void mouseExited(MouseEvent me)
 o mouseClicked
 public void mouseClicked(MouseEvent me)
 o mouseReleased
 public void mouseReleased(MouseEvent me)

All Packages  Class Hierarchy  This Package  Previous  Next  Index