cnriccomi
19-06-2007, 05:29 PM
OK Guys,
I finally got a tooltip class that works. I ended up having to basically rewrite Java's "light weight popup" class (there were a number of reasons for doing this). In any case, I'm attaching a GraphView.java demo here, as well as in the pap repository.
I hope this is of use to someone. It does a number of things. For one, you can make tooltips sticky or unsticky. For another, though I haven't implemented it, you should be able to make tooltips draggable (something that was very very difficult with java's tooltip implementation). Finally, it behaves a little bit more predictably than java's tooltips (or the custom tooltips in prefuse).
Chris
I finally got a tooltip class that works. I ended up having to basically rewrite Java's "light weight popup" class (there were a number of reasons for doing this). In any case, I'm attaching a GraphView.java demo here, as well as in the pap repository.
I hope this is of use to someone. It does a number of things. For one, you can make tooltips sticky or unsticky. For another, though I haven't implemented it, you should be able to make tooltips draggable (something that was very very difficult with java's tooltip implementation). Finally, it behaves a little bit more predictably than java's tooltips (or the custom tooltips in prefuse).
Chris