|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSimplePicture
Picture
public class Picture
A class that represents a picture. This class inherits from SimplePicture and allows the student to add functionality to the Picture class. Copyright Georgia Institute of Technology 2004-2005
Constructor Summary | |
---|---|
Picture()
Constructor that takes no arguments |
|
Picture(BufferedImage image)
Constructor that takes a buffered image |
|
Picture(int width,
int height)
Constructor that takes the width and height |
|
Picture(Picture copyPicture)
Constructor that takes a picture and creates a copy of that picture |
|
Picture(String fileName)
Constructor that takes a file name and creates the picture |
Method Summary | |
---|---|
static void |
main(String[] args)
|
String |
toString()
Method to return a string with information about this picture. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Picture()
public Picture(String fileName)
fileName
- the name of the file to create the picture frompublic Picture(int width, int height)
width
- the width of the desired pictureheight
- the height of the desired picturepublic Picture(Picture copyPicture)
public Picture(BufferedImage image)
image
- the buffered image to useMethod Detail |
---|
public String toString()
toString
in class SimplePicture
public static void main(String[] args)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |