gnu.awt.xlib

Class XCanvasPeer

Implemented Interfaces:
CanvasPeer, ComponentPeer
Known Direct Subclasses:
XFramePeer, XPanelPeer

public class XCanvasPeer
extends Object
implements CanvasPeer

Field Summary

//
temporaryWindowwindow

Constructor Summary

XCanvasPeer(Component component)

Method Summary

boolean
canDetermineObscurity()
void
cancelPendingPaint(int x, int y, int width, int height)
int
checkImage(Image img, int width, int height, ImageObserver o)
void
coalescePaintEvent(PaintEvent e)
void
createBuffers(int x, BufferCapabilities capabilities)
Image
createImage(int width, int height)
Image
createImage(ImageProducer prod)
VolatileImage
createVolatileImage(int width, int height)
void
destroyBuffers()
void
disable()
void
dispose()
void
enable()
protected void
ensureFlush()
void
flip(BufferCapabilities.FlipContents contents)
Image
getBackBuffer()
Rectangle
getBounds()
ColorModel
getColorModel()
Component
getComponent()
FontMetrics
getFontMetrics(Font f)
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()
boolean
isRestackSupported()
void
layout()
Dimension
minimumSize()
void
paint(Graphics gfx)
Dimension
preferredSize()
boolean
prepareImage(Image img, int width, int height, ImageObserver o)
void
print(Graphics graphics)
void
repaint(long tm, int x, int y, int w, int h)
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
restack()
void
setBackground(Color color)
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 enabled)
void
setEventMask(long eventMask)
void
setFont(Font font)
void
setForeground(Color color)
void
setVisible(boolean visible)
void
show()
void
updateCursorImmediately()

Methods inherited from class java.lang.Object

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

Field Details

temporaryWindowwindow

public // temporaryWindowwindow

Constructor Details

XCanvasPeer

public XCanvasPeer(Component component)

Method Details

canDetermineObscurity

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

cancelPendingPaint

public void cancelPendingPaint(int x,
                               int y,
                               int width,
                               int height)
Since:
1.5

checkImage

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

coalescePaintEvent

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

createBuffers

public void createBuffers(int x,
                          BufferCapabilities capabilities)
            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 prod)
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

dispose

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

enable

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

ensureFlush

protected void ensureFlush()

flip

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

getBackBuffer

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

getBounds

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

getColorModel

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

getComponent

public Component getComponent()

getFontMetrics

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

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
Since:
1.5

isRestackSupported

public boolean isRestackSupported()
Since:
1.5

layout

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

minimumSize

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

paint

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

preferredSize

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

prepareImage

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

print

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

repaint

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

reparent

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

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

restack

public void restack()
Since:
1.5

setBackground

public void setBackground(Color color)
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
Since:
1.5

setCursor

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

setEnabled

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

setEventMask

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

setFont

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

setForeground

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

setVisible

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

show

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

updateCursorImmediately

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

Copyright (C) 2000, 2002, 2003 Free Software Foundation This file is part of libgcj. This software is copyrighted work licensed under the terms of the Libgcj License. Please consult the file "LIBGCJ_LICENSE" for details.