autosized property of the diagram defaults For example:GraphmlFactory factory = GraphmlFactory.getInstance(); GraphmlDiagram diagram = factory.newDiagram(); DiagramlDefaults defaults = diagram.getDefaults(); defaults.autosized = true; defaults.padWidth = 10; defaults.padHeight = 10; GraphMLNode node = diagram.addNode(); NodeLabel label = node.setLabel("The Label"); // the node size will use the label size plus the pad
Copyright 2021 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence
Project Web Hosted by
Copyright 1999-2010 -
Geeknet, Inc., All Rights Reserved
About
-
Legal
-
Help