Files
G4G0-1/Semester 1/Programming 1/Java/examples/projects/chapter13/imageviewer-final/ImagePanel.ctxt
2024-01-15 20:14:10 +00:00

15 lines
950 B
Plaintext
Executable File

#BlueJ class context
comment0.params=
comment0.target=ImagePanel()
comment0.text=\n\ Create\ a\ new,\ empty\ ImagePanel.\n
comment1.params=
comment1.target=void\ clearImage()
comment1.text=\n\ Clear\ the\ image\ on\ this\ panel.\n
comment2.params=
comment2.target=java.awt.Dimension\ getPreferredSize()
comment2.text=\n\ Tell\ the\ layout\ manager\ how\ big\ we\ would\ like\ to\ be.\n\ (This\ method\ gets\ called\ by\ layout\ managers\ for\ placing\n\ the\ components.)\n\ \n\ @return\ The\ preferred\ dimension\ for\ this\ component.\n
comment3.params=g
comment3.target=void\ paintComponent(java.awt.Graphics)
comment3.text=\n\ This\ component\ needs\ to\ be\ redisplayed.\ Copy\ the\ internal\ image\ \n\ to\ screen.\ (This\ method\ gets\ called\ by\ the\ Swing\ screen\ painter\ \n\ every\ time\ it\ want\ this\ component\ displayed.)\n\ \n\ @param\ g\ The\ graphics\ context\ that\ can\ be\ used\ to\ draw\ on\ this\ component.\n
numComments=4