Enhancing SquareNodes with text
Posted: 14 Jan 2013 03:55
So, I need to enhance the square node to be able to contain colored text as well as a number of other things reactive to the mouse input.
I'm following the example here: http://wiki.gephi.org/index.php/HowTo_w ... w_renderer
and using this: https://github.com/gephi/gephi-plugins-bootcamp
as a starting point. Problem is, NetBeans doesn't find any javadocs for PGraphics objects. I had to go find it here:
http://processing.googlecode.com/svn/tr ... sing/core/
And even when I cast it to a PGraphicsJava2D object, I still don't find a straight forward way to write text into it.
http://processing.googlecode.com/svn/tr ... ava2D.html
Essentially, I want my nodes to be responsive to mouseover, with small summaries of data on them when the mouse is not over them. How do I essentially embed a small JPanel (its what I'm familiar with, I'm watching some of the netbeans stuff, but its hard to understand-I know there's a TopLevelComponent) for each node? Maybe that doesn't sound lightweight at all, I agree, someone point me in the right direction-I want to have data displayed for each node, preferably if it was a sort of rectangular table of information that you could look over when you mouse over, and still hold maybe 2-4 short strings in it, when the mouse is not over it.
I'm following the example here: http://wiki.gephi.org/index.php/HowTo_w ... w_renderer
and using this: https://github.com/gephi/gephi-plugins-bootcamp
as a starting point. Problem is, NetBeans doesn't find any javadocs for PGraphics objects. I had to go find it here:
http://processing.googlecode.com/svn/tr ... sing/core/
And even when I cast it to a PGraphicsJava2D object, I still don't find a straight forward way to write text into it.
http://processing.googlecode.com/svn/tr ... ava2D.html
Essentially, I want my nodes to be responsive to mouseover, with small summaries of data on them when the mouse is not over them. How do I essentially embed a small JPanel (its what I'm familiar with, I'm watching some of the netbeans stuff, but its hard to understand-I know there's a TopLevelComponent) for each node? Maybe that doesn't sound lightweight at all, I agree, someone point me in the right direction-I want to have data displayed for each node, preferably if it was a sort of rectangular table of information that you could look over when you mouse over, and still hold maybe 2-4 short strings in it, when the mouse is not over it.