2
* Java-Gnome Bindings Library
4
* Copyright 1998-2005 the Java-Gnome Team, all rights reserved.
6
* The Java-Gnome bindings library is free software distributed under
7
* the terms of the GNU Library General Public License version 2.
9
package org.freedesktop.cairo;
11
import org.gnu.glib.Enum;
13
public class LineJoin extends Enum {
15
static final private int _MITER = 0;
17
static final public LineJoin MITER = new LineJoin(_MITER);
19
static final private int _ROUND = 1;
21
static final public LineJoin ROUND = new LineJoin(_ROUND);
23
static final private int _BEVEL = 2;
25
static final public LineJoin BEVEL = new LineJoin(_BEVEL);
27
static final private LineJoin[] theInterned = new LineJoin[] { MITER,
30
static private java.util.Hashtable theInternedExtras;
32
static final private LineJoin theSacrificialOne = new LineJoin(0);
34
static public LineJoin intern(int value) {
35
if (value < theInterned.length) {
36
return theInterned[value];
38
theSacrificialOne.value_ = value;
39
if (theInternedExtras == null) {
40
theInternedExtras = new java.util.Hashtable();
42
LineJoin already = (LineJoin) theInternedExtras.get(theSacrificialOne);
43
if (already == null) {
44
already = new LineJoin(value);
45
theInternedExtras.put(already, already);
50
private LineJoin(int value) {
54
public boolean test(LineJoin other) {
55
return (value_ & other.value_) == other.value_;