public class PictureDisplayer
extends java.lang.Object
Constructor and Description |
---|
PictureDisplayer()
Create a PictureDisplayer
|
PictureDisplayer(int width,
int height)
Create a PictureDisplayer with a canvas of specified size
|
PictureDisplayer(Picture p)
Create a PictureDisplayer with a picture on the canvas
|
PictureDisplayer(Picture p,
int width,
int height)
Create a PictureDisplayer with a picture on a canvass of specified size
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the PictureDisplayer and frees resources when the user presses Close.
|
Picture |
getPicture()
Returns the picture on the canvas
|
void |
hide()
Makes the PictureDisplayer invisible, so that it can not be seen on the desktop.
|
void |
placePicture(Picture p)
Places a picture onto the canvas in the PictureDisplayer
|
void |
setPicture(Picture p)
Deprecated.
use placePicture(Picture p) instead
|
void |
show()
Makes the PictureDisplayer visible, so that it can be seen on the desktop.
|
void |
waitForUser()
Waits for the user to finish using the PictureDisplayer and press OK.
|
public PictureDisplayer()
public PictureDisplayer(Picture p)
public PictureDisplayer(int width, int height)
public PictureDisplayer(Picture p, int width, int height)
public void setPicture(Picture p)
p
- the picture going on the canvaspublic void placePicture(Picture p)
p
- the picture going on the canvaspublic Picture getPicture()
public void show()
public void hide()
public void waitForUser()
public void close()