Package org.antlr.works.visualization.graphics

Examples of org.antlr.works.visualization.graphics.GContext.drawCircle()


    public static void draw(GNode node) {
        GContext context = node.getContext();
        context.setColor(context.nodeColor);
        float r = context.getPixelNodeWidth()/2;
        context.drawCircle(node.getX()+r, node.getY(), r, true);
        context.drawString(context.getBoxFont(), node.state.toString(), node.getX()+r, node.getY(), GContext.ALIGN_CENTER);
    }

    public static boolean nodeContainsPoint(GNode node, Point p) {
        float nr = node.getContext().getPixelNodeWidth()/2;
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.