Getting the Value of intersection point for CrossHair
Posted: Tue Nov 13, 2007 8:52 am
Hi:
We have implemented CrossHair feature as below -
But, we would like to get the intersection point displayed after the mouse clicked event on the intersection point. Is this feasible? Thank you.
best regards,
We have implemented CrossHair feature as below -
Code: Select all
ImageIcon img2 = new ImageIcon("images/CrossHair16.gif");
m_bCrossHair = new SmallToggleButton(false, img2, img2,
"CrossHair");
ActionListener crossHair = new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (m_bCrossHair.isSelected()) {
dsCrossHair.setActive(true);
tChart2.getZoom().zoomPercent(100);
dsCrossHair.setChart(tChart2.getChart());
dsCrossHair.setFollowMouse(true);
} else {
dsCrossHair.setActive(false);
tChart2.getZoom().undo();
}
}
};
best regards,