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