de.heineken.studienarbeit
Class Bild
Component
de.heineken.studienarbeit.Bild
public class Bild
extends Component
Class to show some picture
used to display the head direction arrow.
(package private) Image | i
|
(package private) JPanel | panel
|
Bild(Image i, JPanel jp) - Constructor of a Bild object
|
Dimension | getPreferredSize() - Return of the proper size
|
void | paint(Graphics g) - paint-method()
used bei AWT when object is to be painted
|
i
(package private) Image i
panel
(package private) JPanel panel
Bild
public Bild(Image i,
JPanel jp)
Constructor of a Bild object
i
- picture that is wanted to be shownjp
- Panel where the pictuer is shown in the middle
getPreferredSize
public Dimension getPreferredSize()
Return of the proper size
- Dimension-Objekt, from the panel
paint
public void paint(Graphics g)
paint-method()
used bei AWT when object is to be painted
g
- Graphics-Object, on Canvas (Oberfläche) the picture should be painted