gnu.java.awt.peer.gtk

Class GtkComponentPeer

Implemented Interfaces:
ComponentPeer
Known Direct Subclasses:
GtkButtonPeer, GtkCanvasPeer, GtkCheckboxPeer, GtkChoicePeer, GtkContainerPeer, GtkLabelPeer, GtkListPeer, GtkScrollbarPeer, GtkTextAreaPeer, GtkTextFieldPeer

public class GtkComponentPeer
extends GtkGenericPeer
implements ComponentPeer

Field Summary

Fields inherited from class gnu.java.awt.peer.gtk.GtkGenericPeer

awtWidget, q

Constructor Summary

GtkComponentPeer(Component awtComponent)

Method Summary

boolean
canDetermineObscurity()
int
checkImage(Image image, int width, int height, ImageObserver observer)
void
coalescePaintEvent(PaintEvent e)
void
createBuffers(int numBuffers, BufferCapabilities caps)
Image
createImage(int width, int height)
Image
createImage(ImageProducer producer)
VolatileImage
createVolatileImage(int width, int height)
void
destroyBuffers()
void
disable()
void
enable()
void
flip(BufferCapabilities.FlipContents contents)
Image
getBackBuffer()
Color
getBackground()
Rectangle
getBounds()
ColorModel
getColorModel()
FontMetrics
getFontMetrics(Font font)
Color
getForeground()
Graphics
getGraphics()
GraphicsConfiguration
getGraphicsConfiguration()
Point
getLocationOnScreen()
Dimension
getMinimumSize()
Dimension
getPreferredSize()
Toolkit
getToolkit()
void
handleEvent(AWTEvent event)
boolean
handlesWheelScrolling()
void
hide()
boolean
isFocusTraversable()
boolean
isFocusable()
boolean
isObscured()
boolean
isReparentSupported()
void
layout()
Dimension
minimumSize()
void
paint(Graphics g)
protected void
postExposeEvent(int x, int y, int width, int height)
protected void
postFocusEvent(int id, boolean temporary)
protected void
postItemEvent(Object item, int stateChange)
protected void
postKeyEvent(int id, long when, int mods, int keyCode, char keyChar, int keyLocation)
protected void
postMouseEvent(int id, long when, int mods, int x, int y, int clickCount, boolean popupTrigger)
protected void
postTextEvent()
Dimension
preferredSize()
boolean
prepareImage(Image image, int width, int height, ImageObserver observer)
void
print(Graphics g)
void
repaint(long tm, int x, int y, int width, int height)
void
reparent(ContainerPeer parent)
void
requestFocus()
boolean
requestFocus(Component source, boolean b1, boolean b2, long x)
void
reshape(int x, int y, int width, int height)
void
setBackground(Color c)
void
setBounds(int x, int y, int width, int height)
void
setBounds(int x, int y, int width, int height, int z)
void
setCursor(Cursor cursor)
void
setEnabled(boolean b)
void
setEventMask(long mask)
void
setFont(Font f)
void
setForeground(Color c)
void
setVisible(boolean b)
void
setVisibleNative(boolean b)
void
setVisibleNativeUnlocked(boolean b)
void
show()
String
toString()
void
updateCursorImmediately()

Methods inherited from class gnu.java.awt.peer.gtk.GtkGenericPeer

dispose, enableQueue, postActionEvent

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

GtkComponentPeer

protected GtkComponentPeer(Component awtComponent)

Method Details

canDetermineObscurity

public boolean canDetermineObscurity()
Specified by:
canDetermineObscurity in interface ComponentPeer

checkImage

public int checkImage(Image image,
                      int width,
                      int height,
                      ImageObserver observer)
Specified by:
checkImage in interface ComponentPeer

coalescePaintEvent

public void coalescePaintEvent(PaintEvent e)
Specified by:
coalescePaintEvent in interface ComponentPeer

createBuffers

public void createBuffers(int numBuffers,
                          BufferCapabilities caps)
            throws AWTException
Specified by:
createBuffers in interface ComponentPeer

createImage

public Image createImage(int width,
                         int height)
Specified by:
createImage in interface ComponentPeer

createImage

public Image createImage(ImageProducer producer)
Specified by:
createImage in interface ComponentPeer

createVolatileImage

public VolatileImage createVolatileImage(int width,
                                         int height)
Specified by:
createVolatileImage in interface ComponentPeer

destroyBuffers

public void destroyBuffers()
Specified by:
destroyBuffers in interface ComponentPeer

disable

public void disable()
Specified by:
disable in interface ComponentPeer

enable

public void enable()
Specified by:
enable in interface ComponentPeer

flip

public void flip(BufferCapabilities.FlipContents contents)
Specified by:
flip in interface ComponentPeer

getBackBuffer

public Image getBackBuffer()
Specified by:
getBackBuffer in interface ComponentPeer

getBackground

public Color getBackground()

getBounds

public Rectangle getBounds()
Specified by:
getBounds in interface ComponentPeer

getColorModel

public ColorModel getColorModel()
Specified by:
getColorModel in interface ComponentPeer

