Class XFDFSquareAnnotation
- java.lang.Object
-
- com.levigo.jadice.annotation.Annotation
-
- com.levigo.jadice.annotation.ShapeBasedAnnotation
-
- com.levigo.jadice.format.xfdf.annotation.XFDFAnnotation
-
- com.levigo.jadice.format.xfdf.annotation.XFDFMarkupAnnotation
-
- com.levigo.jadice.format.xfdf.annotation.XFDFSquareAnnotation
-
- All Implemented Interfaces:
PermissionsProvider<Annotation>
,PropertiesProvider
,Cloneable
,MementoOriginator
public final class XFDFSquareAnnotation extends XFDFMarkupAnnotation
A XFDFSquareAnnotation displays a rectangle on the page. They correspond to XFDF Square Annotations.
-
-
Field Summary
-
Fields inherited from class com.levigo.jadice.format.xfdf.annotation.XFDFMarkupAnnotation
contentsRichtext, intent, opacity, popup, replies, subject
-
Fields inherited from class com.levigo.jadice.format.xfdf.annotation.XFDFAnnotation
contents, flags, rect, title
-
Fields inherited from class com.levigo.jadice.annotation.ShapeBasedAnnotation
allowResize, fillColor, filled, iconified, linePainted, lineWidth, strokeColor, strokeResolution
-
Fields inherited from class com.levigo.jadice.annotation.Annotation
createdAt, createdBy, doFireAnnotationEvents, id, initializer, isModified, lastModifiedAt, lastModifiedBy
-
-
Constructor Summary
Constructors Constructor Description XFDFSquareAnnotation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Annotation
clone()
protected void
copyAttributesTo(Annotation annotation)
Copy annotation type related attributes to new annotation.Rectangle2D
getBounds()
Returns an integerRectangle
that completely encloses the annotation.float[]
getDashes()
double
getIntensity()
Shape
getShape()
Shape for render structureBorderStyle
getStyle()
void
setDashes(float[] dashes)
void
setIntensity(double intensity)
void
setStyle(BorderStyle style)
-
Methods inherited from class com.levigo.jadice.format.xfdf.annotation.XFDFMarkupAnnotation
getContentsRichtext, getIntent, getOpacity, getPopup, getReplies, getSubject, setContentsRichtext, setFillColor, setIntent, setOpacity, setPopup, setStrokeColor, setSubject
-
Methods inherited from class com.levigo.jadice.format.xfdf.annotation.XFDFAnnotation
getContents, getFlags, getRect, getTitle, setContents, setFlags, setLocation, setRect, setSize, setTitle, translate
-
Methods inherited from class com.levigo.jadice.annotation.ShapeBasedAnnotation
createColorWithAlpha, getFillColor, getLineWidth, getStrokeColor, getStrokeResolution, isAllowResize, isFilled, isIconified, isLinePainted, setAllowResize, setFilled, setIconified, setLinePainted, setLineWidth, 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, isLoadedAnnotation, isModified, restoreFrom, setChangeHandler, setCreatedBy, setCreationTimestamp, setDoFireAnnotationEvents, setID, setInitializer, setLastModifiedBy, setModified, setModifyTimestamp, setType
-
-
-
-
Method Detail
-
copyAttributesTo
protected void copyAttributesTo(Annotation annotation)
Description copied from class:Annotation
Copy annotation type related attributes to new annotation.- Overrides:
copyAttributesTo
in classXFDFMarkupAnnotation
- Parameters:
annotation
- Annotation to set attributes
-
getShape
public Shape getShape()
Description copied from class:ShapeBasedAnnotation
Shape for render structure- Specified by:
getShape
in classShapeBasedAnnotation
- Returns:
- Shape
-
getBounds
public Rectangle2D getBounds()
Description copied from class:ShapeBasedAnnotation
Returns an integerRectangle
that completely encloses the annotation.- Specified by:
getBounds
in classShapeBasedAnnotation
- Returns:
- Rectangle annotation bounding box
-
clone
public Annotation clone()
- Specified by:
clone
in classAnnotation
- See Also:
Object.clone()
-
getDashes
public float[] getDashes()
-
setDashes
public void setDashes(float[] dashes)
-
getStyle
public BorderStyle getStyle()
-
setStyle
public void setStyle(BorderStyle style)
-
getIntensity
public double getIntensity()
-
setIntensity
public void setIntensity(double intensity)
-
-