Package app.media_managers
Class ImageModifier
java.lang.Object
app.media_managers.ImageModifier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addMedia
(MediaCommunicator com, double x, double y) Loads images into the page from a file, passing back to MediaCommunicator to be displayed.getImage()
void
setCaption
(String givenCaption) void
setImage
(MediaImage image)
-
Constructor Details
-
ImageModifier
public ImageModifier()
-
-
Method Details
-
addMedia
Loads images into the page from a file, passing back to MediaCommunicator to be displayed.- Parameters:
com
- MediaCommunicator of the pagex
- X coordinate of top-left corner of image once placedy
- Y coordinate of top-left corner of image once played- Throws:
Exception
- Throws exception upon failing to find proper file.
-
setCaption
-
getCaption
-
setImage
-
getImage
-