public class PdfContentPanel extends JPanel implements com.frojasg1.general.desktop.view.zoom.mapper.ComposedComponent, com.frojasg1.general.desktop.view.pdf.ImageJPanelControllerInterface, com.frojasg1.general.desktop.view.panels.NavigatorControllerInterface, PDFownerInterface, PdfViewer
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
protected PdfViewerMaster |
_controller |
protected int |
_currentPageIndex |
protected PdfDocumentWrapper |
_pdfDocument |
protected com.frojasg1.general.desktop.view.pdf.ImageJPanel |
_pdfImagePanel |
protected PDFownerInterface |
_pdfOwner |
protected com.frojasg1.general.number.DoubleReference |
_pdfZoomFactor |
protected com.frojasg1.applications.common.components.resizecomp.MapResizeRelocateComponentItem |
_resizeRelocateInfo |
protected int |
_totalNumberOfPages |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
PdfContentPanel()
Creates new form PdfContentPanel
|
Modifier and Type | Method and Description |
---|---|
protected com.frojasg1.general.desktop.view.pdf.ImageJPanel |
createImageJPanel() |
protected int |
decrementCurrentPage() |
int |
getCurrentPage() |
com.frojasg1.general.desktop.view.pdf.ImageJPanel |
getImagePanel() |
protected JScrollPane |
getImageScrollPane() |
Dimension |
getInternalSize() |
int |
getNumPages() |
BufferedImage |
getPage(int pageIndex,
double factor) |
PdfDocumentWrapper |
getPdfDocument() |
String |
getPdfFileName() |
com.frojasg1.applications.common.components.resizecomp.MapResizeRelocateComponentItem |
getResizeRelocateInfo() |
protected double |
getSelectedZoomFactorDouble(com.frojasg1.general.number.DoubleReference dr) |
LinkedList<com.frojasg1.general.number.DoubleReference> |
getStepsForFactorList() |
com.frojasg1.general.number.DoubleReference |
getZoomFactor() |
protected int |
incrementCurrentPage() |
void |
init(PdfViewerMaster controller,
PDFownerInterface pdfOwner) |
protected void |
initPanel() |
protected void |
initZoomFactor() |
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) |
void |
nextPage() |
void |
previousPage() |
void |
setComponentMapper(com.frojasg1.general.desktop.view.zoom.mapper.ComponentMapper mapper) |
void |
setDocument(PdfDocumentWrapper document) |
void |
setImage(String fileName) |
void |
setNewPDF(PdfDocumentWrapper document) |
void |
setNewPdfZoomFactor(com.frojasg1.general.number.DoubleReference factor) |
void |
setNumberOfPages(int numberOfPages) |
protected void |
setPage(BufferedImage image) |
protected void |
setPage(BufferedImage image,
com.frojasg1.general.number.DoubleReference factor,
int pageIndex) |
void |
setPdfZoomFactor(com.frojasg1.general.number.DoubleReference pdfZoomFactor) |
protected void |
setWindowConfiguration() |
void |
showPage(int index) |
void |
updatePage(int pageIndex,
com.frojasg1.general.number.DoubleReference zoomFactor) |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected com.frojasg1.general.desktop.view.pdf.ImageJPanel _pdfImagePanel
protected int _totalNumberOfPages
protected int _currentPageIndex
protected PDFownerInterface _pdfOwner
protected com.frojasg1.general.number.DoubleReference _pdfZoomFactor
protected PdfDocumentWrapper _pdfDocument
protected com.frojasg1.applications.common.components.resizecomp.MapResizeRelocateComponentItem _resizeRelocateInfo
protected PdfViewerMaster _controller
public void init(PdfViewerMaster controller, PDFownerInterface pdfOwner)
protected void initZoomFactor()
public PdfDocumentWrapper getPdfDocument()
protected JScrollPane getImageScrollPane()
protected com.frojasg1.general.desktop.view.pdf.ImageJPanel createImageJPanel()
protected void initPanel()
public com.frojasg1.general.desktop.view.pdf.ImageJPanel getImagePanel()
protected void setWindowConfiguration()
public com.frojasg1.applications.common.components.resizecomp.MapResizeRelocateComponentItem getResizeRelocateInfo()
getResizeRelocateInfo
in interface com.frojasg1.general.desktop.view.zoom.mapper.ComposedComponent
public void setImage(String fileName)
public LinkedList<com.frojasg1.general.number.DoubleReference> getStepsForFactorList()
public void setDocument(PdfDocumentWrapper document)
public void setNumberOfPages(int numberOfPages)
public void setNewPDF(PdfDocumentWrapper document)
protected void setPage(BufferedImage image, com.frojasg1.general.number.DoubleReference factor, int pageIndex)
protected double getSelectedZoomFactorDouble(com.frojasg1.general.number.DoubleReference dr)
protected void setPage(BufferedImage image)
public void updatePage(int pageIndex, com.frojasg1.general.number.DoubleReference zoomFactor)
public void setPdfZoomFactor(com.frojasg1.general.number.DoubleReference pdfZoomFactor)
public com.frojasg1.general.number.DoubleReference getZoomFactor()
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
protected int incrementCurrentPage()
protected int decrementCurrentPage()
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 int getCurrentPage()
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 int getNumPages()
getNumPages
in interface PdfViewer
public String getPdfFileName()
getPdfFileName
in interface PdfViewer
public void setComponentMapper(com.frojasg1.general.desktop.view.zoom.mapper.ComponentMapper mapper)
setComponentMapper
in interface com.frojasg1.general.desktop.view.zoom.mapper.InternallyMappedComponent
public Dimension getInternalSize()
getInternalSize
in interface com.frojasg1.general.desktop.view.zoom.mapper.ComposedComponent
Copyright © 2020 Fran Rojas. All rights reserved.