public void mouseWheelMoved(MouseWheelEvent e) { int amount = e.getWheelRotation(); Point2D p = new Point2D.Double(e.getPoint().getX(), e.getPoint().getY()); if (amount > 0) zoomOut(p); if (amount < 0) zoomIn(p); }
public void mouseWheelMoved(MouseWheelEvent e) { translateCM(e.getWheelRotation()); updateColors(); }