Class DSCCommentBoundingBox

All Implemented Interfaces:
DSCParserConstants, DSCComment, DSCEvent
Direct Known Subclasses:
DSCCommentHiResBoundingBox, DSCCommentPageBoundingBox

public class DSCCommentBoundingBox extends AbstractDSCComment
Represents a %%BoundingBox DSC comment.
  • Constructor Details

    • DSCCommentBoundingBox

      public DSCCommentBoundingBox()
      Creates a new instance.
    • DSCCommentBoundingBox

      public DSCCommentBoundingBox(Rectangle2D bbox)
      Creates a new instance.
      Parameters:
      bbox - the bounding box
  • Method Details

    • getBoundingBox

      public Rectangle2D getBoundingBox()
      Returns the bounding box.
      Returns:
      the bounding box
    • setBoundingBox

      public void setBoundingBox(Rectangle2D bbox)
      Sets the bounding box.
      Parameters:
      bbox - the bounding box
    • getName

      public String getName()
      Returns the name of the DSC comment.
      Returns:
      the name of the DSC comment (without the "%%" prefix)
    • hasValues

      public boolean hasValues()
      Indicates whether this DSC comment has values.
      Returns:
      true if the DSC comment has values
    • parseValue

      public void parseValue(String value)
      Parses the value of the DSC comment.
      Parameters:
      value - the value
    • generate

      public void generate(PSGenerator gen) throws IOException
      Writes the event to the given PSGenerator.
      Parameters:
      gen - the PSGenerator to write to
      Throws:
      IOException - In case of an I/O error
      See Also: