Class CPDFDestination

java.lang.Object
com.compdfkit.core.document.CPDFDestination

public class CPDFDestination extends Object
A CPDFDestination object describes a point on a PDF page.
  • Constructor Summary

    Constructors
    Constructor
    Description
    CPDFDestination(int pageIndex, float position_x, float position_y, float zoom)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
    Gets destination page index.
    float
    Gets the x coordinate of the specified page.
    float
    Gets the y coordinate of the specified page.
    float
    Gets the page zoom ratio
    int
     
    void
    setPageIndex(int pageIndex)
    Sets destination page index.
    void
    setPosition_x(float position_x)
    Sets the x coordinate of the specified page.
    void
    setPosition_y(float position_y)
    Sets the y coordinate of the specified page.
    void
    setZoom(float zoom)
    Sets the page zoom ratio
     

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • 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

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object