/** * Tells whether the location x/y is in the override zone. * @param x the x-coordinate of the mouse * @param y the y-coordinate of the mouse * @return <code>true</code> if this station should have priority * over all other stations when the mouse is in x/y. */ public boolean isInOverrideZone( int x, int y ){ double factorW = getWidthFactor(); double factorH = getHeightFactor(); return isInOverrideZone( x, y, factorW, factorH ); }
@Override public boolean contains( int x, int y ){ if( station.isFullScreen() ){ return false; } if( super.contains( x, y )){ Point point = new Point( x, y ); SwingUtilities.convertPointFromScreen( point, getComponent() ); return station.getRoot().isInOverrideZone( point.x, point.y ); } return false; } }
@Override public boolean contains( int x, int y ){ if( station.isFullScreen() ){ return false; } if( super.contains( x, y )){ Point point = new Point( x, y ); SwingUtilities.convertPointFromScreen( point, getComponent() ); return station.getRoot().isInOverrideZone( point.x, point.y ); } return false; } }