public class AnnotationState
extends java.lang.Object
implements org.icepdf.core.Memento
| Modifier and Type | Field and Description |
|---|---|
protected AnnotationComponent |
annotationComponent |
protected java.awt.geom.Rectangle2D.Float |
userSpaceRectangle |
| Constructor and Description |
|---|
AnnotationState(AnnotationComponent annotationComponent)
Stores the annotation state associated with the AnnotationComponents
annotation object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(AnnotationState applyState) |
void |
restore()
Restores the AnnotationComponents state to the state stored during the
construction of this object.
|
void |
restore(org.icepdf.core.pobjects.annotations.Annotation annotation)
Restores the annotation state in this instance to the Annotation
specified as a param.
|
void |
synchronizeState() |
protected java.awt.geom.Rectangle2D.Float userSpaceRectangle
protected AnnotationComponent annotationComponent
public AnnotationState(AnnotationComponent annotationComponent)
annotationComponent - annotation component who's state will be stored.public void apply(AnnotationState applyState)
public void restore()
restore in interface org.icepdf.core.Mementopublic void restore(org.icepdf.core.pobjects.annotations.Annotation annotation)
annotation - annotation to retore state to.public void synchronizeState()