I assume you are talking about this in the context of PDFNet Android SDK.
Yes, you are able to achieve this easily by saving the clicking position in the current tool and then retrieve it when ToolManager.createTool() is called. For example, you can have the following code in your customized tool named MyTool:
class MyTool implements PDFViewCtrl.Tool{
public float m_click_x;
public float m_click_y;
public boolean onSingleTapConfirmed(MotionEvent e) {
//save it in the tool
m_click_x = e.getX();
m_click_y = e.getY();
}
…
}
Then
public class MyToolManager implements PDFViewCtrl.ToolManager{
public PDFViewCtrl.Tool createTool(int mode, PDFViewCtrl ctrl, PDFViewCtrl.Tool current_tool) {