GraphmlFactory factory = GraphmlFactory.getInstance(); GraphMLNodeTemplate template = factory. createGraphMLNodeTemplate("myNodeTemplate"); template.setType(ShapeType.ELLIPSE); template.setFillColor(Color.GREEN);
GraphmlFactory factory = GraphmlFactory.getInstance(); GraphMLNodeTemplate template = factory. createGraphMLGroupNodeTemplate("myGroupTemplate"); template.setType(ShapeType.RECTANGLE3D); template.setFillColor(Color.BLUE);
GraphmlFactory factory = GraphmlFactory.getInstance(); GraphMLNodeTemplate template = factory. createGraphMLEdgeTemplate("myEdgeTemplate"); LineStyle lineStyle = new LineStyle(); lineStyle.setLineStyle(LineStyle.DASHED); template.setLineStyle(lineStyle);
GraphmlFactory factory = GraphmlFactory.getInstance(); GraphMLNodeTemplate template = factory.createGraphMLNodeTemplate("myNodeTemplate"); template.setType(ShapeType.ELLIPSE); template.setFillColor(Color.GREEN); GraphmlDiagram diagram = factory.newDiagram(); GraphMLNode node = diagram.addNodeFromTemplate("myNodeTemplate");
GraphmlFactory factory = GraphmlFactory.getInstance(); GraphMLGroupNodeTemplate template = factory.createGraphMLGroupNodeTemplate("myGroupTemplate"); template.setType(ShapeType.RECTANGLE3D); template.setFillColor(Color.BLUE); GraphmlDiagram diagram = factory.newDiagram(); GraphMLGroupNode gnode = diagram.addGroupNodeFromTemplate("myGroupTemplate");
GraphmlFactory factory = GraphmlFactory.getInstance(); GraphMLNodeTemplate template = factory. createGraphMLEdgeTemplate("myEdgeTemplate"); LineStyle lineStyle = new LineStyle(); lineStyle.setLineStyle(LineStyle.DASHED); template.setLineStyle(lineStyle); GraphmlDiagram diagram = factory.newDiagram(); GraphMLNode node1 = diagram.addNode(); node1.setX(10); node1.setY(10); GraphMLNode node2 = diagram.addNode(); node2.setX(100); node2.setY(100); GraphMLEdge edge = diagram.addEdgeFromTemplate(node1, node2, "myEdgeTemplate");
Copyright 2021 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence