Package com.compdfkit.core.document
Class CPDFDestination
java.lang.Object
com.compdfkit.core.document.CPDFDestination
A CPDFDestination object describes a point on a PDF page.
-
Constructor Summary
ConstructorsConstructorDescriptionCPDFDestination(int pageIndex, float position_x, float position_y, float zoom) -
Method Summary
Modifier and TypeMethodDescriptionbooleanintGets destination page index.floatGets the x coordinate of the specified page.floatGets the y coordinate of the specified page.floatgetZoom()Gets the page zoom ratiointhashCode()voidsetPageIndex(int pageIndex) Sets destination page index.voidsetPosition_x(float position_x) Sets the x coordinate of the specified page.voidsetPosition_y(float position_y) Sets the y coordinate of the specified page.voidsetZoom(float zoom) Sets the page zoom ratiotoString()
-
Constructor Details
-
CPDFDestination
public CPDFDestination(int pageIndex, float position_x, float position_y, float zoom)
-
-
Method Details
-
getPageIndex
public int getPageIndex()Gets destination page index.- Returns:
- Returns destination page index.
-
setPageIndex
public void setPageIndex(int pageIndex) Sets destination page index.- Parameters:
pageIndex- Page index.
-
getPosition_x
public float getPosition_x()Gets the x coordinate of the specified page.- Returns:
- Returns the x coordinate of the specified page.
-
setPosition_x
public void setPosition_x(float position_x) Sets the x coordinate of the specified page.- Parameters:
position_x- The x coordinate of the specified page.
-
getPosition_y
public float getPosition_y()Gets the y coordinate of the specified page.- Returns:
- Returns the y coordinate of the specified page.
-
setPosition_y
public void setPosition_y(float position_y) Sets the y coordinate of the specified page.- Parameters:
position_y- The y coordinate of the specified page.
-
getZoom
public float getZoom()Gets the page zoom ratio- Returns:
- Returns the page zoom ratio
-
setZoom
public void setZoom(float zoom) Sets the page zoom ratio- Parameters:
zoom- Page zoom ratio
-
toString
-
equals
-
hashCode
public int hashCode()
-