void (Object component, int x, int y, int width, int height) { <error descr="Cannot resolve symbol 'Rectangle'">Rectangle</error> view = getRectangle(component, ":view"); <error descr="Cannot resolve symbol 'Rectangle'">Rectangle</error> port = getRectangle(component, ":port"); int vx = Math.max(x + width - port.<error descr="Cannot resolve symbol 'width'">width</error> + 2, Math.min(view.<error descr="Cannot resolve symbol 'x'">x</error>, x)); int vy = Math.max(y + height - port.<error descr="Cannot resolve symbol 'height'">height</error> + 2, Math.min(view.<error descr="Cannot resolve symbol 'y'">y</error>, y)); if ((view.<error descr="Cannot resolve symbol 'x'">x</error> != vx) || (view.<error descr="Cannot resolve symbol 'y'">y</error> != vy)) { repaint(component); // horizontal | vertical view.<error descr="Cannot resolve symbol 'x'">x</error> = vx; view.<error descr="Cannot resolve symbol 'y'">y</error> = vy; } }