getFontMetrics

public FontMetrics getFontMetrics(Font font)
Specified by:
getFontMetrics in interface ComponentPeer

getForeground

public Color getForeground()

getGraphics

public Graphics getGraphics()
Specified by:
getGraphics in interface ComponentPeer

getGraphicsConfiguration

public GraphicsConfiguration getGraphicsConfiguration()
Specified by:
getGraphicsConfiguration in interface ComponentPeer

getLocationOnScreen

public Point getLocationOnScreen()
Specified by:
getLocationOnScreen in interface ComponentPeer

getMinimumSize

public Dimension getMinimumSize()
Specified by:
getMinimumSize in interface ComponentPeer

getPreferredSize

public Dimension getPreferredSize()
Specified by:
getPreferredSize in interface ComponentPeer

getToolkit

public Toolkit getToolkit()
Specified by:
getToolkit in interface ComponentPeer

handleEvent

public void handleEvent(AWTEvent event)
Specified by:
handleEvent in interface ComponentPeer

handlesWheelScrolling

public boolean handlesWheelScrolling()
Specified by:
handlesWheelScrolling in interface ComponentPeer

hide

public void hide()
Specified by:
hide in interface ComponentPeer

isFocusTraversable

public boolean isFocusTraversable()
Specified by:
isFocusTraversable in interface ComponentPeer

isFocusable

public boolean isFocusable()
Specified by:
isFocusable in interface ComponentPeer

isObscured

public boolean isObscured()
Specified by:
isObscured in interface ComponentPeer

isReparentSupported

public boolean isReparentSupported()
Specified by:
isReparentSupported in interface ComponentPeer

layout

public void layout()
Specified by:
layout in interface ComponentPeer

minimumSize

public Dimension minimumSize()
Specified by:
minimumSize in interface ComponentPeer

paint

public void paint(Graphics g)
Specified by:
paint in interface ComponentPeer

postExposeEvent

protected void postExposeEvent(int x,
                               int y,
                               int width,
                               int height)

postFocusEvent

protected void postFocusEvent(int id,
                              boolean temporary)

postItemEvent

protected void postItemEvent(Object item,
                             int stateChange)

postKeyEvent

protected void postKeyEvent(int id,
                            long when,
                            int mods,
                            int keyCode,
                            char keyChar,
                            int keyLocation)

postMouseEvent

protected void postMouseEvent(int id,
                              long when,
                              int mods,
                              int x,
                              int y,
                              int clickCount,
                              boolean popupTrigger)

postTextEvent

protected void postTextEvent()

preferredSize

public Dimension preferredSize()
Specified by:
preferredSize in interface ComponentPeer

prepareImage

public boolean prepareImage(Image image,
                            int width,
                            int height,
                            ImageObserver observer)
Specified by:
prepareImage in interface ComponentPeer

print

public void print(Graphics g)
Specified by:
print in interface ComponentPeer

repaint

public void repaint(long tm,
                    int x,
                    int y,
                    int width,
                    int height)
Specified by:
repaint in interface ComponentPeer

reparent

public void reparent(ContainerPeer parent)
Specified by:
reparent in interface ComponentPeer

requestFocus

public void requestFocus()
Specified by:
requestFocus in interface ComponentPeer

requestFocus

public boolean requestFocus(Component source,
                            boolean b1,
                            boolean b2,
                            long x)
Specified by:
requestFocus in interface ComponentPeer

reshape

public void reshape(int x,
                    int y,
                    int width,
                    int height)
Specified by:
reshape in interface ComponentPeer

setBackground

public void setBackground(Color c)
Specified by:
setBackground in interface ComponentPeer

setBounds

public void setBounds(int x,
                      int y,
                      int width,
                      int height)
Specified by:
setBounds in interface ComponentPeer

setBounds

public void setBounds(int x,
                      int y,
                      int width,
                      int height,
                      int z)
Specified by:
setBounds in interface ComponentPeer

setCursor

public void setCursor(Cursor cursor)
Specified by:
setCursor in interface ComponentPeer

setEnabled

public void setEnabled(boolean b)
Specified by:
setEnabled in interface ComponentPeer

setEventMask

public void setEventMask(long mask)
Specified by:
setEventMask in interface ComponentPeer

setFont

public void setFont(Font f)
Specified by:
setFont in interface ComponentPeer

setForeground

public void setForeground(Color c)
Specified by:
setForeground in interface ComponentPeer

setVisible

public void setVisible(boolean b)
Specified by:
setVisible in interface ComponentPeer

setVisibleNative

public void setVisibleNative(boolean b)

setVisibleNativeUnlocked

public void setVisibleNativeUnlocked(boolean b)

show

public void show()
Specified by:
show in interface ComponentPeer

toString

public String toString()
Overrides:
toString in interface Object

updateCursorImmediately

public void updateCursorImmediately()
Specified by:
updateCursorImmediately in interface ComponentPeer

GtkComponentPeer.java -- Implements ComponentPeer with GTK Copyright (C) 1998, 1999, 2002, 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.