com.levigo.jadice.annotation
Class ImageAnnotation
java.lang.Object
com.levigo.jadice.annotation.Annotation
com.levigo.jadice.annotation.ShapeBasedAnnotation
com.levigo.jadice.annotation.RectangleAnnotation
com.levigo.jadice.annotation.ObjectAnnotation
com.levigo.jadice.annotation.ImageAnnotation
- All Implemented Interfaces:
- PermissionsProvider<Annotation>, PropertiesProvider, MementoOriginator, Cloneable
- Direct Known Subclasses:
- StampImageAnnotation
public class ImageAnnotation
- extends ObjectAnnotation
Methods inherited from class com.levigo.jadice.annotation.ShapeBasedAnnotation |
createColorWithAlpha, getFillColor, getLineWidth, getStrokeColor, getStrokeResolution, isAllowResize, isFilled, isIconified, isLinePainted, setAllowResize, setFillColor, setFilled, setIconified, setLinePainted, setLineWidth, setStrokeColor, setStrokeResolution |
Methods inherited from class com.levigo.jadice.annotation.Annotation |
clearModified, createMemento, fireAnnotationChange, getChangeHandler, getCreatedAt, getCreatedBy, getID, getInitializer, getLastModifiedAt, getLastModifiedBy, getModCount, getPermissions, getProperties, getType, initialize, isDoFireAnnotationEvents, isInitialized, isModified, restoreFrom, setChangeHandler, setCreatedBy, setCreationTimestamp, setDoFireAnnotationEvents, setID, setInitializer, setLastModifiedBy, setModified, setModifyTimestamp, setType |
ImageAnnotation
public ImageAnnotation()
setSize
public void setSize(double width,
double height)
- Description copied from class:
Annotation
- Set the size of the annotation to the given size. Depending on the type of annotation, this may
not be possible. E.g. stamp annotations handle the sizing on their own, so they will refuse to
resize themselves. An
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.
- Overrides:
setSize
in class RectangleAnnotation
clone
public ImageAnnotation clone()
- Overrides:
clone
in class ObjectAnnotation
- See Also:
Object.clone()
setContentStream
public void setContentStream(SeekableInputStream inputStream)
throws JadiceException
- Description copied from class:
ObjectAnnotation
- Set content represented by an
SeekableInputStream
.
- Overrides:
setContentStream
in class ObjectAnnotation
- Parameters:
inputStream
- Content stream of this object annotation
- Throws:
JadiceException
Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.