1 2 3 4 5 6 7 8 9 10 11 12 13
| public ActivityCell createActivity(Object obj){
ActivityCell cell = new ActivityCell(obj);
Dimension d = new Dimension(80,65);
Rectangle rect = new Rectangle(d);
GraphConstants.setBounds(cell.getAttributes(), rect);
//while(i<255){
GraphConstants.setGradientColor(cell.getAttributes(), new Color(reduire.z+166,reduire.z+170,255-reduire.z));
GraphConstants.setOpaque(cell.getAttributes(), true);
DefaultPort port = new DefaultPort();
cell.add(port);
port.setParent(cell);
return cell;
} |
Partager