map.put(edge, eMap);
return map;
}
private AttributeMap getVertexAttributes(DefaultGraphCell cell) {
AttributeMap vMap = new AttributeMap();
Color c = Color.decode("#FF9900");
GraphConstants.setBounds(vMap, new Rectangle2D.Double(50, 50, 90, 30));
GraphConstants.setBorder(vMap, BorderFactory.createRaisedBevelBorder());
GraphConstants.setBackground(vMap, c);
GraphConstants.setForeground(vMap, Color.white);
GraphConstants.setFont(vMap,
GraphConstants.DEFAULTFONT.deriveFont(Font.BOLD, 12));
GraphConstants.setOpaque(vMap, true);
AttributeMap map = new AttributeMap();
map.put(cell, vMap);
return map;
}