com.levigo.jadice.annotation
Class StampImageAnnotation
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
com.levigo.jadice.annotation.StampImageAnnotation
- All Implemented Interfaces:
- PermissionsProvider<Annotation>, PropertiesProvider, MementoOriginator, Cloneable
public class StampImageAnnotation
- extends ImageAnnotation
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 |
StampImageAnnotation
public StampImageAnnotation()
isUseCenterAsOrigin
public boolean isUseCenterAsOrigin()
setUseCenterAsOrigin
public void setUseCenterAsOrigin(boolean useCenterAsOrigin)
getPathIterator
public PathIterator getPathIterator()
getBounds
public Rectangle2D getBounds()
- Description copied from class:
ShapeBasedAnnotation
- Returns an integer
Rectangle
that completely encloses the annotation.
- Overrides:
getBounds
in class RectangleAnnotation
- Returns:
- Rectangle annotation bounding box
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 ImageAnnotation
setLocation
public void setLocation(double x,
double y)
- Description copied from class:
ShapeBasedAnnotation
- Set the location (upper-left corner) of the annotation to the given point.
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:
setLocation
in class RectangleAnnotation
- Parameters:
x
- X-positiony
- Y-position
getRotation
public int getRotation()
setRotation
public void setRotation(int rotation)
getContentStream
public SeekableInputStream getContentStream()
- Description copied from class:
ObjectAnnotation
- Return current content stream.
- Overrides:
getContentStream
in class ObjectAnnotation
- Returns:
- Content represented by an
SeekableInputStream
clone
public StampImageAnnotation clone()
- Overrides:
clone
in class ImageAnnotation
- See Also:
Object.clone()
copyAttributesTo
protected void copyAttributesTo(Annotation annotation)
- Description copied from class:
Annotation
- Copy annotation type related attributes to new annotation.
- Overrides:
copyAttributesTo
in class ObjectAnnotation
- Parameters:
annotation
- Annotation to set attributes
translate
public void translate(double dx,
double dy)
- Description copied from class:
Annotation
- Translates this
Annotation
the indicated distance, to the right along the x
coordinate axis, and downward along the y coordinate axis.
- Overrides:
translate
in class RectangleAnnotation
- Parameters:
dx
- the distance to move this Rectangle
along the x axisdy
- the distance to move this Rectangle
along the y axis
isAllowRotation
public boolean isAllowRotation()
- Returns current rotation handle flag.
- Returns:
- Current flag
setAllowRotation
public void setAllowRotation(boolean allowRotation)
- Set flag to enable/disable the rotation handle.
- Parameters:
allowRotation
-
Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.