|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent com.levigo.jadice.swing.navigator.NavigatorComponent
public class NavigatorComponent
A navigator component provides a thumbnail view of the 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 |
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
static String |
UI_CLASS_ID
|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
NavigatorComponent()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String UI_CLASS_ID
Constructor Detail |
---|
public NavigatorComponent()
Method Detail |
---|
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 component
ToolManager
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |