@Override
    protected void paintComponent(Graphics g) {
        super.paintComponent(g);
        if (rotation % 2 == 1) {
            g.drawRect(50, 85, 100, 30);
            g.drawLine(0, 100, 50, 100);
            g.drawLine(150, 100, 200, 100);
        }
        if (rotation % 2 == 0) {
            g.drawRect(85, 50, 30, 100);
            g.drawLine(100, 0, 100, 50);
            g.drawLine(100, 150, 100, 200);
        }
        if ((resistance != 0)) {
            g.drawString(String.valueOf(new BigDecimal(resistance).round(new MathContext(3))) + "Ω", 85, 105);
        }
    }