How can I detect click on Axis Tick Label and get its Text / Value?
For example I need set range maximum on value that i clicked on Domain / Range Axis.
I tried this way, but ce is never instance of TickLabelEntity.
Code: Select all
chartPanel.addChartMouseListener(new ChartMouseListener() {
public void chartMouseClicked(ChartMouseEvent cme) {
ChartEntity ce = cme.getEntity();
if(ce instanceof TickLabelEntity)
{
System.out.println("!!!!!!");
}
}
//...
});