com.crionics.jpdf.destination
Class ZoomPosition

java.lang.Object
  extended by com.crionics.jpdf.destination.AbstractZoom
      extended by com.crionics.jpdf.destination.ZoomPosition

public class ZoomPosition
extends AbstractZoom

Display the page with the coordinates (left, top) positioned at the upper-left corner of the window and the contents of the page magnified by a zoom factor.

A null value for any of the parameters left, top,or zoom specifies that the current value of that parameter is to be retained unchanged.
A zoom value of 0 has the same meaning as a null value.


Constructor Summary
ZoomPosition(java.lang.Integer left, java.lang.Integer top, java.lang.Float zoom)
          Creates a new ZoomPosition Object.
 
Method Summary
 java.lang.Integer getLeft()
          Returns the Left Coordinate.
 java.lang.Integer getTop()
          Returns the Top Coordinate.
 java.lang.Float getZoomFactor()
          Returns the Zoom Factor.
 void setLeft(java.lang.Integer left)
          Sets the Left Coordinate.
 void setTop(java.lang.Integer top)
          Sets the Top Coordinate.
 void setZoomFactor(java.lang.Float factor)
          Sets the zoom factor.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZoomPosition

public ZoomPosition(java.lang.Integer left,
                    java.lang.Integer top,
                    java.lang.Float zoom)
Creates a new ZoomPosition Object.

Parameters:
left - The value to be set or null if a PDF viewer should not change its current left coordinate.
top - The value to be set or null if a PDF viewer should not change its current top coordinate.
zoom - The Percentage of the zoom to be set or null if a PDF viewer should not change its current zoom factor.

Note 1: A zoom of 100% correspond to new Float(1.0F).
Note 2: A zoom value equal to 0 has the same meaning as a null value.

Method Detail

getLeft

public java.lang.Integer getLeft()
Returns the Left Coordinate.

Returns:
The value or null if the coordinate is set to be left unchanged in the PDF Viewer.

getTop

public java.lang.Integer getTop()
Returns the Top Coordinate.

Returns:
The value or null if the coordinate is set to be left unchanged in the PDF Viewer.

getZoomFactor

public java.lang.Float getZoomFactor()
Returns the Zoom Factor.

Returns:
The value or null if the coordinate is set to be left unchanged in the PDF Viewer.

setLeft

public void setLeft(java.lang.Integer left)
Sets the Left Coordinate.

Parameters:
left - The value to be set or null if a PDF viewer should not change its current left coordinate.

setTop

public void setTop(java.lang.Integer top)
Sets the Top Coordinate.

Parameters:
top - The value to be set or null if a PDF viewer should not change its current top coordinate.

setZoomFactor

public void setZoomFactor(java.lang.Float factor)
Sets the zoom factor.

Parameters:
factor - The value to be set or null if a PDF viewer should not change its current zoom factor.


Copyright © 1999-2007 Crionics. All Rights Reserved.