GraphMLFactory factory = GraphMLFactory.getInstance(); GraphMLDiagram diagram = factory.newDiagram(); GraphMLNode node = diagram.addNode(); node.setHasFillColor(false); node.setHasBorderColor(false); NodeLabel label = node.setLabel("The Label"); label.setVerticalTextPosition(LabelStyle.VERTICALPOS_BOTTOM); File iconFile = context.getPath("hand.png"); label.setIcon(iconFile); label.setIconScaleX(0.2f); label.setIconScaleY(0.2f);The result is:
Copyright 2021 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence