| java.lang.Object sun.awt.gtk.GComponentPeer
All known Subclasses: sun.awt.gtk.GContainerPeer, sun.awt.gtk.GChoicePeer, sun.awt.gtk.GTextComponentPeer, sun.awt.gtk.GLabelPeer, sun.awt.gtk.GButtonPeer, sun.awt.gtk.GListPeer, sun.awt.gtk.GCheckboxPeer, sun.awt.gtk.GCanvasPeer, sun.awt.gtk.GScrollbarPeer,
Field Summary | |
int | data Used by native code as a pointer to the Gtk widget. | Component | target The Component this is the peer for. | GToolkit | toolkit The Toolkit that created this peer. |
Method Summary | |
protected boolean | canHavePixmapBackground() Decides whether it is possible for this component to have a pixmap background (i.e. | public int | checkImage(Image img, int w, int h, ImageObserver o) | abstract protected void | create() Creates this component peer. | public Image | createImage(ImageProducer producer) | public Image | createImage(int width, int height) | public void | dispose() | public ColorModel | getColorModel() | public FontMetrics | getFontMetrics(Font font) | public Graphics | getGraphics() | native public Point | getLocationOnScreen() | public Dimension | getMinimumSize() | native public Dimension | getPreferredSize() | public Toolkit | getToolkit() | public void | handleEvent(AWTEvent event) | native void | hide() | public boolean | isFocusTraversable() | public void | lostOwnership(Clipboard clipboard, Transferable contents) | public void | paint(Graphics g) | void | postMouseEvent(int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, int nativeEvent) | void | postPaintEvent(int x, int y, int width, int height) Posts a paint event for this component. | public boolean | prepareImage(Image img, int w, int h, ImageObserver o) | public void | print(Graphics g) | public void | repaint(long tm, int x, int y, int width, int height) | native public void | requestFocus() | public void | setBackground(Color c) | public void | setBounds(int x, int y, int width, int height) | native void | setBoundsNative(int x, int y, int width, int height) | public void | setCursor(Cursor cursor) | native public void | setEnabled(boolean b) | public void | setFont(Font f) | public void | setForeground(Color c) | public void | setVisible(boolean b) | native void | show() Shows this widget. | protected byte[] | stringToNulMultiByte(String string) | public void | update(Graphics g) | public void | updateClient(Object arg) Called by the ScreenUpdater to update the component. |
data | int data(Code) | | Used by native code as a pointer to the Gtk widget.
|
canHavePixmapBackground | protected boolean canHavePixmapBackground()(Code) | | Decides whether it is possible for this component to have a pixmap background (i.e. a non solid color).
We allow all components except Window, Frame, Dialog, Panel and Canvas to have pixmaps as the user
can, and typically does, override the paint for these components. Thus update can be called which will clear
the background with a solid color for these components. However, we would still like to have support for Gtk
themes where a button, for example, may hava a pixmap background.
|
create | abstract protected void create()(Code) | | Creates this component peer. This requires setting the data field to point to a
struct GComponentData.
|
createImage | public Image createImage(int width, int height)(Code) | | |
dispose | public void dispose()(Code) | | |
getLocationOnScreen | native public Point getLocationOnScreen()(Code) | | |
hide | native void hide()(Code) | | Hides this widget
|
isFocusTraversable | public boolean isFocusTraversable()(Code) | | |
postMouseEvent | void postMouseEvent(int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, int nativeEvent)(Code) | | |
postPaintEvent | void postPaintEvent(int x, int y, int width, int height)(Code) | | Posts a paint event for this component. This is called when an area of the component is exposed.
The area that needs to be painted is specified by the parameters.
|
repaint | public void repaint(long tm, int x, int y, int width, int height)(Code) | | |
requestFocus | native public void requestFocus()(Code) | | |
setBounds | public void setBounds(int x, int y, int width, int height)(Code) | | |
setBoundsNative | native void setBoundsNative(int x, int y, int width, int height)(Code) | | |
setEnabled | native public void setEnabled(boolean b)(Code) | | |
setVisible | public void setVisible(boolean b)(Code) | | |
show | native void show()(Code) | | Shows this widget.
|
stringToNulMultiByte | protected byte[] stringToNulMultiByte(String string)(Code) | | |
updateClient | public void updateClient(Object arg)(Code) | | Called by the ScreenUpdater to update the component.
|
|
|