public class PictureSlide extends Object implements Slide
Modifier and Type | Field and Description |
---|---|
protected DisplayUtilities.ScalingImageComponent |
ic |
protected MBFImage |
mbfImage |
protected URL |
url |
Constructor and Description |
---|
PictureSlide(MBFImage mbfImage)
Create a picture slide
|
PictureSlide(URL picture)
Create a picture slide
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the current slide.
|
Component |
getComponent(int width,
int height)
Get the component to draw.
|
protected DisplayUtilities.ScalingImageComponent ic
public PictureSlide(URL picture) throws IOException
picture
- the url of the pictureIOException
public PictureSlide(MBFImage mbfImage)
mbfImage
- the picturepublic Component getComponent(int width, int height) throws IOException
Slide
getComponent
in interface Slide
width
- the slide widthheight
- the slide heightIOException