Class PDFCmd

java.lang.Object
org.loboevolution.pdfview.PDFCmd
Direct Known Subclasses:
PDFShapeCmd

public abstract class PDFCmd extends Object
The abstract superclass of all drawing commands for a PDFPage.

Author Mike Wessler

  • Constructor Details

    • PDFCmd

      public PDFCmd()
  • Method Details

    • execute

      public abstract Rectangle2D execute(PDFRenderer state)
      mark the page or change the graphics state
      Parameters:
      state - the current graphics state; may be modified during execution.
      Returns:
      the region of the page made dirty by executing this command or null if no region was touched. Note this value should be in the coordinates of the image touched, not the page.
    • toString

      public String toString()

      a human readable representation of this command

      Overrides:
      toString in class Object
    • getDetails

      public String getDetails()
      the details of this command
      Returns:
      a String object.