2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / libjava / gnu / gcj / xlib / Clip.java
blob311dfa6feec8fb876f54e3d9096503ccab261a14
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 gnu.gcj.RawData;
12 import java.awt.Rectangle;
14 /**
15 * Describes a clip that is used to constrain drawing using a GC
16 * within a specific region. Currently it supports clip regions
17 * consisting of the union of multiple rectangles. Other clip forms
18 * may be implented later. This class is used internally by the GC
19 * class, and wraps a native XRectVector[].
21 * @author Rolf W. Rasmussen <rolfwr@ii.uib.no>
23 final class Clip
25 public Clip(Rectangle[] rects)
27 init(rects);
30 private native void init(Rectangle[] rects);
32 public void finalize()
34 dispose ();
37 public native void dispose();
39 RawData xrects;