//g2d.setRenderingHint(
// RenderingHints.KEY_ANTIALIASING,
// RenderingHints.VALUE_ANTIALIAS_ON);
Selection selection = manager.getSelection();
g2d.setColor(Color.white);
g2d.fillRect(0, 0, (int)getSize().getWidth(), (int)getSize().getHeight());
if(logo != null)
{
g.drawImage(logo,10,0,null);
}
Object node = null, type = null;
for (int t = 0; t < graph.getNodeCount(); t++)
{
node = graph.getNode(t);
for(int r = 0; r < graph.getEdgeTypeCount(node); r++)
{
type = graph.getEdgeType(r);
for (int s = 0; s < graph.getEdgeCount(node, type); s++)
{
defaultEdgeRenderer.render(
g2d,
graph.getEdge(node, type, s),
getNodeRenderer(node).getMountingPoint(getNodeRenderer(node).getNodeBounds(g2d, node, graph.getLocation(node)),
graph.getLocation(graph.getDestinationNode(node, type, s))),
getNodeRenderer(graph.getDestinationNode(node, type, s)).getMountingPoint(
getNodeRenderer(graph.getDestinationNode(node, type, s)).getNodeBounds(g2d, graph.getDestinationNode(node, type, s), graph.getLocation(graph.getDestinationNode(node, type, s))),
graph.getLocation(node)));
}
}
}
for (int t = 0; t < graph.getNodeCount(); t++)
{
node = graph.getNode(t);
if(selection.contains(node))
{
getNodeRenderer(node).renderSelected(
g2d,
node,
graph.getLocation(node));