|
Last change
on this file since 1519 was 2, checked in by bird, 23 years ago |
|
Initial revision
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
|
File size:
846 bytes
|
| Line | |
|---|
| 1 | /* Copyright (C) 2000 Free Software Foundation
|
|---|
| 2 |
|
|---|
| 3 | This file is part of libgcj.
|
|---|
| 4 |
|
|---|
| 5 | This software is copyrighted work licensed under the terms of the
|
|---|
| 6 | Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
|---|
| 7 | details. */
|
|---|
| 8 |
|
|---|
| 9 | package gnu.gcj.xlib;
|
|---|
| 10 |
|
|---|
| 11 | import gnu.gcj.RawData;
|
|---|
| 12 | import java.awt.Rectangle;
|
|---|
| 13 |
|
|---|
| 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[].
|
|---|
| 20 | *
|
|---|
| 21 | * @author Rolf W. Rasmussen <[email protected]>
|
|---|
| 22 | */
|
|---|
| 23 | final class Clip
|
|---|
| 24 | {
|
|---|
| 25 | public Clip(Rectangle[] rects)
|
|---|
| 26 | {
|
|---|
| 27 | init(rects);
|
|---|
| 28 | }
|
|---|
| 29 |
|
|---|
| 30 | private native void init(Rectangle[] rects);
|
|---|
| 31 |
|
|---|
| 32 | public native void finalize();
|
|---|
| 33 |
|
|---|
| 34 | RawData xrects;
|
|---|
| 35 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.