Examples of strokeRect()


Examples of javafx.scene.canvas.GraphicsContext.strokeRect()

        if (!empty && isVisible()) {
            setText(renderMethod(profileNode.getMethod()));
            Canvas canvas = new Canvas(IMAGE_WIDTH, IMAGE_HEIGHT);
            GraphicsContext context = canvas.getGraphicsContext2D();
            context.setFill(Color.BLACK);
            context.strokeRect(0, 0, IMAGE_WIDTH, IMAGE_HEIGHT);

            double timeShare = profileNode.getTotalTimeShare();
            double scaledShare = timeShare * IMAGE_WIDTH;
            double xStart = IMAGE_WIDTH - scaledShare;
            context.setFill(Color.GREEN);
View Full Code Here

Examples of playn.core.Canvas.strokeRect()

            canvas.fillRect(size * (7 - ii), 0, size, size);
            darker = Colors.darker(darker);
        }

        canvas.setStrokeColor(Colors.BLACK);
        canvas.strokeRect(size * 8, 0, size - 1, size - 1);
        return Icons.image(cimg);
    }
}
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.