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
-
LABEL
- Event id for changing the label above the OffsetCanvas.
-
RESIZE
- Event id for size change.
-
OffsetCanvas()
-
-
contentsSize()
- Return the size of the contents.
-
getOffset()
-
-
setOffsets(double, double, boolean)
- Adjust the offset of the contents of the canvas.
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.
LABEL
public static int LABEL
- Event id for changing the label above the OffsetCanvas.
The arg field of the event must contain the string.
OffsetCanvas
public OffsetCanvas()
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
contentsSize
public abstract DDimension contentsSize()
- Return the size of the contents.
getOffset
public abstract DPoint getOffset()
All Packages Class Hierarchy This Package Previous Next Index