drawBreaker static method
Implementation
static void drawBreaker(PdfGraphics canvas, double x, double y,
{double size = 20}) {
// Vertical Line
canvas.moveTo(x, y - (size / 2));
canvas.lineTo(x, y + (size / 2));
canvas.strokePath();
// The "X" or Box
// IEC 60617-7-02-01: Circuit Breaker is often a cross on the line
// Draw Cross
final half = size / 4;
canvas.moveTo(x - half, y - half);
canvas.lineTo(x + half, y + half);
canvas.moveTo(x + half, y - half);
canvas.lineTo(x - half, y + half);
canvas.strokePath();
// Trigger "Square" (Thermal/Magnetic)
// Usually a small square attached to the side or top
canvas.drawRect(x - (half / 2), y + (size / 4), half, half);
canvas.strokePath();
}