svoid fillShape(Graphics2D g, Shape shape) { if (g != null && shape != null) g.fill(shape); }