Class ncsa.horizon.awt.ScrollingPanel
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ncsa.horizon.awt.ScrollingPanel

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

public class ScrollingPanel
extends Panel
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 action(Event, Object)
Called if an action occurs in the Component
 o handleEvent(Event)
Handles the event.
 o imageUpdate(Image, int, int, int, int, int)
 o minimumSize()
 o preferredSize()
 o reshape(int, int, int, int)
 o resize(Dimension)
 o resize(int, int)
All sizing methods are overridden as debugging aids.
 o setImage(Image)
Set the image to be displayed on the panel.

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 imageUpdate
  public boolean imageUpdate(Image img,
                             int infoflags,
                             int x,
                             int y,
                             int width,
                             int height)
Overrides:
imageUpdate in class Component
 o handleEvent
  public boolean handleEvent(Event evt)
Handles the event. Returns true if the event is handled and should not be passed to the parent of this component. The default event handler calls some helper methods to make life easier on the programmer.
Parameters:
evt - the event
Overrides:
handleEvent in class Component
See Also:
handleEvent
 o action
  public boolean action(Event evt,
                        Object arg)
Called if an action occurs in the Component
Parameters:
evt - the event
arg - the action that's occuring
Overrides:
action in class Component
See Also:
action
 o resize
  public void resize(int width,
                     int height)
All sizing methods are overridden as debugging aids.
Overrides:
resize in class Component
 o resize
  public void resize(Dimension d)
Overrides:
resize in class Component
 o reshape
  public void reshape(int x,
                      int y,
                      int width,
                      int height)
Overrides:
reshape in class Component
 o minimumSize
  public Dimension minimumSize()
Overrides:
minimumSize in class Container
 o preferredSize
  public Dimension preferredSize()
Overrides:
preferredSize in class Container

All Packages  Class Hierarchy  This Package  Previous  Next  Index