You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Richard Zschech <ri...@cqrdata.com> on 2005/05/02 07:54:17 UTC

Interactive basic-link

I'm trying to implement a simple fo reader and am having trouble finding 
information about the links with in a document. I'm using 1.0dev and the 
Java2DRenderer developed for bug 33760 [1].  I would like to be able to:

Given a mouse position, find the basic-links under it.
Given an id-ref from a uri fragment or internal link, find the page and 
position on the page for the element with that id.

I have found the method AreaTreeHandler.getPageViewportsContainingID 
which gives the pages a given id is on but not the position on the page.
The FOEventHandler <ci...@cqrdata.com> has methods 
startLink and endLink which I think can be used to gather information 
about the areas generated for the link but I'm not sure how.

I'm guessing the development team intends to implement the functionality 
I'm describing some time in the future. Would it be much work to 
implement? If it simple enough for me todo could someone give me some 
pointers? Should I submit an RFE for this?

Also it would be nice to have access to the 
destination-placement-offset, show-destination, indicate-destination, 
target-processing-context, and target-stylesheet properties of the links 
too.

Thanks in advance,
 From Richard.

[1] http://issues.apache.org/bugzilla/show_bug.cgi?id=33760

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org