DSCParserConstants
, DSCComment
, DSCEvent
DSCCommentHiResBoundingBox
, DSCCommentPageBoundingBox
public class DSCCommentBoundingBox extends AbstractDSCComment
COMMENT, DSC_COMMENT, EOF, HEADER_COMMENT, LINE
Constructor | Description |
---|---|
DSCCommentBoundingBox() |
Creates a new instance.
|
DSCCommentBoundingBox(java.awt.geom.Rectangle2D bbox) |
Creates a new instance.
|
Modifier and Type | Method | Description |
---|---|---|
void |
generate(PSGenerator gen) |
Writes the event to the given PSGenerator.
|
java.awt.geom.Rectangle2D |
getBoundingBox() |
Returns the bounding box.
|
java.lang.String |
getName() |
Returns the name of the DSC comment.
|
boolean |
hasValues() |
Indicates whether this DSC comment has values.
|
void |
parseValue(java.lang.String value) |
Parses the value of the DSC comment.
|
void |
setBoundingBox(java.awt.geom.Rectangle2D bbox) |
Sets the bounding box.
|
asDSCComment, getEventType, isAtend, isDSCComment, splitParams
asLine, isComment, isHeaderComment, isLine
asLine, isComment, isHeaderComment, isLine
public DSCCommentBoundingBox()
public DSCCommentBoundingBox(java.awt.geom.Rectangle2D bbox)
bbox
- the bounding boxpublic java.awt.geom.Rectangle2D getBoundingBox()
public void setBoundingBox(java.awt.geom.Rectangle2D bbox)
bbox
- the bounding boxpublic java.lang.String getName()
public boolean hasValues()
public void parseValue(java.lang.String value)
value
- the valuepublic void generate(PSGenerator gen) throws java.io.IOException
gen
- the PSGenerator to write tojava.io.IOException
- In case of an I/O errorDSCEvent.generate(
org.apache.xmlgraphics.ps.PSGenerator)
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.