DynamicPDF by ceTe Software

com.cete.dynamicpdf
Class XYDestination

java.lang.Object
  extended by com.cete.dynamicpdf.Action
      extended by com.cete.dynamicpdf.Destination
          extended by com.cete.dynamicpdf.XYDestination

public class XYDestination
extends Destination

This class can be used to specify a certain page and X Y location for defining a Link or a Bookmark.

Licensing:
This class is a DynamicPDF Generator Professional Edition feature. One of the following licenses is required for non-evaluation usage:

View Example


Field Summary
 
Fields inherited from class com.cete.dynamicpdf.Action
text_A, text_Next, text_S, text_Type
 
Constructor Summary
XYDestination(int pageNumber, float x, float y)
          Initializes a new instance of the XYDestination class.
 
Method Summary
 void draw(DocumentWriter writer)
          Draws the destination to the specified DocumentWriter object.
 float getX()
          Gets the X coordinate targeted by the destination.
 float getY()
          Gets the Y coordinate targeted by the destination.
 void setX(float value)
          Sets the X coordinate targeted by the destination.
 void setY(float value)
          Sets the Y coordinate targeted by the destination.
 
Methods inherited from class com.cete.dynamicpdf.Destination
getPageNumber, setPageNumber
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XYDestination

public XYDestination(int pageNumber,
                     float x,
                     float y)
Initializes a new instance of the XYDestination class.

Parameters:
pageNumber - Page number targeted by the destination.
x - X coordinate targeted by the destination.
y - Y coordinate targeted by the destination.
See Also:
XYDestination
Method Detail

setX

public void setX(float value)
Sets the X coordinate targeted by the destination.

Parameters:
value - the X coordinate targeted by the destination.

getX

public float getX()
Gets the X coordinate targeted by the destination.

Returns:
the X coordinate targeted by the destination.

setY

public void setY(float value)
Sets the Y coordinate targeted by the destination.

Parameters:
value - the Y coordinate targeted by the destination.

getY

public float getY()
Gets the Y coordinate targeted by the destination.

Returns:
the Y coordinate targeted by the destination.

draw

public void draw(DocumentWriter writer)
Draws the destination to the specified DocumentWriter object.

Specified by:
draw in class Action
Parameters:
writer - DocumentWriter object to receive the destinations output.
See Also:
DocumentWriter

DynamicPDF by ceTe Software

API Reference for DynamicPDF v10.04 for Java generated on September 25, 2019
© Copyright 2019, ceTe Software