boolean (Object component, Object part) { <error descr="Cannot resolve symbol 'Rectangle'">Rectangle</error> view = getRectangle(component, ":view"); <error descr="Cannot resolve symbol 'Rectangle'">Rectangle</error> port = ((part == "left") || (part == "up")) ? null : getRectangle(component, ":port"); int dx = 0; int dy = 0; if (part == "left") { dx = -10; } else if (part == "lefttrack") { dx = -port.<error descr="Cannot resolve symbol 'width'">width</error>; } else if (part == "right") { dx = 10; } else if (part == "righttrack") { dx = port.<error descr="Cannot resolve symbol 'width'">width</error>; } else if (part == "up") { dy = -10; } else if (part == "uptrack") { dy = -port.<error descr="Cannot resolve symbol 'height'">height</error>; } else if (part == "down") { dy = 10; } else if (part == "downtrack") { dy = port.<error descr="Cannot resolve symbol 'height'">height</error>; } if (dx != 0) { dx = (dx < 0) ? Math.max(-view.<error descr="Cannot resolve symbol 'x'">x</error>, dx) : Math.min(dx, view.<error descr="Cannot resolve symbol 'width'">width</error> - port.<error descr="Cannot resolve symbol 'width'">width</error> + 2 - view.<error descr="Cannot resolve symbol 'x'">x</error>); } else if (dy != 0) { dy = (dy < 0) ? Math.max(-view.<error descr="Cannot resolve symbol 'y'">y</error>, dy) : Math.min(dy, view.<error descr="Cannot resolve symbol 'height'">height</error> - port.<error descr="Cannot resolve symbol 'height'">height</error> + 2 - view.<error descr="Cannot resolve symbol 'y'">y</error>); } else return false; view.<error descr="Cannot resolve symbol 'x'">x</error> += dx; view.<error descr="Cannot resolve symbol 'y'">y</error> += dy; repaint(component, null, (dx != 0) ? "horizontal" : "vertical"); return (((part == "left") || (part == "lefttrack")) && (view.<error descr="Cannot resolve symbol 'x'">x</error> > 0)) || (((part == "right") || (part == "righttrack")) && (view.<error descr="Cannot resolve symbol 'x'">x</error> < view.<error descr="Cannot resolve symbol 'width'">width</error> - port.<error descr="Cannot resolve symbol 'width'">width</error> + 2)) || (((part == "up") || (part == "uptrack")) && (view.<error descr="Cannot resolve symbol 'y'">y</error> > 0)) || (((part == "down") || (part == "downtrack")) && (view.<error descr="Cannot resolve symbol 'y'">y</error> < view.<error descr="Cannot resolve symbol 'height'">height</error> - port.<error descr="Cannot resolve symbol 'height'">height</error> + 2)); }