diff options
Diffstat (limited to 'libjava/gnu/awt/xlib/XCanvasPeer.java')
-rw-r--r-- | libjava/gnu/awt/xlib/XCanvasPeer.java | 42 |
1 files changed, 41 insertions, 1 deletions
diff --git a/libjava/gnu/awt/xlib/XCanvasPeer.java b/libjava/gnu/awt/xlib/XCanvasPeer.java index 5674f5bf2ad..a208be5c103 100644 --- a/libjava/gnu/awt/xlib/XCanvasPeer.java +++ b/libjava/gnu/awt/xlib/XCanvasPeer.java @@ -1,4 +1,4 @@ -/* Copyright (C) 2000 Free Software Foundation +/* Copyright (C) 2000, 2002 Free Software Foundation This file is part of libgcj. @@ -230,6 +230,11 @@ public class XCanvasPeer implements CanvasPeer throw new UnsupportedOperationException("FIXME, not implemented"); } + public ColorModel getColorModel () + { + return null; + } + public Graphics getGraphics() { DirectRasterGraphics gfxDevice = new XGraphics(window, config); @@ -251,11 +256,21 @@ public class XCanvasPeer implements CanvasPeer return MIN_SIZE; } + public Dimension minimumSize () + { + return getMinimumSize (); + } + public Dimension getPreferredSize () { return component.getSize(); } + public Dimension preferredSize () + { + return getPreferredSize(); + } + public Toolkit getToolkit() { return getXToolkit(); @@ -318,6 +333,11 @@ public class XCanvasPeer implements CanvasPeer ensureFlush(); } + public void reshape (int x, int y, int width, int height) + { + setBounds (x, y, width, height); + } + public void setCursor(Cursor cursor) { throw new UnsupportedOperationException("FIXME, not implemented"); @@ -328,6 +348,16 @@ public class XCanvasPeer implements CanvasPeer throw new UnsupportedOperationException("FIXME, not implemented"); } + public void enable () + { + setEnabled (true); + } + + public void disable () + { + setEnabled (false); + } + public void setEventMask(long eventMask) { WindowAttributes attributes = new WindowAttributes(); @@ -371,6 +401,16 @@ public class XCanvasPeer implements CanvasPeer } } + public void show () + { + setVisible (true); + } + + public void hide () + { + setVisible (false); + } + static class DoMap implements Runnable { Window window; |