SanKeyNode example

If you are interested in a Java version of the SanKeyPort and SanKeyNode example classes recently made available for GoDiagram, you can try:

http://www.nwoods.com/forum/uploads/SanKeyPort.java
An example use:
[code] SanKeyNode snode = new SanKeyNode("star");
// modify the iconic node's standard image to display a GIF
snode.getImage().setSize(50, 50);
snode.getImage().loadImage(Demo1.class.getResource("star.gif"), true);
snode.setLocation(100, 150);
myView.getDocument().add(snode);
SanKeyNode snode2 = new SanKeyNode("doc1");
snode2.getImage().setSize(50, 50);
snode2.getImage().loadImage(Demo1.class.getResource("doc.gif"), true);
snode2.setLocation(300, 100);
myView.getDocument().add(snode2);
SanKeyNode snode3 = new SanKeyNode("doc2");
snode3.getImage().setSize(50, 50);
snode3.getImage().loadImage(Demo1.class.getResource("doc.gif"), true);
snode3.setLocation(300, 200);
myView.getDocument().add(snode3);
JGoLink link1 = new JGoLink(snode.getPort(), snode2.getPort());
link1.setPen(JGoPen.make(JGoPen.SOLID, 20, Color.blue));
myView.getDocument().add(link1);
JGoLink link2 = new JGoLink(snode.getPort(), snode3.getPort());
link2.setPen(JGoPen.make(JGoPen.SOLID, 10, new Color(0, 128, 0)));
myView.getDocument().add(link2);[/code]