|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.canvas.CanvasLayer
public abstract class CanvasLayer
A canvas layer is a single layer that lives within a CanvasPane. This is an abstract class -- concrete subclasses provide facilities for drawing graphics or handling events.
Yellow |
Field Summary | |
---|---|
(package private) CanvasPane |
_containingPane
The pane containing this layer. |
Constructor Summary | |
---|---|
CanvasLayer()
Create a new layer that is not in a pane. |
|
CanvasLayer(CanvasPane pane)
Create a new layer within the given pane. |
Method Summary | |
---|---|
CanvasPane |
getCanvasPane()
Get the pane containing this layer. |
java.awt.geom.Rectangle2D |
getLayerBounds()
Get the bounds of the shapes draw in this layer. |
CanvasComponent |
getParent()
Get the parent component, or null if there isn't one. |
java.lang.String |
getToolTipText(LayerEvent e)
Get the toolTipText for the point in the given MouseEvent. |
TransformContext |
getTransformContext()
Return the transform context of the parent pane, if there is one. |
void |
repaint()
Schedule a repaint of this layer. |
void |
repaint(DamageRegion d)
Accept notification that a repaint has occurred somewhere in this layer. |
void |
setParent(CanvasComponent parent)
Set the parent component of this layer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
CanvasPane _containingPane
Constructor Detail |
---|
public CanvasLayer()
public CanvasLayer(CanvasPane pane)
Method Detail |
---|
public final CanvasPane getCanvasPane()
public java.awt.geom.Rectangle2D getLayerBounds()
public final CanvasComponent getParent()
getParent
in interface CanvasComponent
public java.lang.String getToolTipText(LayerEvent e)
public final TransformContext getTransformContext()
getTransformContext
in interface CanvasComponent
public void repaint()
repaint
in interface CanvasComponent
public void repaint(DamageRegion d)
repaint
in interface CanvasComponent
public final void setParent(CanvasComponent parent)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |