com.levigo.jadice.swing.thumbnailview
Class ThumbnailNavigationTool

java.lang.Object
  extended by com.levigo.jadice.swing.tool.Tool
      extended by com.levigo.jadice.swing.thumbnailview.ThumbnailNavigationTool
All Implemented Interfaces:
MenuContributor

public class ThumbnailNavigationTool
extends Tool

A tool used to navigate a Document inside a PageView from within a ThumbnailView.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.levigo.jadice.swing.tool.Tool
Tool.ActivationRequest
 
Field Summary
 
Fields inherited from class com.levigo.jadice.swing.tool.Tool
DEFAULT_PRIORITY, MAX_PRIORITY, MIN_PRIORITY
 
Constructor Summary
ThumbnailNavigationTool()
           
 
Method Summary
 int getNavigationClickCount()
          Get the minimum number of mouse clicks required to trigger navigation to the clicked page.
protected  void handleMousePressed(MouseEditEvent e, boolean isActive)
          Invoked when a mouse button has been pressed on a component.
protected  void handleMouseReleased(MouseEditEvent e, boolean isActive)
          Invoked when a mouse button has been released on a component.
 void setNavigationClickCount(int navigationClickCount)
          Set the minimum number of mouse clicks required to trigger navigation to the clicked page.
 
Methods inherited from class com.levigo.jadice.swing.tool.Tool
contribute, getActivationFeedback, getActivationRequest, getActivationRequestForKeyPressed, getActivationRequestForMouseDragged, getActivationRequestForMousePressed, getCursor, getDispatchPriority, getManager, getRenderPriority, handleEditEvent, handleKeyPressed, handleKeyReleased, handleKeyTyped, handleMouseClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseMoved, handleMouseWheelMoved, propagatePropertyChange, render, setActive, setCursor, setEnabled, setManager, setStatusFeedback
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThumbnailNavigationTool

public ThumbnailNavigationTool()
Method Detail

handleMousePressed

protected void handleMousePressed(MouseEditEvent e,
                                  boolean isActive)
Description copied from class: Tool
Invoked when a mouse button has been pressed on a component.

Overrides:
handleMousePressed in class Tool
isActive - whether this tool is currently active

handleMouseReleased

protected void handleMouseReleased(MouseEditEvent e,
                                   boolean isActive)
Description copied from class: Tool
Invoked when a mouse button has been released on a component.

Overrides:
handleMouseReleased in class Tool
isActive - whether this tool is currently active

getNavigationClickCount

public int getNavigationClickCount()
Get the minimum number of mouse clicks required to trigger navigation to the clicked page.

Returns:
the navigationClickCount

setNavigationClickCount

public void setNavigationClickCount(int navigationClickCount)
Set the minimum number of mouse clicks required to trigger navigation to the clicked page. Useful values are 1 (single click navigates) or 2 (double click navigates) only.

Parameters:
navigationClickCount - the navigationClickCount to set


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.