Package org.jpedal.examples.handlers
Class ExampleAnnotationHandler
java.lang.Object
org.jpedal.examples.handlers.ExampleAnnotationHandler
- All Implemented Interfaces:
 org.jpedal.external.AnnotationHandler
public class ExampleAnnotationHandler
extends Object
implements org.jpedal.external.AnnotationHandler
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidcheckLinks(Map<FormObject, String> objs, boolean mouseClicked, org.jpedal.io.PdfObjectReader pdfObjectReader, int x, int y, org.jpedal.examples.viewer.gui.SwingGUI currentGUI, org.jpedal.examples.viewer.Values commonValues) called when mouse moves so you can react to contextvoidhandleAnnotations(PdfDecoderInt decode_pdf, Map<FormObject, String> objs, int p) example code to adapt 
- 
Constructor Details
- 
ExampleAnnotationHandler
public ExampleAnnotationHandler() 
 - 
 - 
Method Details
- 
handleAnnotations
example code to adapt- Specified by:
 handleAnnotationsin interfaceorg.jpedal.external.AnnotationHandler- Parameters:
 decode_pdf- an object that decodes the pdfobjs- a map of form objectsp- the page number containing the annotations we are handling
 - 
checkLinks
public void checkLinks(Map<FormObject, String> objs, boolean mouseClicked, org.jpedal.io.PdfObjectReader pdfObjectReader, int x, int y, org.jpedal.examples.viewer.gui.SwingGUI currentGUI, org.jpedal.examples.viewer.Values commonValues) Description copied from interface:org.jpedal.external.AnnotationHandlercalled when mouse moves so you can react to context- Specified by:
 checkLinksin interfaceorg.jpedal.external.AnnotationHandler- Parameters:
 objs- a map of form objectsmouseClicked- check if mouse has been clicked- true if mouse has been clickedpdfObjectReader- an object reading the data of the pdfx- the x coordinate of the mouse positiony- the y coordinate of the mouse positioncurrentGUI- the current gui where mouse is movingcommonValues- all common values
 
 -