|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsun.awt.qt.QtLabelPeer
public class QtLabelPeer
The peer for label.
| Constructor Summary | |
|---|---|
QtLabelPeer(QtToolkit toolkit,
Label target)
Creates a new QtLabelPeer. |
|
| 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)
|
void |
clearBackground(Graphics g)
|
protected void |
create(sun.awt.qt.QtComponentPeer parentPeer)
Creates this component peer. |
java.awt.Image |
createImage(java.awt.image.ImageProducer producer)
|
java.awt.Image |
createImage(int width,
int height)
|
java.awt.image.VolatileImage |
createVolatileImage(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()
|
long |
getNativeComponent()
|
java.awt.Dimension |
getPreferredSize()
|
Toolkit |
getToolkit()
|
void |
handleEvent(AWTEvent event)
|
boolean |
isFocusable()
|
boolean |
isFocusTraversable()
|
void |
lostOwnership(Clipboard clipboard,
Transferable contents)
Notifies this object that it is no longer the owner of the contents of the clipboard. |
boolean |
nativeRequestFocus(Component lightweightChild,
boolean temporary,
boolean focusedWindowChangeAllowed,
long time)
|
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)
|
boolean |
requestFocus(Component child,
Window parent,
boolean temporary,
boolean focusedWindowChangeAllowed,
long time)
|
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 |
setFocusable(boolean focusable)
|
void |
setFont(Font f)
|
void |
setForeground(java.awt.Color c)
|
void |
setText(String text)
|
void |
setVisible(boolean b)
|
protected boolean |
shouldFocusOnClick()
|
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, paint, prepareImage, print, repaint, requestFocus, setBackground, setBounds, setCursor, setEnabled, setFocusable, setFont, setForeground, setVisible |
| Constructor Detail |
|---|
public QtLabelPeer(QtToolkit toolkit,
Label target)
| Method Detail |
|---|
protected void create(sun.awt.qt.QtComponentPeer parentPeer)
public java.awt.Dimension getPreferredSize()
getPreferredSize in interface ComponentPeerpublic java.awt.Dimension getMinimumSize()
getMinimumSize in interface ComponentPeerpublic void setText(String text)
setText in interface LabelPeerpublic void setAlignment(int alignment)
setAlignment in interface LabelPeerpublic void setFocusable(boolean focusable)
setFocusable in interface ComponentPeer
public boolean nativeRequestFocus(Component lightweightChild,
boolean temporary,
boolean focusedWindowChangeAllowed,
long time)
protected boolean canHavePixmapBackground()
public void dispose()
dispose in interface ComponentPeerpublic void setVisible(boolean b)
setVisible in interface ComponentPeerpublic void setEnabled(boolean b)
setEnabled in interface ComponentPeerpublic void paint(Graphics g)
paint in interface ComponentPeerpublic void update(Graphics g)
public void repaint(long tm,
int x,
int y,
int width,
int height)
repaint in interface ComponentPeerpublic void print(Graphics g)
print in interface ComponentPeerpublic void clearBackground(Graphics g)
clearBackground 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 setForeground(java.awt.Color c)
setForeground in interface ComponentPeerpublic void setBackground(java.awt.Color c)
setBackground in interface ComponentPeerpublic void setFont(Font f)
setFont in interface ComponentPeerpublic void setCursor(java.awt.Cursor cursor)
setCursor in interface ComponentPeerpublic 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)
public long getNativeComponent()
public java.awt.image.VolatileImage createVolatileImage(int width,
int height)
createVolatileImage in interface ComponentPeer
public boolean requestFocus(Component child,
Window parent,
boolean temporary,
boolean focusedWindowChangeAllowed,
long time)
requestFocus in interface ComponentPeerpublic boolean isFocusable()
protected boolean shouldFocusOnClick()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||