|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
fr.lip6.sma.simulacion.app.ImagePanel
public class ImagePanel
Classe pour un élément graphique avec une image.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
private Image |
mImage
Référence sur l'image à dessiner dans le composant. |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ImagePanel()
Constructeur par défaut. |
|
ImagePanel(Image inImage)
Constructeur à partir d'une image. |
|
| Method Summary | |
|---|---|
Image |
getImage()
Accesseur sur l'image. |
Dimension |
getSize()
Accesseur sur notre taille. |
boolean |
imageUpdate(Image inImage,
int inInfoFlags,
int inXCoord,
int inYCoord,
int inWidth,
int inHeight)
Méthode appelée lorsqu'une information sur l'image devient connue. |
void |
paintComponent(Graphics inGraphics)
Dessine le composant. |
void |
setImage(Image inImage)
Sélecteur sur l'image. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private Image mImage
| Constructor Detail |
|---|
public ImagePanel()
null.
public ImagePanel(Image inImage)
inImage - image à dessiner dans le composant.| Method Detail |
|---|
public void setImage(Image inImage)
inImage - nouvelle image
public boolean imageUpdate(Image inImage,
int inInfoFlags,
int inXCoord,
int inYCoord,
int inWidth,
int inHeight)
imageUpdate in interface ImageObserverimageUpdate in class ComponentinImage - image considérée.inInfoFlags - drapeaux indiquant l'information.inXCoord - coordonnée X (ignorée)inYCoord - coordonnée Y (ignorée)inWidth - largeurinHeight - longueur
true s'il faut charger l'image plus avant,
false sinon.public Image getImage()
public Dimension getSize()
getSize in class Componentpublic void paintComponent(Graphics inGraphics)
paintComponent in class JComponentinGraphics - objet pour dessiner l'image.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||