|
|||||||||
| 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 | |
|---|---|
void |
addAnnotation(AnnotationComponent annotation)
Add a new annotation object to this page view comnponent. |
void |
clearSelectedText()
Clear any internal data structures that represent selected text and repaint the component. |
void |
clearSelectionRectangle()
|
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. |
void |
invalidatePageBuffer()
Invalidates the page buffer used for bufferer paints forcing a clean repaint of the pge. |
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 |
setSelectionRectangle(java.awt.Point cursorLocation,
java.awt.Rectangle selection)
Sets the text that is contained in the specified recttangle and the given mouse pointer. |
void |
setToolMode(int viewToolMode)
|
| Method Detail |
|---|
void setDocumentViewCallback(DocumentView parentDocumentView)
parentDocumentView - type of view, single page, continuous, etc.int getPageIndex()
void init()
void invalidatePage()
void invalidatePageBuffer()
void dispose()
void invalidate()
boolean isShowing()
void clearSelectedText()
void setSelectionRectangle(java.awt.Point cursorLocation,
java.awt.Rectangle selection)
cursorLocation - location of cursor or mouse.selection - rectangle of text to include in selection.void clearSelectionRectangle()
void addAnnotation(AnnotationComponent annotation)
annotation - annotation to add.void removeAnnotation(AnnotationComponent annotationComp)
annotationComp - annotation to be removed.void setToolMode(int viewToolMode)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||