org.icepdf.core.views
Interface AnnotationComponent

All Known Implementing Classes:
AnnotationComponentImpl

public interface AnnotationComponent

AnnotationComponent interfaces. Oulines two main methods needed for management and state saving but avoids having to load the Swing/awt libraries unless necessary.

Since:
4.0

Method Summary
 Annotation getAnnotation()
          Gets wrapped annotation object.
 Document getDocument()
           
 int getPageIndex()
           
 PageViewComponent getParentPageView()
           
 boolean hasFocus()
          Component has focus.
 boolean isBorderStyle()
           
 boolean isEditable()
           
 boolean isLinkAnnot()
           
 boolean isRollover()
           
 boolean isSelected()
           
 void refreshAnnotationRect()
          Refreshed the annotation rectangle by inverting the components current bounds with the current page transformation.
 void refreshDirtyBounds()
          Refreshs the annotations bounds rectangle.
 

Method Detail

getAnnotation

Annotation getAnnotation()
Gets wrapped annotation object.

Returns:
annotation that this component wraps.

refreshDirtyBounds

void refreshDirtyBounds()
Refreshs the annotations bounds rectangle. This method insures that the bounds have been correctly adjusted for the current page transformation In a none visual representation this method may not have to do anything.


refreshAnnotationRect

void refreshAnnotationRect()
Refreshed the annotation rectangle by inverting the components current bounds with the current page transformation.


hasFocus

boolean hasFocus()
Component has focus.

Returns:
true if has focus, false otherwise.

isEditable

boolean isEditable()

isRollover

boolean isRollover()

isLinkAnnot

boolean isLinkAnnot()

isBorderStyle

boolean isBorderStyle()

isSelected

boolean isSelected()

getDocument

Document getDocument()

getPageIndex

int getPageIndex()

getParentPageView

PageViewComponent getParentPageView()