JGo 5.1 - I have a class that extends from JGoPalette. I’m trying to make the nodes in the palette single selection.
I overrode JGoSelection and am trying to use it, but my selection handles are not showing up at all.
public class SingleJGoSelection extends JGoSelection {
public SingleJGoSelection(){
super();
}
public JGoObject selectObject(JGoObject obj){
// if (obj instanceof ModelNode){
// clearSelection();
// }
super.selectObject(obj);
return obj;
}
}
Code in my JGoPalette:
/* (non-Javadoc)
* @see com.nwoods.jgo.JGoView#createDefaultSelection()
*/
public JGoSelection createDefaultSelection(){
return new SingleJGoSelection();
}
Any hints on what I am doing wrong? Does the createDefaultSelection() method do something other than just create the JGoSelection object?