public class TextHighlightAnnotation extends ShapeBasedAnnotation
Modifier and Type | Field and Description |
---|---|
protected List<Path2D> |
areas |
protected boolean |
highlighted |
protected boolean |
strikethrough |
protected boolean |
underscored |
allowResize, fillColor, filled, iconified, linePainted, lineWidth, strokeColor, strokeResolution
createdAt, createdBy, doFireAnnotationEvents, id, initializer, isModified, lastModifiedAt, lastModifiedBy
Constructor and Description |
---|
TextHighlightAnnotation() |
Modifier and Type | Method and Description |
---|---|
void |
addArea(Path2D path)
Add
Path2D object representing a rectangle (defined with 4 points) covering text
content. |
TextHighlightAnnotation |
clone() |
protected void |
copyAttributesTo(Annotation annotation)
Copy annotation type related attributes to new annotation.
|
List<Path2D> |
getAreas() |
Rectangle2D |
getBounds()
Returns an integer
Rectangle that completely encloses the annotation. |
Shape |
getShape()
Shape for render structure
|
boolean |
isHighlighted() |
boolean |
isStrikethrough() |
boolean |
isUnderscored() |
void |
setAreas(List<Path2D> areas)
|
void |
setHighlighted(boolean highlighted)
Enable / disable highlight effect.
|
void |
setLocation(double x,
double y)
Not supported, annotation is not intended to be movable.
|
void |
setSize(double width,
double height)
Not supported, annotation is not intended to be resizable.
|
void |
setStrikethrough(boolean strikethrough)
Enable / disable strike through effect.
|
void |
setUnderscored(boolean underscored)
Enable / disable underscore effect.
|
void |
translate(double dx,
double dy)
Not supported, annotation is not intended to be movable.
|
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
protected boolean underscored
protected boolean strikethrough
protected boolean highlighted
public void addArea(Path2D path)
Path2D
object representing a rectangle (defined with 4 points) covering text
content.
Supported path operations (see PathIterator
):
path
- Path2D
object to add to area.IllegalArgumentException
- Thrown by unsupported path definitions.public void setAreas(List<Path2D> areas)
List
containing Path2D
area definitions. Area objects will be verified, see
addArea(Path2D)
method description.public Shape getShape()
ShapeBasedAnnotation
getShape
in class ShapeBasedAnnotation
public Rectangle2D getBounds()
ShapeBasedAnnotation
Rectangle
that completely encloses the annotation.getBounds
in class ShapeBasedAnnotation
public void translate(double dx, double dy)
translate
in class Annotation
dx
- the distance to move this Rectangle
along the x axisdy
- the distance to move this Rectangle
along the y axispublic void setSize(double width, double height)
setSize
in class Annotation
public void setLocation(double x, double y)
setLocation
in class ShapeBasedAnnotation
x
- X-positiony
- Y-positionpublic TextHighlightAnnotation clone()
clone
in class Annotation
Object.clone()
protected void copyAttributesTo(Annotation annotation)
Annotation
copyAttributesTo
in class ShapeBasedAnnotation
annotation
- Annotation to set attributespublic boolean isUnderscored()
public void setUnderscored(boolean underscored)
public boolean isStrikethrough()
public void setStrikethrough(boolean strikethrough)
public boolean isHighlighted()
public void setHighlighted(boolean highlighted)
Copyright © 2024 levigo holding gmbh. All rights reserved.