org.freedesktop.cairo
Class Surface

java.lang.Object
  extended byorg.gnu.glib.Struct
      extended byorg.freedesktop.cairo.CairoObject
          extended byorg.freedesktop.cairo.Surface
Direct Known Subclasses:
ImageSurface, PDFSurface

public class Surface
extends org.freedesktop.cairo.CairoObject

The Surface class represents an Cairo drawing surface. A Cairo object is used to draw on the drawing surface.


Method Summary
 Surface createSimilar(Content content, int width, int height)
           
 void finish()
           
 void flush()
           
 FontOptions getFontOptions()
           
 void markDirty()
           
 void markDirty(int x, int y, int width, int height)
           
 void setDeviceOffset(double xOffset, double yOffset)
           
 void writeToPNG(java.io.OutputStream ostream)
           
 void writeToPNG(java.lang.String filename)
           
 
Methods inherited from class org.gnu.glib.Struct
equals, getHandle, getNullHandle, hashCode
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createSimilar

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

finish

public void finish()

setDeviceOffset

public void setDeviceOffset(double xOffset,
                            double yOffset)

writeToPNG

public void writeToPNG(java.lang.String filename)

writeToPNG

public void writeToPNG(java.io.OutputStream ostream)

getFontOptions

public FontOptions getFontOptions()

flush

public void flush()

markDirty

public void markDirty()

markDirty

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