|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectimg.PictureFrame
public class PictureFrame
The class encapsulates a frame that is capable of displaying a DigitalPicture. This class is based on an original specificaion from Guzdial and Ericson, with explanatory comments and modifications provided by various contributors: mb@cse.yorku.ca
Constructor Summary | |
---|---|
PictureFrame()
Default constructor that ... |
|
PictureFrame(AbstractDigitalPicture picture)
Constructs a PictureFrame for the passed DigitalPicture object. |
Method Summary | |
---|---|
void |
close()
Causes this picture frame to be closed. |
void |
displayImage()
Ensure that this picture frame is shown on the current graphical display. |
void |
hide()
Ensure that this picture frame is not shown on the current graphical display. |
void |
repaint()
Cause this picture frame to signal to the graphics manager that it needs to be redrawn at the next opportunity. |
void |
setPicture(AbstractDigitalPicture picture)
Set the digital picture to be shown in the this picture frame |
void |
setTitle(java.lang.String title)
Set the title for the picture frame to be the passed string value. |
void |
setVisible(boolean shouldBeShown)
Specify whether this picture frame is shown on the current graphical display or not, as per the passed boolean flag. |
void |
updateImage()
Update this picture frame to show the current digital picture (it may have been changed since the most recent display) |
void |
updateImageAndShowIt()
A method to update the picture frame image with the image in the picture and show it |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PictureFrame()
public PictureFrame(AbstractDigitalPicture picture)
picture
- the digital picture to display in the picture frameMethod Detail |
---|
public void setPicture(AbstractDigitalPicture picture)
picture
- the digital picture to be shown in this framepublic void updateImage()
public void updateImageAndShowIt()
public void displayImage()
public void hide()
public void setVisible(boolean shouldBeShown)
shouldBeShown
- a boolean value that indicates whether this picture frame
should be shown on not.public void close()
public void setTitle(java.lang.String title)
title
- as described abovepublic void repaint()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |