Class Context

All Implemented Interfaces:
PointerInterface

public class Context extends Record
  • Constructor Details

  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • save

      public void save()
    • restore

      public void restore()
    • rotate

      public void rotate(double angle)
      Parameters:
      angle -
    • paint

      public void paint()
    • paintWithAlpha

      public void paintWithAlpha(double alpha)
      Parameters:
      alpha -
    • setSourceSurface

      public void setSourceSurface(@Nonnull Surface surface, double x, double y)
      Parameters:
      surface -
      x -
      y -
    • setSource

      public void setSource(@Nonnull Pattern source)
      Parameters:
      source -
    • closePath

      public void closePath()
    • setOperator

      public void setOperator(int operator)
      Parameters:
      operator -
    • setLineWidth

      public void setLineWidth(double width)
      Parameters:
      width -
    • setAntialias

      public void setAntialias(int antialias)
      Parameters:
      antialias -
    • moveTo

      public void moveTo(double x, double y)
      Parameters:
      x -
      y -
    • lineTo

      public void lineTo(double x, double y)
      Parameters:
      x -
      y -
    • arc

      public void arc(double xc, double yc, double radius, double angle1, double angle2)
      Parameters:
      xc -
      yc -
      radius -
      angle1 -
      angle2 -
    • setFillRule

      public void setFillRule(int fill_rule)
      Parameters:
      fill_rule -
    • curveTo

      public void curveTo(double x1, double y1, double x2, double y2, double x3, double y3)
      Parameters:
      x1 -
      y1 -
      x2 -
      y2 -
      x3 -
      y3 -
    • stroke

      public void stroke()
    • fill

      public void fill()
    • fillPreserve

      public void fillPreserve()
    • rectangle

      public void rectangle(double x, double y, double width, double height)
      Parameters:
      x -
      y -
      width -
      height -
    • setDash

      public void setDash(@Nonnull Dbl dashes, int num_dashes, double offset)
      Parameters:
      dashes -
      num_dashes -
      offset -
    • setLineCap

      public void setLineCap(int line_cap)
      Parameters:
      line_cap -
    • setLineJoin

      public void setLineJoin(int line_join)
      Parameters:
      line_join -
    • setSourceRgba

      public void setSourceRgba(double red, double green, double blue, double alpha)
      Parameters:
      red -
      green -
      blue -
      alpha -
    • setSourceRgb

      public void setSourceRgb(double red, double green, double blue)
      Parameters:
      red -
      green -
      blue -
    • destroy

      public void destroy()
      Description copied from class: Record
      Frees resources. Free memory allocated for this record. Object is invalid afterwards and should not be accessed.
      Overrides:
      destroy in class Record
    • resetClip

      public void resetClip()
    • clip

      public void clip()
    • newPath

      public void newPath()
    • setMatrix

      public void setMatrix(@Nonnull Matrix matrix)
      Parameters:
      matrix -
    • transform

      public void transform(@Nonnull Matrix matrix)
      Parameters:
      matrix -
    • identityMatrix

      public void identityMatrix()
    • showText

      public void showText(@Nonnull Str utf8)
      Parameters:
      utf8 -
    • showText

      public void showText(String utf8)
      Parameters:
      utf8 -
    • getSource

      public Pattern getSource()
      Returns:
    • getCurrentPoint

      public void getCurrentPoint(@Nonnull Dbl x, @Nonnull Dbl y)
      Parameters:
      x -
      y -
    • translate

      public void translate(double x, double y)
      Parameters:
      x -
      y -
    • scale

      public void scale(double x, double y)
      Parameters:
      x -
      y -
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()