public class StampImageAnnotation extends ImageAnnotation
contentStream
shape
allowResize, fillColor, filled, iconified, linePainted, lineWidth, strokeColor, strokeResolution
createdAt, createdBy, doFireAnnotationEvents, id, initializer, isModified, lastModifiedAt, lastModifiedBy
Constructor and Description |
---|
StampImageAnnotation() |
Modifier and Type | Method and Description |
---|---|
StampImageAnnotation |
clone() |
protected void |
copyAttributesTo(Annotation annotation)
Copy annotation type related attributes to new annotation.
|
Rectangle2D |
getBounds()
Returns an integer
Rectangle that completely encloses the annotation. |
SeekableInputStream |
getContentStream()
Return current content stream.
|
PathIterator |
getPathIterator() |
int |
getRotation() |
boolean |
isAllowRotation()
Returns current rotation handle flag.
|
boolean |
isUseCenterAsOrigin() |
void |
setAllowRotation(boolean allowRotation)
Set flag to enable/disable the rotation handle.
|
void |
setLocation(double x,
double y)
Set the location (upper-left corner) of the annotation to the given point.
|
void |
setRotation(int rotation) |
void |
setSize(double width,
double height)
Set the size of the annotation to the given size.
|
void |
setUseCenterAsOrigin(boolean useCenterAsOrigin) |
void |
translate(double dx,
double dy)
Translates this
Annotation the indicated distance, to the right along the x
coordinate axis, and downward along the y coordinate axis. |
setContentStream
getRectangle, getShape, setRectangle
createColorWithAlpha, getFillColor, getLineWidth, getStrokeColor, getStrokeResolution, isAllowResize, isFilled, isIconified, isLinePainted, setAllowResize, setFillColor, setFilled, setIconified, setLinePainted, setLineWidth, setStrokeColor, setStrokeResolution
clearModified, createMemento, fireAnnotationChange, getChangeHandler, getCreatedAt, getCreatedBy, getID, getInitializer, getLastModifiedAt, getLastModifiedBy, getModCount, getPermissions, getProperties, getType, initialize, isDoFireAnnotationEvents, isInitialized, isLoadedAnnotation, isModified, restoreFrom, setChangeHandler, setCreatedBy, setCreationTimestamp, setDoFireAnnotationEvents, setID, setInitializer, setLastModifiedBy, setModified, setModifyTimestamp, setType
public boolean isUseCenterAsOrigin()
public void setUseCenterAsOrigin(boolean useCenterAsOrigin)
public PathIterator getPathIterator()
public Rectangle2D getBounds()
ShapeBasedAnnotation
Rectangle
that completely encloses the annotation.getBounds
in class RectangleAnnotation
public void setSize(double width, double height)
Annotation
IllegalArgumentException
is thrown in this case.
Caveat: it is currently necessary, to force a repaint on the viewer
in order to make the results of the modification visible. Moreover there
are no modification events fired on the page and document. This will change
in the future.setSize
in class ImageAnnotation
public void setLocation(double x, double y)
ShapeBasedAnnotation
setLocation
in class RectangleAnnotation
x
- X-positiony
- Y-positionpublic int getRotation()
public void setRotation(int rotation)
public SeekableInputStream getContentStream()
ObjectAnnotation
getContentStream
in class ObjectAnnotation
SeekableInputStream
public StampImageAnnotation clone()
clone
in class ImageAnnotation
Object.clone()
protected void copyAttributesTo(Annotation annotation)
Annotation
copyAttributesTo
in class ObjectAnnotation
annotation
- Annotation to set attributespublic void translate(double dx, double dy)
Annotation
Annotation
the indicated distance, to the right along the x
coordinate axis, and downward along the y coordinate axis.translate
in class RectangleAnnotation
dx
- the distance to move this Rectangle
along the x axisdy
- the distance to move this Rectangle
along the y axispublic boolean isAllowRotation()
public void setAllowRotation(boolean allowRotation)
Copyright © 2024 levigo holding gmbh. All rights reserved.