Thanks for the reply.
I have some new question. I hope it is not a problem to post them still in this thread. If it is an issue, just let me know and I create separate topics for them.
So,
1) Is it possible that I disable the move function of a vertical bar? I know I can lock the chart object, but locking is also preventing the selected() function to fire. So that is (to lock) is not an option for me.
Tried this, but I guess this moved() is called after the chart object is moved. So this was not preventing the line to be moved with the mouse after double-click on it.
vLine.setChartObjectListener(new ChartObjectAdapter() {
@Override
public void moved(ChartObjectEvent e) {
return;
}
}
2) I have some other chart objects (like Screen Labels and Text), and my vertical lines are in front of them (in the Z-depth) on the chart. Can I organize bring forward, bring backward on chart objects? I want my Screen Labels to be in front of my vertical lines, and maybe I want the vertical lines behind the bars/candles. Is this possible? If yes, how?
Thanks in advance.