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
public class SurfacePattern extends Pattern {
13
public SurfacePattern(Surface surface) {
14
super(cairo_pattern_create_for_surface(surface.getHandle()));
18
* Sets the extend option for the pattern.
23
public void setExtend(Extend extend) {
24
cairo_pattern_set_extend(getHandle(), extend.getValue());
28
* Returns the current extend option for the pattern.
30
* @return The current extend option
32
public Extend getExtend() {
33
return Extend.intern(cairo_pattern_get_extend(getHandle()));
37
* Sets the filter option for the pattern.
41
public void setFilter(Filter filter) {
42
cairo_pattern_set_filter(getHandle(), filter.getValue());
46
* Returns the current filter option for the pattern.
48
* @return The current filter option (One of the Cairo.FILTER_xxx options).
50
public Filter getFilter() {
51
return Filter.intern(cairo_pattern_get_filter(getHandle()));