updateDamage((Rectangle)a);
Rectangle r = a instanceof Rectangle ? (Rectangle) a : a.getBounds(); updateDamage(r);
    public void insertUpdate (DocumentEvent changes, Shape a, ViewFactory f)    {      updateDamage((Rectangle)a);     }