public class ImageAnnotation extends ObjectAnnotation
contentStream
shape
allowResize, fillColor, filled, iconified, linePainted, lineWidth, strokeColor, strokeResolution
createdAt, createdBy, doFireAnnotationEvents, id, initializer, isModified, lastModifiedAt, lastModifiedBy
Constructor and Description |
---|
ImageAnnotation() |
Modifier and Type | Method and Description |
---|---|
ImageAnnotation |
clone() |
void |
setContentStream(SeekableInputStream inputStream)
Set content represented by an
SeekableInputStream . |
void |
setSize(double width,
double height)
Set the size of the annotation to the given size.
|
copyAttributesTo, getContentStream
getBounds, getRectangle, getShape, setLocation, setRectangle, translate
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 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 RectangleAnnotation
public ImageAnnotation clone()
clone
in class ObjectAnnotation
Object.clone()
public void setContentStream(SeekableInputStream inputStream) throws JadiceException
ObjectAnnotation
SeekableInputStream
.setContentStream
in class ObjectAnnotation
inputStream
- Content stream of this object annotationJadiceException
Copyright © 2024 levigo holding gmbh. All rights reserved.