Class XpsDevice

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void addRect( rect)
      Appends a rectangle to the current path as a complete subpath.
      void beginDocument(Document document, Class<? extends GraphicContext> clazz)
      Begins rendering of the document.
      boolean beginElement(Element element, rect)
      Begins rendering of the html element.
      void beginPage( size)
      Begins rendering of the new page.
      void clip(int mode)
      Modifies the current clipping path by intersecting it with the current path, using the FillMode rule to determine the region to fill.
      void closePath()
      Closes the current subpath by appending a straight line segment from the current point to the starting point of the subpath.
      void cubicBezierTo( cubP1, cubP2, cubP3)
      Appends a cubic Bézier curve to the current path.
      void drawImage(byte[] data, int type, rectangle)
      Draws the specified image.
      void endDocument()
      Ends rendering of the document.
      void endElement(Element element)
      Ends rendering of the html element.
      void endPage()
      Ends rendering of the current page.
      void fill(int mode)
      Fills the entire region enclosed by the current path.
      void fillText(String text, position)
      Fills the specified text string at the specified location.
      Class<? extends GraphicContext> getGraphicContextClass()
      Pushes a copy of the entire graphics context onto the stack.
      void lineTo( pos)
      Appends a straight line segment from the current point to the point (pt).
      void moveTo( pos)
      Begins a new subpath by moving the current point to coordinates of the parameter pt, omitting any connecting line segment.
      void restoreGraphicContext()
      Restores the entire graphics context to its former value by popping it from the stack.
      void stroke()
      Strokes a line along the current path.
      void strokeAndFill(int mode)
      Strokes and fill current path.
      void strokeText(String text, position)
      Strokes the specified text string at the specified location.