2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / libjava / gnu / gcj / xlib / XExposeEvent.java
blob2c29cf131e369630325cd2ef3bd945c1ea3af3dc
1 /* Copyright (C) 2000 Free Software Foundation
3 This file is part of libgcj.
5 This software is copyrighted work licensed under the terms of the
6 Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
7 details. */
9 package gnu.gcj.xlib;
11 import java.awt.Rectangle;
13 /**
14 * Interprets data from an Xlib XExposeEvent.
16 * @author Rolf W. Rasmussen <rolfwr@ii.uib.no>
18 public class XExposeEvent extends XEvent
20 public XExposeEvent(XAnyEvent event)
22 super(event);
24 // FIXME: Avoid double checking?
25 if (event.getType() != XAnyEvent.TYPE_EXPOSE)
26 throw new IllegalArgumentException("Wrong event type");
29 public native Rectangle getBounds();