public class NavigatorComponent extends JComponent
PageView
s current page. Above the
thumbnail a visual rectangle is displayed to show the current visibility area of the page within
the PageView
.
Property | Type | Description | Default value |
---|---|---|---|
NavigatorComponent.background | Color |
The color of the background | Same as 'ThumbnailView.background' |
NavigatorComponent.foreground | Color |
The color of foreground elements like labels etc. | Same as 'ThumbnailView.foreground' |
NavigatorComponent.border | Border |
The border of this view | Same as 'Panel.border' |
NavigatorComponent.visibleBoundsBorder | Border |
The border used to designate the area visible in an associated PageView |
Red frame with semi-transparent inner frame. Same as 'ThumbnailView.visibleBoundsBorder' |
NavigatorComponent.font | Font |
The font used to render labels etc. | Same as 'Thumbnail.font' |
NavigatorComponent.thumbnailSize | Dimension |
The default thumb nail size. | Dimension(200,200) |
NavigatorComponent.lockIcon | Icon |
an icon indicating whether the navigator applies the page view render settings or not | "/com/levigo/jadice/swing/resources/jadice-viewer.TB_NAVIGATOR_LOCK |
NavigatorComponent.focusInputMap | InputMap |
The input map | See section 'Input Map' |
Key | Action Name |
---|---|
HOME | navigateHOME |
END | navigateEND |
UP | navigateUP |
KP_UP | navigateUP |
PAGE_UP | navigateUP |
LEFT | navigateUP |
KP_LEFT | navigateUP |
RIGHT | navigateDOWN |
KP_RIGHT | navigateDOWN |
DOWN | navigateDOWN |
KP_DOWN | navigateDOWN |
PAGE_DOWN | navigateDOWN |
Action Name | Description |
---|---|
navigateHOME | show the first page |
navigateEND | show the last page |
navigateUP | show the previous page |
navigateDOWN | show the next page |
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
static String |
UI_CLASS_ID |
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 |
---|
NavigatorComponent() |
Modifier and Type | Method and Description |
---|---|
PageView |
getPageView()
Returns the bound
PageView component or null if not available. |
ToolManager |
getToolManager()
Returns the
ToolManager of the embedded navigator thumbnail component |
NavigatorComponentUI |
getUI()
Returns the
NavigatorComponentUI (!) used to render this component. |
String |
getUIClassID()
Returns
"NavigatorComponentUI" , the UIDefaults key used to look up the
name of the NavigatorComponentUI class that defines the look and feel for this
component. |
boolean |
isApplyPageViewRenderSettings()
Returns an indicator whether the sorter render pages according to the
PageView render
settings or not. |
void |
setApplyPageViewRenderSettings(boolean apply)
Changes the sorter render behavior whether the pages rendered according to the
PageView
render settings or not. |
void |
setPageView(PageView pageView)
Sets the page view holding the document of which the actually current page have to displayed en
miniature.
|
void |
setUI(NavigatorComponentUI ui)
Sets the
NavigatorComponentUI , the look and feel object that renders this component. |
void |
updateUI()
Resets the UI property with the value from the current look and feel.
|
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, paramString, 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, getAccessibleContext, 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
public static final String UI_CLASS_ID
public void updateUI()
updateUI
in class JComponent
UIManager.getUI(javax.swing.JComponent)
public String getUIClassID()
"NavigatorComponentUI"
, the UIDefaults
key used to look up the
name of the NavigatorComponentUI
class that defines the look and feel for this
component.getUIClassID
in class JComponent
JComponent.getUIClassID()
,
UIDefaults.getUI(javax.swing.JComponent)
public NavigatorComponentUI getUI()
NavigatorComponentUI
(!) used to render this component.NavigatorComponentUI
object that renders this componentpublic void setUI(NavigatorComponentUI ui)
NavigatorComponentUI
, the look and feel object that renders this component.ui
- the NavigatorComponentUI
objectUIDefaults.getUI(javax.swing.JComponent)
public PageView getPageView()
PageView
component or null
if not available.PageView
or null
if no page view is bind to this navigortor panel.public void setPageView(PageView pageView)
pageView
- the page view holding the documentpublic final ToolManager getToolManager()
ToolManager
of the embedded navigator thumbnail componentToolManager
or null
if not availablepublic void setApplyPageViewRenderSettings(boolean apply)
PageView
render settings or not.apply
- whether the PageView
render settings are honored for page rendering or notpublic boolean isApplyPageViewRenderSettings()
PageView
render
settings or not.Copyright © 2024 levigo holding gmbh. All rights reserved.