public class ImageLabelPart
extends java.lang.Object
implements de.willuhn.jameica.gui.Part, org.eclipse.swt.events.PaintListener
| Constructor and Description |
|---|
ImageLabelPart()
Erstellt das ImageLable ohne weitere Inhalte
|
ImageLabelPart(org.eclipse.swt.graphics.Image img)
Erstellt eine ImageLabel mit Image und setzt die Größe des Labels auf die
Bildgröße
|
ImageLabelPart(org.eclipse.swt.graphics.Image img,
org.eclipse.swt.graphics.Point size)
Erstellt eine ImageLabel mit Bild in der angegebenen Größe.
|
ImageLabelPart(org.eclipse.swt.graphics.Point size)
Erstellt eine ImageLabel mit leeren Inhalt in der angegebenen Größe.
|
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.swt.graphics.Point |
getSize()
Gibt die Größe des ImageLabels als Point zurück
|
java.lang.String |
getText()
Liefert den aktuellen Text
|
void |
paint(org.eclipse.swt.widgets.Composite parent) |
void |
paintControl(org.eclipse.swt.events.PaintEvent event) |
void |
setImage(org.eclipse.swt.graphics.Image img)
Setzt ein neues Image und zeigt es an
|
void |
setText(java.lang.String text)
Setzt einen neuen Text, der angezeigt werden soll.
|
public ImageLabelPart()
public ImageLabelPart(org.eclipse.swt.graphics.Image img)
img - Image das dargestellt werden soll.public ImageLabelPart(org.eclipse.swt.graphics.Point size)
size - Point-Object mit Größenangabenpublic ImageLabelPart(org.eclipse.swt.graphics.Image img,
org.eclipse.swt.graphics.Point size)
img - Image das dargestellt werden soll.size - Point-Object mit Größenangabenpublic void setImage(org.eclipse.swt.graphics.Image img)
img - IMage, dass angezeigt werden sollpublic void setText(java.lang.String text)
text - der angezeigt werden sollpublic java.lang.String getText()
public org.eclipse.swt.graphics.Point getSize()
public void paint(org.eclipse.swt.widgets.Composite parent)
throws java.rmi.RemoteException
paint in interface de.willuhn.jameica.gui.Partjava.rmi.RemoteExceptionPart.paint(org.eclipse.swt.widgets.Composite)public void paintControl(org.eclipse.swt.events.PaintEvent event)
paintControl in interface org.eclipse.swt.events.PaintListenerPart.paint(Composite)