@Override
    public void render(Graphics2D g)
    {
        double angle = Math.toDegrees(connectedObject.getRotationAngle());
        angle = angle < 0 ? 360 + angle : angle;
        double radius = connectedObject.getRadius();
        double diameter = 2 * radius;
        double x = connectedObject.getX() - radius;
        double y = connectedObject.getY() - radius;
        
        Arc2D.Double arc = new Arc2D.Double(x, y, diameter, diameter, 0, -angle, Arc2D.PIE);
        
        String text =  Math.round(angle) + "°";
        float textX = (float) (connectedObject.getX() + radius + 5);
        float textY = (float) connectedObject.getY();
        
        if (color != null)
        {
            g.setColor(color);
            g.fill(arc);
            
            
        }
        if (border != null)
        {
            g.setColor(border);
            g.draw(arc);
            
        }
        
        drawString(g, text, textX, textY);
    }