public class JavaFXThumbnailPanel extends javafx.scene.control.Tab implements GUIThumbnailPanel
closableProperty, contentProperty, contextMenuProperty, disabledProperty, disableProperty, graphicProperty, idProperty, onClosedProperty, onCloseRequestProperty, onSelectionChangedProperty, selectedProperty, styleProperty, tabPaneProperty, textProperty, tooltipProperty| Constructor and Description |
|---|
JavaFXThumbnailPanel(PdfDecoderInt decode_pdf) |
| Modifier and Type | Method and Description |
|---|---|
void |
addComponentListener()
Not part of API - used internally
|
void |
dispose()
Dispose of any objects as required
|
void |
drawThumbnails()
redraw thumbnails if scrolled
|
void |
generateOtherVisibleThumbnails(int currentPage)
Generate visible thumbnails for the page specified
|
Object[] |
getButtons()
return a button holding the image,so we can add listener
|
BufferedImage |
getImage(int page)
Get a BufferedImage of the page specified for use with the thumbnails
|
boolean |
isShownOnscreen()
Get if the thumbnails are currently shown on screen
|
void |
removeAllListeners()
Remove all the listeners from the thumbnails
|
void |
resetToDefault()
Reset is thumbnails are shown based on the default value
|
void |
setIsDisplayedOnscreen(boolean b)
Set if the thumbnails are shown on screen
|
void |
setThumbnailsEnabled(boolean newValue)
Enable or disable the thumbnails on this panel
|
void |
setupThumbnails(int pages,
Font textFont,
PdfPageData pageData)
Set up and create the thumbnails required for the thumbnail panel.
|
void |
terminateDrawing()
Stop any drawing of thumbnails
|
buildEventDispatchChain, closableProperty, contentProperty, contextMenuProperty, disabledProperty, disableProperty, getClassCssMetaData, getContent, getContextMenu, getCssMetaData, getGraphic, getId, getOnClosed, getOnCloseRequest, getOnSelectionChanged, getProperties, getPseudoClassStates, getStyle, getStyleableParent, getStyleClass, getTabPane, getText, getTooltip, getTypeSelector, getUserData, graphicProperty, hasProperties, idProperty, isClosable, isDisable, isDisabled, isSelected, onClosedProperty, onCloseRequestProperty, onSelectionChangedProperty, selectedProperty, setClosable, setContent, setContextMenu, setDisable, setEventHandler, setGraphic, setId, setOnClosed, setOnCloseRequest, setOnSelectionChanged, setStyle, setText, setTooltip, setUserData, styleProperty, tabPaneProperty, textProperty, tooltipPropertypublic JavaFXThumbnailPanel(PdfDecoderInt decode_pdf)
public boolean isShownOnscreen()
isShownOnscreen in interface GUIThumbnailPanelpublic void terminateDrawing()
terminateDrawing in interface GUIThumbnailPanelpublic void setIsDisplayedOnscreen(boolean b)
setIsDisplayedOnscreen in interface GUIThumbnailPanelb - true is thumbnails show, false otherwisepublic Object[] getButtons()
getButtons in interface GUIThumbnailPanelpublic void addComponentListener()
addComponentListener in interface GUIThumbnailPanelpublic void generateOtherVisibleThumbnails(int currentPage)
generateOtherVisibleThumbnails in interface GUIThumbnailPanelcurrentPage - int value presenting the current pagepublic void setupThumbnails(int pages,
Font textFont,
PdfPageData pageData)
setupThumbnails in interface GUIThumbnailPanelpages - int value of the file page counttextFont - Font object to be used on the thumbnailspageData - PdfPageData object holding the PDF page size valuespublic void resetToDefault()
resetToDefault in interface GUIThumbnailPanelpublic void removeAllListeners()
removeAllListeners in interface GUIThumbnailPanelpublic void setThumbnailsEnabled(boolean newValue)
setThumbnailsEnabled in interface GUIThumbnailPanelnewValue - true to enable thumbnails, false otherwisepublic void dispose()
dispose in interface GUIThumbnailPanelpublic BufferedImage getImage(int page)
getImage in interface GUIThumbnailPanelpage - int value presenting the pagepublic void drawThumbnails()
drawThumbnails in interface GUIThumbnailPanelCopyright © 2017. All rights reserved.