public class ImageLayer extends CanvasLayer implements VisibleComponent
Modifier and Type | Field and Description |
---|---|
protected DivaGraphicsImageDisplay |
imageDisplay
Image display canvas
|
protected boolean |
visible
If the flag is false, then the object will not be painted on the screen.
|
Constructor and Description |
---|
ImageLayer(DivaGraphicsImageDisplay imageDisplay)
Construct an ImageLayer.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isVisible()
Test the visibility flag of this object.
|
void |
paint(Graphics2D g2d)
Paint this object onto a 2D graphics object.
|
void |
paint(Graphics2D g2D,
Rectangle2D region)
Paint this object onto a 2D graphics object, within the given
region.
|
void |
setVisible(boolean flag)
Set the visibility flag of this object.
|
getCanvasPane, getLayerBounds, getParent, getToolTipText, getTransformContext, repaint, repaint, setParent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getParent, getTransformContext, repaint, repaint
protected DivaGraphicsImageDisplay imageDisplay
protected boolean visible
public ImageLayer(DivaGraphicsImageDisplay imageDisplay)
imageDisplay
- the image display windowpublic boolean isVisible()
isVisible
in interface VisibleComponent
public void paint(Graphics2D g2d)
paint
in interface VisibleComponent
public void paint(Graphics2D g2D, Rectangle2D region)
paint
in interface VisibleComponent
public void setVisible(boolean flag)
setVisible
in interface VisibleComponent
Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.