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.
-
ScrollingPanel()
- Create a separate panel based on the image canvas.
-
ScrollingPanel(Image)
- Create a separate panel based on the image canvas.
-
ScrollingPanel(int, int)
- Create a separate panel based on the image canvas.
-
action(Event, Object)
- Called if an action occurs in the Component
-
handleEvent(Event)
- Handles the event.
-
imageUpdate(Image, int, int, int, int, int)
-
-
minimumSize()
-
-
preferredSize()
-
-
reshape(int, int, int, int)
-
-
resize(Dimension)
-
-
resize(int, int)
- All sizing methods are overridden as debugging aids.
-
setImage(Image)
- Set the image to be displayed on the panel.
ScrollingPanel
public ScrollingPanel(Image image)
- Create a separate panel based on the image canvas.
This panel will contain the image canvas and scrollbars
ScrollingPanel
public ScrollingPanel()
- Create a separate panel based on the image canvas.
This panel will contain the image canvas and scrollbars
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
setImage
public void setImage(Image image)
- Set the image to be displayed on the panel.
- Parameters:
- java.awt.Image - The image object to display
imageUpdate
public boolean imageUpdate(Image img,
int infoflags,
int x,
int y,
int width,
int height)
- Overrides:
- imageUpdate in class Component
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
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
resize
public void resize(int width,
int height)
- All sizing methods are overridden as debugging aids.
- Overrides:
- resize in class Component
resize
public void resize(Dimension d)
- Overrides:
- resize in class Component
reshape
public void reshape(int x,
int y,
int width,
int height)
- Overrides:
- reshape in class Component
minimumSize
public Dimension minimumSize()
- Overrides:
- minimumSize in class Container
preferredSize
public Dimension preferredSize()
- Overrides:
- preferredSize in class Container
All Packages Class Hierarchy This Package Previous Next Index