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
-
HORIZONTAL
- The horizontal Canvas variable.
-
rectLen
-
-
VERTICAL
- The vertical Canvas variable.
-
xLen
-
-
yLen
-
-
JHVVdataRangeCanvas(JHVVdataFrame, int)
- new class constructor
-
init()
- Initialize the canvas by default
-
init(int)
- Initialize the canvas
-
mouseClicked(MouseEvent)
-
-
mouseEntered(MouseEvent)
-
-
mouseExited(MouseEvent)
-
-
mousePressed(MouseEvent)
-
-
mouseReleased(MouseEvent)
-
-
paint(Graphics)
- draw anHDF title responding to the spreadsheet
-
setFont(Font)
-
Sets the font of the component.
-
update(Graphics)
- Updates the component.
HORIZONTAL
public static final int HORIZONTAL
- The horizontal Canvas variable.
VERTICAL
public static final int VERTICAL
- The vertical Canvas variable.
rectLen
public int rectLen
xLen
public int xLen
yLen
public int yLen
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
init
public void init(int len)
- Initialize the canvas
- Parameters:
- len - the canvas width or length
init
public void init()
- Initialize the canvas by default
setFont
public synchronized void setFont(Font f)
- Sets the font of the component.
- Parameters:
- f - the font
- Overrides:
- setFont in class Component
paint
public synchronized void paint(Graphics g)
- draw anHDF title responding to the spreadsheet
- Overrides:
- paint in class Canvas
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
mousePressed
public void mousePressed(MouseEvent me)
mouseEntered
public void mouseEntered(MouseEvent me)
mouseExited
public void mouseExited(MouseEvent me)
mouseClicked
public void mouseClicked(MouseEvent me)
mouseReleased
public void mouseReleased(MouseEvent me)
All Packages Class Hierarchy This Package Previous Next Index