|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsun.awt.gtk.GLabelPeer
public class GLabelPeer
The peer for label. We don't use GtkLabel widgets from this peer as they don't support the alignment of text. Instead we simply override the paint method and draw the label in Java.
| Constructor Summary | |
|---|---|
GLabelPeer(GToolkit toolkit,
Label target)
Creates a new GLabelPeer. |
|
| Method Summary | |
|---|---|
protected boolean |
canHavePixmapBackground()
Decides whether it is possible for this component to have a pixmap background (i.e. |
int |
checkImage(java.awt.Image img,
int w,
int h,
java.awt.image.ImageObserver o)
|
protected void |
create()
Creates this component peer. |
java.awt.Image |
createImage(java.awt.image.ImageProducer producer)
|
java.awt.Image |
createImage(int width,
int height)
|
void |
dispose()
|
java.awt.image.ColorModel |
getColorModel()
|
FontMetrics |
getFontMetrics(Font font)
|
Graphics |
getGraphics()
|
java.awt.Point |
getLocationOnScreen()
|
java.awt.Dimension |
getMinimumSize()
|
java.awt.Dimension |
getPreferredSize()
|
Toolkit |
getToolkit()
|
void |
handleEvent(AWTEvent event)
|
boolean |
isFocusTraversable()
|
void |
lostOwnership(Clipboard clipboard,
Transferable contents)
Notifies this object that it is no longer the owner of the contents of the clipboard. |
void |
paint(Graphics g)
|
boolean |
prepareImage(java.awt.Image img,
int w,
int h,
java.awt.image.ImageObserver o)
|
void |
print(Graphics g)
|
void |
repaint(long tm,
int x,
int y,
int width,
int height)
|
void |
requestFocus()
|
void |
setAlignment(int alignment)
|
void |
setBackground(java.awt.Color c)
|
void |
setBounds(int x,
int y,
int width,
int height)
|
void |
setCursor(java.awt.Cursor cursor)
|
void |
setEnabled(boolean b)
|
void |
setFont(Font f)
|
void |
setForeground(java.awt.Color c)
|
void |
setText(String text)
|
void |
setVisible(boolean b)
|
protected byte[] |
stringToNulMultiByte(String string)
|
void |
update(Graphics g)
|
void |
updateClient(Object arg)
Called by the ScreenUpdater to update the component. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface sun.awt.peer.ComponentPeer |
|---|
checkImage, clearBackground, createImage, createImage, createVolatileImage, dispose, getColorModel, getFontMetrics, getGraphics, getLocationOnScreen, getToolkit, handleEvent, isFocusTraversable, prepareImage, print, repaint, requestFocus, setBounds, setCursor, setEnabled, setFocusable, setVisible |
| Constructor Detail |
|---|
public GLabelPeer(GToolkit toolkit,
Label target)
| Method Detail |
|---|
protected void create()
public java.awt.Dimension getPreferredSize()
getPreferredSize in interface ComponentPeerpublic java.awt.Dimension getMinimumSize()
getMinimumSize in interface ComponentPeerpublic void paint(Graphics g)
paint in interface ComponentPeerpublic void update(Graphics g)
public void setBackground(java.awt.Color c)
setBackground in interface ComponentPeerpublic void setForeground(java.awt.Color c)
setForeground in interface ComponentPeerpublic void setFont(Font f)
setFont in interface ComponentPeerpublic void setText(String text)
setText in interface LabelPeerpublic void setAlignment(int alignment)
setAlignment in interface LabelPeerprotected boolean canHavePixmapBackground()
public void dispose()
dispose in interface ComponentPeerpublic void setVisible(boolean b)
setVisible in interface ComponentPeerpublic void setEnabled(boolean b)
setEnabled in interface ComponentPeer
public void repaint(long tm,
int x,
int y,
int width,
int height)
repaint in interface ComponentPeerpublic void print(Graphics g)
print in interface ComponentPeer
public void setBounds(int x,
int y,
int width,
int height)
setBounds in interface ComponentPeerpublic void handleEvent(AWTEvent event)
handleEvent in interface ComponentPeerpublic void updateClient(Object arg)
updateClient in interface sun.awt.UpdateClientpublic java.awt.Point getLocationOnScreen()
getLocationOnScreen in interface ComponentPeerpublic java.awt.image.ColorModel getColorModel()
getColorModel in interface ComponentPeerpublic Toolkit getToolkit()
getToolkit in interface ComponentPeerpublic Graphics getGraphics()
getGraphics in interface ComponentPeerpublic FontMetrics getFontMetrics(Font font)
getFontMetrics in interface ComponentPeerpublic void setCursor(java.awt.Cursor cursor)
setCursor in interface ComponentPeerpublic void requestFocus()
public boolean isFocusTraversable()
isFocusTraversable in interface ComponentPeerpublic java.awt.Image createImage(java.awt.image.ImageProducer producer)
createImage in interface ComponentPeer
public java.awt.Image createImage(int width,
int height)
createImage in interface ComponentPeer
public boolean prepareImage(java.awt.Image img,
int w,
int h,
java.awt.image.ImageObserver o)
prepareImage in interface ComponentPeer
public int checkImage(java.awt.Image img,
int w,
int h,
java.awt.image.ImageObserver o)
checkImage in interface ComponentPeer
public void lostOwnership(Clipboard clipboard,
Transferable contents)
ClipboardOwner
lostOwnership in interface ClipboardOwnerclipboard - the clipboard that is no longer ownedcontents - the contents which this owner had placed on the clipboardprotected byte[] stringToNulMultiByte(String string)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||