All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ncsa.hdf.awt.ScrollingPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----ncsa.hdf.awt.ScrollingPanel

public class ScrollingPanel
extends Panel
implements AdjustmentListener
A panel containing a scrolling image canvas and scrollbars.


Constructor Index

 o ScrollingPanel()
Create a separate panel based on the image canvas.
 o ScrollingPanel(Image)
Create a separate panel based on the image canvas.
 o ScrollingPanel(int, int)
Create a separate panel based on the image canvas.

Method Index

 o adjustmentValueChanged(AdjustmentEvent)
 o getMinimumSize()
 o getPreferredSize()
 o imageUpdate(Image, int, int, int, int, int)
 o setBounds(int, int, int, int)
 o setImage(Image)
Set the image to be displayed on the panel.
 o setImage(Image, int, int)
Set the image to be displayed on the panel by provided image size

 o setImageSize(float)
Set the image size
 o setSize(Dimension)
 o setSize(int, int)
All sizing methods are overridden as debugging aids.

Constructors

 o ScrollingPanel
 public ScrollingPanel(Image image)
Create a separate panel based on the image canvas. This panel will contain the image canvas and scrollbars

 o ScrollingPanel
 public ScrollingPanel()
Create a separate panel based on the image canvas. This panel will contain the image canvas and scrollbars

 o ScrollingPanel
 public ScrollingPanel(int width,
                       int height)
Create a separate panel based on the image canvas. This panel will contain the image canvas and scrollbars

Methods

 o setImage
 public void setImage(Image image)
Set the image to be displayed on the panel.

Parameters:
java.awt.Image - The image object to display
 o setImage
 public void setImage(Image image,
                      int w,
                      int h)
Set the image to be displayed on the panel by provided image size

Parameters:
java.awt.Image - The image object to display
 o setImageSize
 public void setImageSize(float factor)
Set the image size

 o imageUpdate
 public boolean imageUpdate(Image img,
                            int infoflags,
                            int x,
                            int y,
                            int width,
                            int height)
Overrides:
imageUpdate in class Component
 o adjustmentValueChanged
 public void adjustmentValueChanged(AdjustmentEvent e)
 o setSize
 public void setSize(int width,
                     int height)
All sizing methods are overridden as debugging aids.

Overrides:
setSize in class Component
 o setSize
 public void setSize(Dimension d)
Overrides:
setSize in class Component
 o setBounds
 public void setBounds(int x,
                       int y,
                       int width,
                       int height)
Overrides:
setBounds in class Component
 o getMinimumSize
 public Dimension getMinimumSize()
Overrides:
getMinimumSize in class Container
 o getPreferredSize
 public Dimension getPreferredSize()
Overrides:
getPreferredSize in class Container

All Packages  Class Hierarchy  This Package  Previous  Next  Index