public final class FitRExplicitDestination extends ExplicitDestination
Represents explicit destination that displays the page with its contents magnified just enough to fit the rectangle specified by the coordinates left, bottom, right, and topentirely within the window both horizontally and vertically. If the required horizontal and vertical magnification factors are different, use the smaller of the two, centering the rectangle within the window in the other dimension. A null value for any of the parameters may result in unpredictable behavior.
Constructor and Description |
---|
FitRExplicitDestination(Document document,
int pageNumber,
double left,
double bottom,
double right,
double top)
Deprecated.
|
FitRExplicitDestination(int pageNumber,
double left,
double bottom,
double right,
double top)
Creates remote explicit destination.
|
FitRExplicitDestination(Page page,
double left,
double bottom,
double right,
double top)
Creates the instance and initializes it by DOM page object and visible parameters.
|
Modifier and Type | Method and Description |
---|---|
double |
getBottom()
Gets bottom vertical coordinate of visible rectangle.
|
double |
getLeft()
Gets left horizontal coordinate of visible rectangle.
|
double |
getRight()
Gets right horizontal coordinate of visible rectangle.
|
double |
getTop()
Gets top vertical coordinate of visible rectangle.
|
String |
toString()
Converts the object state into string value.
|
createDestination, createDestination, createDestination, createDestination, getPage, getPageNumber
public FitRExplicitDestination(Page page, double left, double bottom, double right, double top)
Creates the instance and initializes it by DOM page object and visible parameters.
page
- DOM page object.left
- Left horizontal coordinate of visible rectangle.bottom
- Bottom vertical coordinate of visible rectangle.right
- Right horizontal coordinate of visible rectangle.top
- Top vertical coordinate of visible rectangle.@Deprecated public FitRExplicitDestination(Document document, int pageNumber, double left, double bottom, double right, double top)
Creates remote explicit destination.
document
- The parent document that contains this object.pageNumber
- The destination page number of remote document.left
- Left horizontal coordinate of visible rectangle.bottom
- Bottom vertical coordinate of visible rectangle.right
- Right horizontal coordinate of visible rectangle.top
- Top vertical coordinate of visible rectangle.public FitRExplicitDestination(int pageNumber, double left, double bottom, double right, double top)
Creates remote explicit destination.
pageNumber
- The destination page number of remote document.left
- Left horizontal coordinate of visible rectangle.bottom
- Bottom vertical coordinate of visible rectangle.right
- Right horizontal coordinate of visible rectangle.top
- Top vertical coordinate of visible rectangle.public double getLeft()
Gets left horizontal coordinate of visible rectangle.
public double getBottom()
Gets bottom vertical coordinate of visible rectangle.
public double getRight()
Gets right horizontal coordinate of visible rectangle.
public double getTop()
Gets top vertical coordinate of visible rectangle.
public String toString()
Converts the object state into string value. Example: "1 FitR 100 200 300 400".
toString
in interface IAppointment
toString
in class ExplicitDestination