| Modifier and Type | Class and Description |
|---|---|
| private class | DocumentViewerControl.
Represents the viewport for a page. |
| Modifier and Type | Field and Description |
|---|---|
| private final ObjectProperty | |
| private PageDimension | |
| private org.fxmisc.flowless.VirtualFlow | |
| private final DoubleProperty | |
| private final DoubleProperty | |
| private final TaskExecutor |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public ObjectProperty | |
| public int | |
| public DoubleProperty | |
| public DoubleProperty | |
| public void | |
| public void | |
| public void | |
| private void | |
| private void | |
| private void |
| currentPage | back to summary |
|---|---|
| private final ObjectProperty<Integer> currentPage | |
| desiredPageDimension | back to summary |
|---|---|
| private PageDimension desiredPageDimension | |
| flow | back to summary |
|---|---|
| private org.fxmisc.flowless.VirtualFlow<DocumentPageViewModel, DocumentViewerControl. | |
| scrollY | back to summary |
|---|---|
| private final DoubleProperty scrollY | |
| scrollYMax | back to summary |
|---|---|
| private final DoubleProperty scrollYMax | |
| taskExecutor | back to summary |
|---|---|
| private final TaskExecutor taskExecutor | |
| DocumentViewerControl | back to summary |
|---|---|
| public DocumentViewerControl(TaskExecutor taskExecutor) | |
| changePageWidth | back to summary |
|---|---|
| public void changePageWidth(int delta) | |
| currentPageProperty | back to summary |
|---|---|
| public ObjectProperty | |
| getCurrentPage | back to summary |
|---|---|
| public int getCurrentPage() | |
| scrollYMaxProperty | back to summary |
|---|---|
| public DoubleProperty scrollYMaxProperty() | |
| scrollYProperty | back to summary |
|---|---|
| public DoubleProperty scrollYProperty() | |
| setPageHeight | back to summary |
|---|---|
| public void setPageHeight(double height) | |
| setPageWidth | back to summary |
|---|---|
| public void setPageWidth(double width) | |
| show | back to summary |
|---|---|
| public void show(DocumentViewModel document) | |
| showPage | back to summary |
|---|---|
| private void showPage(int pageNumber) | |
| updateCurrentPage | back to summary |
|---|---|
| private void updateCurrentPage(ObservableList<DocumentViewerControl. | |
| updateSizeOfDisplayedPages | back to summary |
|---|---|
| private void updateSizeOfDisplayedPages() | |
Note
the instances of DocumentViewerPage are reused, i.e., not every
page is rendered in a new instance but instead DocumentViewerPage#updateItem(Object) is called.
| Modifier and Type | Field and Description |
|---|---|
| private final Rectangle | |
| private final StackPane | |
| private final ImageView | |
| private DocumentPageViewModel |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private int | |
| private int | |
| public StackPane | |
| public int | |
| public boolean | |
| private Image | |
| public void | |
| public void |
| background | back to summary |
|---|---|
| private final Rectangle background | |
| imageHolder | back to summary |
|---|---|
| private final StackPane imageHolder | |
| imageView | back to summary |
|---|---|
| private final ImageView imageView | |
| page | back to summary |
|---|---|
| private DocumentPageViewModel page | |
| DocumentViewerPage | back to summary |
|---|---|
| public DocumentViewerPage(DocumentPageViewModel initialPage) | |
| getDesiredHeight | back to summary |
|---|---|
| private int getDesiredHeight() | |
| getDesiredWidth | back to summary |
|---|---|
| private int getDesiredWidth() | |
| getNode | back to summary |
|---|---|
public StackPane getNode()
| |
| getPageNumber | back to summary |
|---|---|
| public int getPageNumber() | |
| isReusable | back to summary |
|---|---|
public boolean isReusable()
| |
| renderPage | back to summary |
|---|---|
| private Image renderPage(DocumentPageViewModel page) | |
| updateItem | back to summary |
|---|---|
public void updateItem(DocumentPageViewModel page)
| |
| updateSize | back to summary |
|---|---|
| public void updateSize() | |