org.freedesktop.cairo

Class Surface

public class Surface extends CairoObject

Deprecated: This class is part of the java-gnome 2.x family of libraries, which, due to their inefficiency and complexity, are no longer being maintained and have been abandoned by the java-gnome project. This class may exist in java-gnome 4.0; look out for org.freedesktop.cairo.Surface. As this package was never correctly implemented in java-gnome 2.x, any new code written will likely have a considerably different public API.

The Surface class represents an Cairo drawing surface. A Cairo object is used to draw on the drawing surface.
Method Summary
SurfacecreateSimilar(Content content, int width, int height)
voidfinish()
voidflush()
FontOptionsgetFontOptions()
voidmarkDirty()
voidmarkDirty(int x, int y, int width, int height)
voidsetDeviceOffset(double xOffset, double yOffset)
voidwriteToPNG(String filename)
voidwriteToPNG(OutputStream ostream)

Method Detail

createSimilar

public Surface createSimilar(Content content, int width, int height)

finish

public void finish()

flush

public void flush()

getFontOptions

public FontOptions getFontOptions()

markDirty

public void markDirty()

markDirty

public void markDirty(int x, int y, int width, int height)

setDeviceOffset

public void setDeviceOffset(double xOffset, double yOffset)

writeToPNG

public void writeToPNG(String filename)

writeToPNG

public void writeToPNG(OutputStream ostream)