public class ThumbnailView extends ViewComponent implements Scrollable, Accessible, PageSelection
Property | Type | Description | Default value |
---|---|---|---|
ThumbnailView.background | Color |
The color of the background | Same as 'Panel.background' |
ThumbnailView.foreground | Color |
The color of foreground elements like labels etc. | Same as 'List.foreground' |
ThumbnailView.cellRenderer | ThumbnailCellRenderer |
The cell renderer used to render the thumbnail images and their decoration | DefaultThumbnailCellRenderer |
ThumbnailView.pageBorder | Border |
The border used to decorate a page thumbnail | A compound border consisting of a drop shadow and a black line |
ThumbnailView.visibleBoundsBorder | Border |
The border used to designate the area visible in an associated PageView |
Red frame with semi-transparent inner frame |
ThumbnailView.font | Font |
The font used to render labels etc. | Same as 'List.font' |
ThumbnailView.selectionBackground | Color |
The background color for selected pages | Same as 'List.selectionBackground', but with alpha=120 |
ThumbnailView.selectionForeground | Color |
The color of foreground elements like labels etc. for selected pages | Same as 'List.foreground' |
ThumbnailView.focusSelectedCellHighlightBorder | Border |
The border used to indicate a focused and selected cell | Same as 'List.focusSelectedCellHighlightBorder' |
ThumbnailView.focusCellHighlightBorder | Border |
The border used to indicate a focused cell | Same as 'List.focusCellHighlightBorder' |
ThumbnailView.useDropLocationAnimation | boolean | Whether to indicate the drop location by showing an animation of the pages "making room" for. the pages to be dropped. | true |
ThumbnailView.dropLocationShift | integer | The number of pixels to shift pages aside when using the drop location animation. | 15 |
ThumbnailView.dropLocationRange | integer | The number of pages left and right of the drop location taking part in the animation. | 3 |
ThumbnailView.useDropLocationIndicator | boolean | Whether to indicate the drop location by drawing a location indicator bar. where the pages would be dropped. | false |
ThumbnailView.dropLocationIndicatorWidth | integer | The width of the drop location indicator (pixels). | 5 |
ThumbnailView.dropLocationIndicatorColorValid | integer | The color used to paint the drop location at a valid drop position. | Color(100, 100, 100, 100) |
ThumbnailView.dropLocationIndicatorColorInvalid | integer | The color used to paint the drop location at an invalid drop position. | Color.DARK_GRAY |
ThumbnailView.DnD.Autoscroll.gestureMotionThreshold | integer | The distance in pixels the mouse pointer must travel in order for a drag-and-drop gesture to be recognized. | 10 |
ThumbnailView.DnD.Autoscroll.initialDelay | integer | The initial delay in ms before auto-scrolling commences. | 50 |
ThumbnailView.DnD.Autoscroll.interval | integer | The interval in ms at which auto-scrolling progresses. | 50 |
ThumbnailView.DnD.Autoscroll.cursorHysteresis | integer | The hysteresis in pixels for entering/exiting the auto-scrolling "hot-zone" with the mouse cursor. | 10 |
ThumbnailView.DnD.Autoscroll.disableVisualRepresentation | boolean | Set to true to disable the visual representation of the dragged pages. |
false |
ThumbnailView.focusInputMap | InputMap |
The input map | See section 'Input Map' |
JList
. The following table contains only the additional actions.
Key | Action Name |
---|---|
ESCAPE | clearSelection |
SPACE | navigate |
ENTER | navigate |
DELETE | remove |
Action Name | Description |
---|---|
addToSelection | Add the currently focused page to the selection |
clearSelection | Clear the current selection |
extendTo | Select all pages between the lead and the anchor selection index |
moveSelectionTo | |
scrollDown | |
scrollDownChangeLead | |
scrollDownExtendSelection | |
scrollUp | |
scrollUpChangeLead | |
scrollUpExtendSelection | |
selectAll | |
selectFirstRow | |
selectFirstRowChangeLead | |
selectFirstRowExtendSelection | |
selectLastRow | |
selectLastRowChangeLead | |
selectLastRowExtendSelection | |
selectNextColumn | |
selectNextColumnChangeLead | |
selectNextColumnExtendSelection | |
selectNextRow | |
selectNextRowChangeLead | |
selectNextRowExtendSelection | |
selectPreviousColumn | |
selectPreviousColumnChangeLead | |
selectPreviousColumnExtendSelection | |
selectPreviousRow | |
selectPreviousRowChangeLead | |
selectPreviousRowExtendSelection | |
toggleAndAnchor | Toggle the selected state of the lead page and move the anchor to it |
navigate | Navigate to the selected page |
remove | Remove the selected pages from the document |
Modifier and Type | Class and Description |
---|---|
protected class |
ThumbnailView.AccessibleThumbnailView
AccessibleJComponent is a non-static inner class
of JComponent and can therefore only be sub-classed by an inner class of a descendant of
JComponent. |
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
static Dimension |
DEFAULT_THUMBNAIL_SIZE
The default thumbnail is 90 pixels wide.
|
static int[] |
DEFAULT_THUMBNAIL_WIDTHS
A row of default thumbnail widths as used by the resizing-commands.
|
static String |
UI_CLASS_ID |
toolManager
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 |
---|
ThumbnailView()
Constructs a new ThumbnailView.
|
Modifier and Type | Method and Description |
---|---|
void |
addNotify() |
void |
cleanup()
Releases references to the
Document currently referenced by this ViewComponent ,
if any. |
void |
clearSelection() |
void |
contribute(ContributionContext context,
MenuBuilder menuBuilder)
There are no default contributions of the
ThumbnailView to its context menu. |
void |
ensureIndexIsVisible(int index)
Scrolls the ThumbnailView within an enclosing JViewport to make the specified cell completely
visible.
|
protected void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
We override this method, because the default implementation erroneously compares the old and
new value for equality instead of identity.
|
AccessibleContext |
getAccessibleContext()
Gets the
AccessibleContext associated with this JList . |
Rectangle |
getCellBounds(int from,
int to)
Returns the bounding rectangle, in the ThumbnailView's coordinate system, for the range of
cells specified by the two indices.
|
Rectangle |
getCellBounds(Page page) |
ThumbnailCellRenderer |
getCellRenderer() |
UIDocument<Component> |
getDocument()
Return the document to which the pages belong or
null if the pages are not
(currently) associated with a document or the association is unknown. |
int |
getNextMatch(String prefix,
int startIndex,
Position.Bias bias)
Look for pages matching a certain prefix, starting from the given index, searching with the
given bias.
|
ExportHandler<List<Page>> |
getPageExportHandler() |
ImportHandler |
getPageImportHandler() |
PageView |
getPageView()
Gets the embedded page view holding the document to be displayed en miniature.
|
Dimension |
getPreferredScrollableViewportSize() |
int |
getScrollableBlockIncrement(Rectangle visibleRect,
int orientation,
int direction) |
boolean |
getScrollableTracksViewportHeight() |
boolean |
getScrollableTracksViewportWidth() |
int |
getScrollableUnitIncrement(Rectangle visibleRect,
int orientation,
int direction) |
List<Page> |
getSelectedPages()
Returns the list of selected pages.
|
Color |
getSelectionBackground()
Returns the color used to draw the background of selected pages.
|
Color |
getSelectionForeground()
Returns the color used to draw the foreground of selected pages.
|
ListSelectionModel |
getSelectionModel() |
ThumbnailProvider |
getThumbnailProvider() |
RenderControls |
getThumbnailRenderControls(Page page)
Calculates the zoom factor for the render context to fit into the thumbnail image size.
|
Dimension |
getThumbnailSize()
Returns the thumbnailSize.
|
String |
getToolTipText(MouseEvent e)
Returns the tooltip text to be used for the given event.
|
ThumbnailViewUI |
getUI()
Returns the
ThumbnailViewUI (!) used to render this component. |
String |
getUIClassID()
Returns
"ThumbnailViewUI" , the UIDefaults key used to look up the name of
the ThumbnailViewUI 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. |
boolean |
isEnableTransientPageRendering()
Returns whether thumbnail rendering shall be triggered, even during transient renderings.
|
boolean |
isMovePagesAllowed(List<Page> pagesToMove,
int target)
Checks whether it is allowed to move the pages in the supplied vector to the given target
position.
|
int |
locationToIndex(Point location)
Returns the cell index closest to the given location in the view's coordinate system.
|
void |
removeNotify() |
void |
repaint(Page p)
Repaint all of the given page.
|
void |
repaint(Page p,
Rectangle2D boundsDU)
Repaint all of the given page.
|
void |
setApplyPageViewRenderSettings(boolean apply)
Changes the sorter render behavior whether the pages rendered according to the
PageView
render settings or not. |
void |
setCellRenderer(ThumbnailCellRenderer cellRenderer) |
void |
setDocument(Document doc) |
void |
setEnableTransientPageRendering(boolean renderPagesDuringTransientRenderings)
Returns whether thumbnail rendering shall be triggered, even during transient renderings.
|
void |
setExportHandler(ExportHandler<List<Page>> pageExportHandler) |
void |
setImportHandler(ImportHandler pageImportHandler) |
void |
setPageView(PageView pageView)
Sets the page view holding the document to be displayed en miniature.
|
void |
setSelectedIndex(int index)
Selects a single page.
|
void |
setSelectionBackground(Color selectionBackground)
Sets the color used to draw the background of selected pages.
|
void |
setSelectionForeground(Color selectionForeground)
Sets the color used to draw the foreground of selected pages.
|
void |
setSelectionModel(ListSelectionModel selectionModel) |
void |
setThumbnailProvider(ThumbnailProvider thumbnailProvider) |
void |
setThumbnailSize(Dimension thumbnailSize)
Sets the thumbnail image size.
|
void |
setUI(ThumbnailViewUI ui)
Sets the
ThumbnailViewUI , the look and feel object that renders this component. |
void |
updateUI()
Resets the UI property with the value from the current look and feel.
|
findViewport, getToolManager
addAncestorListener, 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, 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, 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, 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 static final int[] DEFAULT_THUMBNAIL_WIDTHS
public static final Dimension DEFAULT_THUMBNAIL_SIZE
width * sqrt(2)
which corresponds to the aspect ratio of the EN ISO 216 paper
formats.public ExportHandler<List<Page>> getPageExportHandler()
public void setExportHandler(ExportHandler<List<Page>> pageExportHandler)
pageExportHandler
- the pageExportHandler to setpublic ImportHandler getPageImportHandler()
public void setImportHandler(ImportHandler pageImportHandler)
pageImportHandler
- the pageImportHandler to setpublic void addNotify()
addNotify
in class JComponent
Component.addNotify()
public void clearSelection()
public void ensureIndexIsVisible(int index)
scrollRectToVisible
with the bounds of the specified cell. For this
method to work, the ThumbnailView
must be within a JViewport
.
If the given index is outside the list's range of cells, this method results in nothing.
index
- the index of the cell to make visibleJComponent.scrollRectToVisible(java.awt.Rectangle)
,
JComponent.getVisibleRect()
public AccessibleContext getAccessibleContext()
AccessibleContext
associated with this JList
. For JList
, the
AccessibleContext
takes the form of an AccessibleJList
.
A new AccessibleJList
instance is created if necessary.
getAccessibleContext
in interface Accessible
getAccessibleContext
in class Component
AccessibleJList
that serves as the AccessibleContext
of this
JList
public Rectangle getCellBounds(int from, int to)
If the smaller index is outside the list's range of cells, this method returns null
. If
the smaller index is valid, but the larger index is outside the list's range, the bounds of
just the first index is returned. Otherwise, the bounds of the valid range is returned.
This is a cover method that delegates to the method of the same name in the list's
ListUI
. It returns null
if the list has no ListUI
.
from
- the first index in the rangeto
- the second index in the rangenull
public ThumbnailCellRenderer getCellRenderer()
public UIDocument<Component> getDocument()
PageSelection
null
if the pages are not
(currently) associated with a document or the association is unknown.getDocument
in interface PageSelection
getDocument
in class ViewComponent
public int getNextMatch(String prefix, int startIndex, Position.Bias bias)
JList.getNextMatch(String, int, Position.Bias)
public Dimension getPreferredScrollableViewportSize()
getPreferredScrollableViewportSize
in interface Scrollable
public int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)
getScrollableBlockIncrement
in interface Scrollable
public boolean getScrollableTracksViewportHeight()
getScrollableTracksViewportHeight
in interface Scrollable
public boolean getScrollableTracksViewportWidth()
getScrollableTracksViewportWidth
in interface Scrollable
public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)
getScrollableUnitIncrement
in interface Scrollable
public List<Page> getSelectedPages()
getSelectedPages
in interface PageSelection
public ListSelectionModel getSelectionModel()
public ThumbnailProvider getThumbnailProvider()
public Dimension getThumbnailSize()
public String getToolTipText(MouseEvent e)
JComponent
's
getToolTipText
to first check the cell renderer component for the cell over which the
event occurred, returning its tooltip text, if any. This implementation allows you to specify
tooltip text on the cell level, by using setToolTipText
on your cell renderer
component.
Note: For JList
to properly display the tooltips of its renderers in this
manner, JList
must be a registered component with the ToolTipManager
.
This registration is done automatically in the constructor. However, if at a later point
JList
is unregistered, by way of a call to setToolTipText(null)
, tips from
the renderers will no longer display.
getToolTipText
in class JComponent
e
- the MouseEvent
to fetch the tooltip text forJComponent.setToolTipText(java.lang.String)
,
JComponent.getToolTipText()
public ThumbnailViewUI getUI()
ThumbnailViewUI
(!) used to render this component.ListUI
object that renders this componentpublic String getUIClassID()
"ThumbnailViewUI"
, the UIDefaults
key used to look up the name of
the ThumbnailViewUI
class that defines the look and feel for this component.getUIClassID
in class JComponent
JComponent.getUIClassID()
,
UIDefaults.getUI(javax.swing.JComponent)
public PageView getPageView()
PageView
public boolean isApplyPageViewRenderSettings()
PageView
render
settings or not.public boolean isMovePagesAllowed(List<Page> pagesToMove, int target)
The default implementation of this method always returns true. Integrators might overwrite this method to perform additional checks before actually moving the given pages.
In contrast to the global isSortingEnabled() setting, this method refers to a given collection of selected pages and is only applied if sorting is already enabled.
pagesToMove
- the vector containing pages to be moved to a new locationtarget
- the target indexpublic int locationToIndex(Point location)
getCellBounds
. This method returns -1
if the
model is empty
This is a cover method that delegates to the method of the same name in the view's
ThumbnailViewUI
. It returns -1
if the list has no ThumbnailViewUI
.
location
- the coordinates of the point-1
public void removeNotify()
removeNotify
in class JComponent
Component.removeNotify()
public void repaint(Page p)
repaint
in class ViewComponent
p
- the page to repaintpublic void repaint(Page p, Rectangle2D boundsDU)
repaint
in class ViewComponent
p
- the page to repaintboundsDU
- the bounds within the page to repaint.public void setApplyPageViewRenderSettings(boolean apply)
PageView
render settings or not.apply
- whether the PageView
render settings are honored for page rendering or notpublic void setCellRenderer(ThumbnailCellRenderer cellRenderer)
cellRenderer
- the cellRenderer to setpublic void setDocument(Document doc)
public void cleanup()
ViewComponent
Document
currently referenced by this ViewComponent
,
if any.cleanup
in class ViewComponent
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)
firePropertyChange
in class Component
Component.firePropertyChange(java.lang.String, java.lang.Object,
java.lang.Object)
public void setSelectedIndex(int index)
setSelectionInterval
on the selection
model. Refer to the documentation for the selection model class being used for details on how
values less than 0
are handled.index
- the index of the cell to selectListSelectionModel.setSelectionInterval(int, int)
public void setSelectionModel(ListSelectionModel selectionModel)
selectionModel
- the selectionModel to setpublic void setThumbnailProvider(ThumbnailProvider thumbnailProvider)
thumbnailProvider
- the thumbnailProvider to setpublic void setThumbnailSize(Dimension thumbnailSize)
thumbnailSize
- The thumbnailSize to setpublic void setUI(ThumbnailViewUI ui)
ThumbnailViewUI
, the look and feel object that renders this component.ui
- the ThumbnailViewUI
objectUIDefaults.getUI(javax.swing.JComponent)
public void setPageView(PageView pageView)
pageView
- the viewer holding the documentpublic void updateUI()
updateUI
in class JComponent
UIManager.getUI(javax.swing.JComponent)
public RenderControls getThumbnailRenderControls(Page page)
page
- the page whose scaled size will be used to fit into the thumbnail image sizepublic Color getSelectionBackground()
DefaultThumbnailCellRenderer
uses this color to draw the background of selected pages.setSelectionBackground(java.awt.Color)
,
DefaultThumbnailCellRenderer
public void setSelectionBackground(Color selectionBackground)
DefaultThumbnailCellRenderer
uses this color to fill the background of selected pages.
The default value of this property is defined as UI property:
Property | Type | Description | Default value |
---|---|---|---|
ThumbnailView.selectionBackground | Color |
The background color for selected pages | Same as 'List.selectionBackground', but with alpha=120 |
selectionBackground
- the Color
to use for the background of selected cellsgetSelectionBackground()
,
setSelectionForeground(java.awt.Color)
,
JComponent.setForeground(java.awt.Color)
,
JComponent.setBackground(java.awt.Color)
,
JComponent.setFont(java.awt.Font)
,
DefaultThumbnailCellRenderer
public Color getSelectionForeground()
DefaultThumbnailCellRenderer
uses this color to draw the foreground of items in the
selected state.setSelectionForeground(java.awt.Color)
,
DefaultThumbnailCellRenderer
public void setSelectionForeground(Color selectionForeground)
DefaultThumbnailCellRenderer
uses this color to draw the foreground of items in the
selected state.
The default value of this property is defined as UI property:
Property | Type | Description | Default value |
---|---|---|---|
ThumbnailView.selectionForeground | Color |
The color of foreground elements like labels etc. for selected pages | Same as 'List.foreground' |
selectionForeground
- the Color
to use in the foreground for selected cellsgetSelectionForeground()
,
setSelectionBackground(java.awt.Color)
,
JComponent.setForeground(java.awt.Color)
,
JComponent.setBackground(java.awt.Color)
,
JComponent.setFont(java.awt.Font)
,
DefaultThumbnailCellRenderer
public void contribute(ContributionContext context, MenuBuilder menuBuilder)
ThumbnailView
to its context menu.contribute
in interface MenuContributor
contribute
in class ViewComponent
context
- the ContributionContext
which provides contribution context informationsmenuBuilder
- the MenuBuilder
to which the tool may contribute entries.ViewComponent.contribute(ContributionContext,
MenuBuilder)
public void setEnableTransientPageRendering(boolean renderPagesDuringTransientRenderings)
renderPagesDuringTransientRenderings
- if enabled, all thumbnails are rendered, even
during transient renderings.isEnableTransientPageRendering()
public boolean isEnableTransientPageRendering()
true
all thumbnails are always being rendered, even during transient
renderings. Otherwise not.setEnableTransientPageRendering(boolean)
Copyright © 2024 levigo holding gmbh. All rights reserved.