Class EDU.auburn.VGJ.gui.OffsetCanvas
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class EDU.auburn.VGJ.gui.OffsetCanvas

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----EDU.auburn.VGJ.gui.OffsetCanvas

public class OffsetCanvas
extends Canvas
This abstract class is used inside a ScrolledPanel, and implements the required functionality to communicate with it.

Here is the source.
See Also:
ScrolledPanel

Variable Index

 o LABEL
Event id for changing the label above the OffsetCanvas.
 o RESIZE
Event id for size change.

Constructor Index

 o OffsetCanvas()

Method Index

 o contentsSize()
Return the size of the contents.
 o getOffset()
 o setOffsets(double, double, boolean)
Adjust the offset of the contents of the canvas.

Variables

 o RESIZE
  public static int RESIZE
Event id for size change. Subclasses must post an event with this id when their contents or windows are resized.
 o LABEL
  public static int LABEL
Event id for changing the label above the OffsetCanvas. The arg field of the event must contain the string.

Constructors

 o OffsetCanvas
  public OffsetCanvas()

Methods

 o setOffsets
  public abstract void setOffsets(double xoffset,
                                  double yoffset,
                                  boolean redraw)
Adjust the offset of the contents of the canvas. These must have the following meaning: screen position + offset = contents position. e.g. if xoffset is 10, contents starts 10 pixels to the left of the screen.
Parameters:
xoffset - horizontal offset
yoffset - vertical offset
 o contentsSize
  public abstract DDimension contentsSize()
Return the size of the contents.
 o getOffset
  public abstract DPoint getOffset()

All Packages  Class Hierarchy  This Package  Previous  Next  Index