public class PdfViewerWindowBase extends com.frojasg1.applications.common.components.internationalization.window.InternationalizedJFrame implements PdfViewerMaster, com.frojasg1.general.desktop.view.pdf.ImageJPanelControllerInterface, PDFownerInterface, PdfViewer
JFrame.AccessibleJFrame
Frame.AccessibleAWTFrame
Window.AccessibleAWTWindow, Window.Type
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
String |
_configurationBaseFileName |
protected LoadPdfControllerInterface |
_parent |
protected PdfContentPanel |
_pdfContentPanel |
protected PdfViewerControlView |
_pdfViewerControlView |
protected boolean |
_putSummarizedImage |
_alreadyInitialized, _alwaysHighlightFocus, _applicationContext, _appliConf, _compMapper, _componentToHighLight, _hasToClearMarkedComponent, _highlightFocusComponent, _hundredPerCentMinimumWidth, _initializationEndCallBack, _initializing, _languageRadiobuttonGroup, _languageSubmenu, _lastFocusedComponentDrawn, _newZoomFactor, _overlappedImage, _overlappedImageLocation, _previousState, _previousValueOfHightlightFocus, _previousZoomFactor, _radioButtonManager, _rollbackWaitCursorMapList, _synchronizedLockForPaint, _zoomFactorRadiobuttonGroup, _zoomFactorServer, _zoomFactorSubmenu, a_intern
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
PdfViewerWindowBase(com.frojasg1.applications.common.configuration.application.BaseApplicationConfigurationInterface appliConf)
Creates new form MainWindow
|
Modifier and Type | Method and Description |
---|---|
void |
block() |
void |
changeZoomFactor(double zoomFactor) |
void |
closeWindow() |
protected PdfContentPanel |
createPdfContentPanel() |
protected PdfViewerControlView |
createPdfViewerControlView() |
void |
doNewPageTasks() |
void |
formWindowClosingEvent() |
com.frojasg1.applications.common.configuration.application.BaseApplicationConfigurationInterface |
getAppliConf() |
protected PdfViewerControlView |
getControlView() |
protected Component |
getControlViewComponent() |
protected com.frojasg1.general.desktop.view.zoom.mapper.ComposedComponent |
getControlViewComposedComponent() |
int |
getCurrentPageIndex() |
int |
getNumPages() |
BufferedImage |
getPage(int pageIndex,
double factor) |
protected com.frojasg1.general.desktop.view.pdf.ImageJPanel |
getPdfContentImageJPanel() |
protected PdfContentPanel |
getPdfContentPanel() |
PdfDocumentWrapper |
getPdfDocument() |
String |
getPdfFileName() |
protected com.frojasg1.general.number.DoubleReference |
getSelectedZoomFactor() |
protected double |
getSelectedZoomFactorDouble() |
void |
init(LoadPdfControllerInterface parent,
String configurationBaseFileName) |
protected void |
initPanels() |
static void |
main(String[] args) |
void |
navigator_end(com.frojasg1.general.desktop.view.panels.InformerInterface panel) |
void |
navigator_next(com.frojasg1.general.desktop.view.panels.InformerInterface panel) |
void |
navigator_previous(com.frojasg1.general.desktop.view.panels.InformerInterface panel) |
void |
navigator_start(com.frojasg1.general.desktop.view.panels.InformerInterface panel) |
protected void |
navigatorTask(Runnable navigatorUpdateFunction) |
void |
newPageSelected(int newPageIndex) |
void |
newPageSet(BufferedImage image,
com.frojasg1.general.number.DoubleReference factor,
int pageIndex) |
void |
newPdfZoomFactorSelected(com.frojasg1.general.number.DoubleReference newFactor) |
void |
nextPage() |
void |
previousPage() |
protected void |
setDocument(PdfDocumentWrapper document) |
void |
setNewPDF(PdfDocumentWrapper document) |
void |
setNewPdfZoomFactor(com.frojasg1.general.number.DoubleReference factor) |
protected void |
setWindowConfiguration() |
void |
showPage(int index) |
protected void |
translateMappedComponents(com.frojasg1.general.desktop.view.zoom.mapper.ComponentMapper compMapper) |
void |
unblock() |
void |
updateCurrentPageTexts() |
void |
updatePage(int pageIndex) |
protected void |
updateZoomComboBoxValues() |
protected void |
updateZoomFactor() |
activateChangeLanguageNotifications, addLanguageToMenu, addListenersRoot, alreadyInitialized, applyConfiguration, areChangeLanguageNotificationsActivated, changeLanguage, changeLanguage, changeLanguageInForms, changeLanguageInFormsIntern, changeToWaitCursor, changeZoomFactor_centerMousePointer, checkForNewVersion, componentHidden, componentMoved, componentResized, componentShown, createCustomInternationalString, createInternationalization, createInternationalization, createWhatIsNewJDialog, deiconify_nonEDT, deiconify, doHighlightFocus, doInternationalizationTasksOnTheFly, fireChangeLanguageEvent, focusAndHighlightComponent, focusGained, focusLost, formWindowClosing, getAlreadyInitializedCallback, getAlwaysHighlightFocus, getApplicationContext, getComponent, getDimensionOfOverlappingImage, getHeight_forOverlappingImage, getInternationalization, getInternationalString, getLanguage, getLastFocusedComponentDrawn, getLocationOnScreen_forOverlappingImage, getNonInheritedPopupMenu, getOldState, getOutputLocale, getOverlappingImageBounds, getParentViewComponent, getSynchronizedLockForPaint, getWidth_forOverlappingImage, getZoomFactor, hasToClearMarkedComponent, highlightComponent, iconify, initResizeRelocateItemsOComponentOnTheFly, internationalizationInitializationEndCallback, invokeStateCallbackFunctions, isIconified, isThereOverlappedImage, mapComponent, markComponent_internal, markComponent, markFocusedComponent, onHorizontallyMaximize, onIconify, onNormalState, onTotallyMaximize, onVerticallyMaximize, onWindowHidden, onWindowMoved, onWindowResized, onWindowShown, paint, processComponentOnTheFlyForDefaultResizeRelocateItem, registerChangeLanguageObserver, registerInternationalString, registerToChangeLanguageAsObserver, registerToChangeZoomFactorAsObserver, releaseResources, removeListenersRoot, resizeFrameToContents, revertChangeToWaitCursor, setAlreadyInitializedAfterCallback, setAlwaysHighlightFocus, setApplicationContext, setAppliConf, setBounds, setBounds, setComponentMapper, setExtendedState_internal_nonEDT, setExtendedState_internal, setExtendedState, setIcons, setLanguage, setLanguageInMenu, setLanguageSubmenu, setOverlappedImage, setSize, setSize, setState, setZoomSubmenu, showWhatIsNew, switchOffUndoRedoManager, unregisterChangeLanguageObserver, unregisterFromChangeLanguageAsObserver, unregisterFromChangeZoomFactorAsObserver, updateLanguageInMenu, updateRadioButtonMenus, windowStateChanged, zoomComponentOnTheFly
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setTitle, setUndecorated
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setType, setVisible, show, toBack, toFront
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
repaint
hasFocus, isFocusable, requestFocus, setVisible
getFont, postEvent
public String _configurationBaseFileName
protected LoadPdfControllerInterface _parent
protected boolean _putSummarizedImage
protected PdfContentPanel _pdfContentPanel
protected PdfViewerControlView _pdfViewerControlView
public PdfViewerWindowBase(com.frojasg1.applications.common.configuration.application.BaseApplicationConfigurationInterface appliConf)
public void init(LoadPdfControllerInterface parent, String configurationBaseFileName)
public String getPdfFileName()
getPdfFileName
in interface PdfViewer
public int getNumPages()
getNumPages
in interface PdfViewer
public void setNewPDF(PdfDocumentWrapper document)
protected void setDocument(PdfDocumentWrapper document)
public PdfDocumentWrapper getPdfDocument()
public int getCurrentPageIndex()
public void doNewPageTasks()
public void updateCurrentPageTexts()
public void updatePage(int pageIndex)
protected PdfViewerControlView createPdfViewerControlView()
protected PdfContentPanel createPdfContentPanel()
protected Component getControlViewComponent()
protected com.frojasg1.general.desktop.view.zoom.mapper.ComposedComponent getControlViewComposedComponent()
protected PdfViewerControlView getControlView()
protected PdfContentPanel getPdfContentPanel()
protected com.frojasg1.general.desktop.view.pdf.ImageJPanel getPdfContentImageJPanel()
protected void initPanels()
protected void setWindowConfiguration()
public static void main(String[] args)
args
- the command line argumentsprotected com.frojasg1.general.number.DoubleReference getSelectedZoomFactor()
protected double getSelectedZoomFactorDouble()
public void newPageSet(BufferedImage image, com.frojasg1.general.number.DoubleReference factor, int pageIndex)
newPageSet
in interface PdfViewerMaster
protected void updateZoomComboBoxValues()
protected void updateZoomFactor()
protected void navigatorTask(Runnable navigatorUpdateFunction)
public void navigator_start(com.frojasg1.general.desktop.view.panels.InformerInterface panel)
navigator_start
in interface com.frojasg1.general.desktop.view.panels.NavigatorControllerInterface
public void navigator_end(com.frojasg1.general.desktop.view.panels.InformerInterface panel)
navigator_end
in interface com.frojasg1.general.desktop.view.panels.NavigatorControllerInterface
public void navigator_previous(com.frojasg1.general.desktop.view.panels.InformerInterface panel)
navigator_previous
in interface com.frojasg1.general.desktop.view.panels.NavigatorControllerInterface
public void navigator_next(com.frojasg1.general.desktop.view.panels.InformerInterface panel)
navigator_next
in interface com.frojasg1.general.desktop.view.panels.NavigatorControllerInterface
public void previousPage()
previousPage
in interface com.frojasg1.general.desktop.view.pdf.ImageJPanelControllerInterface
public void nextPage()
nextPage
in interface com.frojasg1.general.desktop.view.pdf.ImageJPanelControllerInterface
public void setNewPdfZoomFactor(com.frojasg1.general.number.DoubleReference factor)
setNewPdfZoomFactor
in interface com.frojasg1.general.desktop.view.pdf.ImageJPanelControllerInterface
public BufferedImage getPage(int pageIndex, double factor)
getPage
in interface PDFownerInterface
public void block()
public void unblock()
public com.frojasg1.applications.common.configuration.application.BaseApplicationConfigurationInterface getAppliConf()
getAppliConf
in interface com.frojasg1.applications.common.components.internationalization.window.InternationalizedWindow
getAppliConf
in class com.frojasg1.applications.common.components.internationalization.window.InternationalizedJFrame
public void closeWindow()
public void changeZoomFactor(double zoomFactor)
changeZoomFactor
in interface com.frojasg1.applications.common.configuration.application.ChangeZoomFactorClientInterface
changeZoomFactor
in class com.frojasg1.applications.common.components.internationalization.window.InternationalizedJFrame
public void formWindowClosingEvent()
formWindowClosingEvent
in interface com.frojasg1.applications.common.components.internationalization.window.InternationalizedWindow
formWindowClosingEvent
in class com.frojasg1.applications.common.components.internationalization.window.InternationalizedJFrame
protected void translateMappedComponents(com.frojasg1.general.desktop.view.zoom.mapper.ComponentMapper compMapper)
translateMappedComponents
in class com.frojasg1.applications.common.components.internationalization.window.InternationalizedJFrame
public void newPageSelected(int newPageIndex)
newPageSelected
in interface PdfViewerMaster
public void newPdfZoomFactorSelected(com.frojasg1.general.number.DoubleReference newFactor)
newPdfZoomFactorSelected
in interface PdfViewerMaster
Copyright © 2020 Fran Rojas. All rights reserved.