de.heineken.studienarbeit

Class Bild


public class Bild
extends Component

Class to show some picture used to display the head direction arrow.

Field Summary

(package private) Image
i
(package private) JPanel
panel

Constructor Summary

Bild(Image i, JPanel jp)
Constructor of a Bild object

Method Summary

Dimension
getPreferredSize()
Return of the proper size
void
paint(Graphics g)
paint-method() used bei AWT when object is to be painted

Field Details

i

(package private)  Image i

panel

(package private)  JPanel panel

Constructor Details

Bild

public Bild(Image i,
            JPanel jp)
Constructor of a Bild object
Parameters:
i - picture that is wanted to be shown
jp - Panel where the pictuer is shown in the middle

Method Details

getPreferredSize

public Dimension getPreferredSize()
Return of the proper size
Returns:
Dimension-Objekt, from the panel

paint

public void paint(Graphics g)
paint-method() used bei AWT when object is to be painted
Parameters:
g - Graphics-Object, on Canvas (Oberfläche) the picture should be painted