|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.ObjectCombineTopBottom
You must implement this class as described in the description for Homework #3. Note that it currently returns dummy values to avoid compiler errors.
| Constructor Summary | |
CombineTopBottom(Picture basePicture1,
Picture basePicture2)
|
|
| Method Summary | |
PictureColor |
getColor(int x,
int y)
This specifies the content of a picture by returning the color of the picture at each pixel (i.e., position). |
int |
getHeight()
|
int |
getWidth()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CombineTopBottom(Picture basePicture1,
Picture basePicture2)
| Method Detail |
public PictureColor getColor(int x,
int y)
Picture
getColor in interface Picturex - The column within the picturey - The row within the picture
public int getWidth()
getWidth in interface Picturepublic int getHeight()
getHeight in interface Picture
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||