|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface PageViewComponent
The PageViewComponent interaces should be used by any page view
implementation to represent a single page view. The methods defined in this
interface are the most commonly used methods and are used by the
AbstractDocumentView and AbstractDocumentViewModel.
PageViewComponentImpl| Method Summary | |
|---|---|
AnnotationComponent |
addAnnotation(Annotation annotation)
Add a new annotation object to this page view comnponent. |
void |
clearSelectedText()
Clear any internal data stractures that represent selected text and repaint the component. |
void |
dispose()
Called to free resources used by this component. |
int |
getPageIndex()
Gets the page index which this PageViewComponent is drawing. |
void |
init()
Called to initialize resources used by this class. |
void |
invalidate()
Called to invalidate the component. |
void |
invalidatePage()
Invalidates the underling document page and resepctive resources. |
boolean |
isShowing()
Indicates that the page is showing; |
void |
removeAnnotation(AnnotationComponent annotationComp)
Remove the specified annotation from this page view. |
void |
setDocumentViewCallback(DocumentView parentDocumentView)
Set the parent Document View class which is resbonsible for drawing and the general management of PageViewComponents for a particular view. |
void |
setTextSelectionRectangle(java.awt.Point cursorLocation,
java.awt.Rectangle selection)
Sets the text that is contained in the specified recttangle and the given mouse pointer. |
| Method Detail |
|---|
void setDocumentViewCallback(DocumentView parentDocumentView)
parentDocumentView - type of view, single page, continuous, etc.int getPageIndex()
void init()
void invalidatePage()
void dispose()
void invalidate()
boolean isShowing()
void clearSelectedText()
void setTextSelectionRectangle(java.awt.Point cursorLocation,
java.awt.Rectangle selection)
cursorLocation - location of cursor or mouse.selection - rectangle of text to include in selection.AnnotationComponent addAnnotation(Annotation annotation)
annotation - annotation to add.void removeAnnotation(AnnotationComponent annotationComp)
annotationComp - annotation to be removed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||