Question: Please, Please, Please read the question! The class Picture extends Simple Picture The class Simple Picture implements Digital Picture Picture contains the following methods (There
Please, Please, Please read the question!
The class Picture extends Simple Picture The class Simple Picture implements Digital Picture
Picture contains the following methods (There are more methods in this class, but I know I don't need them for this assignment): 1. public void increaseRed() 2. public void increaseGreen() 3. public void increaseBlue() 4. public void blur(int startX, int endX, int startY, int endY)
Simple Picture contain the following methods: 1. public String getExtension() 2. public void copyPicture(SimplePicture sourcePicture) 3. public void setAllPixelsToAColor(Color color) 4. public BufferedImage getBufferedImage() 5. public Graphics getGraphics() 6. public Graphics2D createGraphics() 7. public String getFileName() 8. public String getTitle() 9. public void setTitle(String title) 10. public int getWidth() 11. public int getHeight() 13. public PictureFrame getPictureFrame() 14. public void setPictureFrame(PictureFrame pictureFrame) 14. public Image getImage() 15. public int getBasicPixel(int x, int y) 16. public void setBasicPixel(int x, int y, int rgb) 17. public Pixel getPixel(int x, int y) 18. public Pixel[] getPixels() 19. public void load(Image image) 20. public void show() 21. public void hide() 22. public void setVisible(boolean flag) 23. public void explore() 24. public void repaint() 25. public boolean load(String fileName) 26. public void addMessage(String message, int xPos, int yPos) 27. public Picture getPictureWithHeight(int height) 28. public boolean loadPictureAndShowIt(String fileName) 29. public void write(String fileName) 30. public static void setMediaPath(String directory) 31. public static String getMediaPath(String fileName) 32. public Rectangle2D getTransformEnclosingRect(AffineTransform trans) 33. public String toString()
The class ControlFrame includes the setup of the menu and event handlers for this assignment. The class DrawControlApp contains the main method The class DrawControlPanel helps the DrawPanel on the File menu The class DrawImageControlPanel helps the DrawImagePanel on the file menu (This is the one I am having a problem with). This class should help the Show Picture on the File menu.
A few have tried to answer this question...but they didn't use the methods already in the Picture Class.
Question: I need to understand how to get the event handler in the ControlFrame class to be able to Show Picture from the file menu (close to the bottom of the ControlFrame class) and then be able to select the Image menu and be able to call the IncreaseRed method and have it display the picture with the IncreaseRed method implemented. I should be using the DrawImageControlPanel class to do most of this work. Like the DrawControlPanel class does the work for the Draw Panel on the file menu. Note the main method is in DrawControlApp.java file
Here is a copy of the actual files: (ask for them...if I include them the question will not submit)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
