Top Description Constructors Methods
org.jabref.gui.documentviewer

public abstract Class DocumentPageViewModel

extends Object
Class Inheritance
Known Direct Subclasses
org.jabref.gui.documentviewer.PdfDocumentPageViewModel
Imports
javafx.scene.image.Image

Represents the view model for a page in the document viewer.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract double
getAspectRatio()

Calculates the aspect ratio (width / height) of the page.

public abstract int
getPageNumber()

Get the page number of the current page in the document.

public abstract Image
render(int width, int height)

Renders this page and returns an image representation of itself.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DocumentPageViewModelback to summary
public DocumentPageViewModel()

Method Detail

getAspectRatioback to summary
public abstract double getAspectRatio()

Calculates the aspect ratio (width / height) of the page.

getPageNumberback to summary
public abstract int getPageNumber()

Get the page number of the current page in the document.

renderback to summary
public abstract Image render(int width, int height)

Renders this page and returns an image representation of itself.