public abstract class CanvasLayer extends Object implements CanvasComponent
Constructor and Description |
---|
CanvasLayer()
Create a new layer that is not in a pane.
|
CanvasLayer(CanvasPane pane)
Create a new layer within the given pane.
|
Modifier and Type | Method and Description |
---|---|
CanvasPane |
getCanvasPane()
Get the pane containing this layer.
|
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.
|
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.
|
public CanvasLayer()
public CanvasLayer(CanvasPane pane)
public final CanvasPane getCanvasPane()
public Rectangle2D getLayerBounds()
public final CanvasComponent getParent()
getParent
in interface CanvasComponent
public 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)
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.