ui/src/main/java/ucar/nc2/ui/image/PicturePane.java
public void scrollUp() {
		// if the bottom edge of the picture is visible, do not scroll
		if (((sclPic.getOriginalHeight() - focusPoint.y) * sclPic.getScaleFactor()) + getSize().height /2 > getSize().height) {
			focusPoint.y = focusPoint.y + (int) (getSize().height * 0.1 / sclPic.getScaleFactor()) ;
			repaint();
		} else  {
			Tools.log ("Scrollup rejected because bottom of picture is already showing.");
		}
	}
public void scrollUp() {
		// if the bottom edge of the picture is visible, do not scroll
		if (((sclPic.getOriginalHeight() - focusPoint.y) * sclPic.getScaleFactor()) + getSize().height /2 > getSize().height) {
			focusPoint.y = focusPoint.y + (int) (getSize().height * 0.1 / sclPic.getScaleFactor()) ;
			repaint();
		} else  {
			Tools.log ("Scrollup rejected because bottom of picture is already showing.");
		}
	}
public void scrollUp ( ) { // if the bottom edge of the picture is visible, do not scroll if ( ( ( sclPic . getOriginalHeight ( ) - focusPoint . y ) * sclPic . getScaleFactor ( ) ) + getSize ( ) . height / 2 > getSize ( ) . height ) { focusPoint . y = focusPoint . y + ( int ) ( getSize ( ) . height * 0.1 / sclPic . getScaleFactor ( ) ) ; repaint ( ) ; } else { Tools . log ( "Scrollup rejected because bottom of picture is already showing." ) ; } }
method that moves the image up by 10% of the pixels shown on the screen.
This method
calls <code>repaint()</code> directly since no time consuming image operations need to take place.
<p><img src=../scrollUp.png border=0><p>
@see #scrollUp()
@see #scrollDown()
@see #scrollLeft()
@see #scrollRight()
method that moves the image up by 10% of the pixels shown on the screen . This method calls <code > repaint () < / code > directly since no time consuming image operations need to take place . <p > <img src = .. / scrollUp . png border = 0 > <p > @see #scrollUp () @see #scrollDown () @see #scrollLeft () @see #scrollRight ()