[jgrapht-users] Changing Simple things
Brought to you by:
barak_naveh,
perfecthash
From: Diego O. <die...@gm...> - 2011-04-13 02:06:00
|
Hi Everybody, I want to change simple things like the SHAPE of the Nodes and the color of the background and font... I have this code in method *private void positionVertexAt(Object vertex, int x, int y) {* : Map attr = cell.getAttributes(); Rectangle2D b = GraphConstants.getBounds(attr); //2 = background of the NODE //5 = font of the NODE for (Object object : attr.values()) { System.out.println("MAP= " + object.toString()); } //widht //height GraphConstants.setBounds(attr, new Rectangle(x, y, WIDTH, HEIGTH)); ----- There is a simple way right? How is it? Thank you very much! -- Diego Oliveira Master's Program in Computer Science Federal University of Rio Grande do Norte - UFRN Natal-RN-Brazil |