Package net.sf.graphiti.ui.figure

Examples of net.sf.graphiti.ui.figure.VertexFigure.paint()


    Image image = new Image(Display.getCurrent(), width, height);

    // Paints the figure on it
    GC gc = new GC(image);
    Graphics graphics = new SWTGraphics(gc);
    figure.paint(graphics);

    // Get the image data back
    ImageData data = image.getImageData();
    ImageDescriptor id = ImageDescriptor.createFromImageData(data);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.