GraphMLNode node = diagram.addNode(); ShapeNode shapeNode = node.getShapeNode(); shapeNode.setAutosized(true);To set the color of a node:
GraphMLNode node = diagram.addNode(); ShapeNode shapeNode = node.getShapeNode(); shapeNode.setFillColor("red");To add a drop shadow to a node with a default black color and an offset of 3 on x and y:
GraphMLNode node = diagram.addNode(); ShapeNode shapeNode = node.getShapeNode(); DropShadow dropShadow = new DropShadow(3, 3); shapeNode.setDropShadow(dropShadow);Can also be directly set through the node:
GraphMLNode node = diagram.addNode(); DropShadow dropShadow = new DropShadow(3, 3); node.setDropShadow(dropShadow);
Copyright 2021 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence