code: @Override
      protected void paintComponent(Graphics g) {
          if (!initialized) {
              return;
          }
  
          final Graphics2D G2 = (Graphics2D) g.create();
  
          G2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
          G2.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);
          G2.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VALUE_STROKE_NORMALIZE);
  
          G2.translate(INNER_BOUNDS.x, INNER_BOUNDS.y);
  
          G2.drawImage(batteryImage, 0, 0, null);
  
          G2.translate(-INNER_BOUNDS.x, -INNER_BOUNDS.y);
  
          G2.dispose();
      }
docs: <editor-fold defaultstate="collapsed" desc="Visualization">