Select object


#1

Hi,

I am selecting a graph components on the fly, via
JGoSelection selection = m_view.getSelection();
selection.selectObject(nextObj);

Since the newly selected object might not be in the visible area
of the view, is it possible to move the visible rectangle of the view
to make sure that the primary selected object is visible. What
might be the best way to do this?

Thanks in advance,
Marco


#2

Use JGoView.scrollRectToVisible(Rectangle)


#3

Hi Walter,

thanks a lot. This works great!

Regards,
Marco