boolean (int x, int y, int id, Object component, Object part) { if ((part == "up") || (part == "down") || (part == "left") || (part == "right")) { if ((id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_ENTERED) || (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_EXITED) || (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_PRESSED) || (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_RELEASED)) { if (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_PRESSED) { if (processScroll(component, part)) { setTimer(300L); return true; } } else { if (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_RELEASED) { setTimer(0L); } repaint(component, null, part); } } } else if ((part == "uptrack") || (part == "downtrack") || (part == "lefttrack") || (part == "righttrack")) { if (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_PRESSED) { if (processScroll(component, part)) { setTimer(300L); } } else if (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_RELEASED) { setTimer(0L); } } else if ((part == "vknob") || (part == "hknob")) { if (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_PRESSED) { <error descr="Cannot resolve symbol 'Rectangle'">Rectangle</error> port = getRectangle(component, ":port"); <error descr="Cannot resolve symbol 'Rectangle'">Rectangle</error> view = getRectangle(component, ":view"); if (part == "hknob") { referencex = x - view.<error descr="Cannot resolve symbol 'x'">x</error> * (port.<error descr="Cannot resolve symbol 'width'">width</error> - 2 * block) / view.<error descr="Cannot resolve symbol 'width'">width</error>; } else { referencey = y - view.<error descr="Cannot resolve symbol 'y'">y</error> * (port.<error descr="Cannot resolve symbol 'height'">height</error> - 2 * block) / view.<error descr="Cannot resolve symbol 'height'">height</error>; } } else if (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_DRAGGED) { <error descr="Cannot resolve symbol 'Rectangle'">Rectangle</error> port = getRectangle(component, ":port"); <error descr="Cannot resolve symbol 'Rectangle'">Rectangle</error> view = getRectangle(component, ":view"); if (part == "hknob") { int viewx = (x - referencex) * view.<error descr="Cannot resolve symbol 'width'">width</error> / (port.<error descr="Cannot resolve symbol 'width'">width</error> - 2 * block); viewx = Math.max(0, Math.min(viewx, view.<error descr="Cannot resolve symbol 'width'">width</error> - port.<error descr="Cannot resolve symbol 'width'">width</error> + 2)); if (view.<error descr="Cannot resolve symbol 'x'">x</error> != viewx) { view.<error descr="Cannot resolve symbol 'x'">x</error> = viewx; repaint(component, null, "horizontal"); } } else { int viewy = (y - referencey) * view.<error descr="Cannot resolve symbol 'height'">height</error> / (port.<error descr="Cannot resolve symbol 'height'">height</error> - 2 * block); viewy = Math.max(0, Math.min(viewy, view.<error descr="Cannot resolve symbol 'height'">height</error> - port.<error descr="Cannot resolve symbol 'height'">height</error> + 2)); if (view.<error descr="Cannot resolve symbol 'y'">y</error> != viewy) { view.<error descr="Cannot resolve symbol 'y'">y</error> = viewy; repaint(component, null, "vertical"); } } } } else if (part == "corner") { part = "corner"; // compiler bug } else { if (id == <error descr="Cannot resolve symbol 'MouseEvent'">MouseEvent</error>.MOUSE_PRESSED) { <error descr="Cannot resolve symbol 'Rectangle'">Rectangle</error> port = getRectangle(component, ":port"); setReference(component, port.<error descr="Cannot resolve symbol 'x'">x</error> + 1, port.<error descr="Cannot resolve symbol 'y'">y</error> + 1); } return false; } return true; }