com.levigo.jadice.swing.pageview
Class GalleryNavigationTool

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

public class GalleryNavigationTool
extends Tool

A navigation tool in the style used by some web galleries.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.levigo.jadice.swing.tool.Tool
Tool.ActivationRequest
 
Field Summary
static String KEY_NEXT_PAGE_COMMAND
          A key which is used to query the UIManager for an instance of InjectedCommand.
static String KEY_PREVIOUS_PAGE_COMMAND
          A key which is used to query the UIManager for an instance of InjectedCommand.
 
Fields inherited from class com.levigo.jadice.swing.tool.Tool
DEFAULT_PRIORITY, MAX_PRIORITY, MIN_PRIORITY
 
Constructor Summary
GalleryNavigationTool()
           
 
Method Summary
 Color getDisabledColor()
           
 Color getEnabledColor()
           
 float getFlyoutZonePercent()
           
 Color getRolloverColor()
           
protected  void handleMouseMoved(MouseEditEvent e, boolean isActive)
          Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed.
 boolean isShowAlways()
           
 void setBackground(Color background)
          Set the flyout's background color.
 void setBorder(Border border)
          Set the flyout's border.
 void setDisabledColor(Color disabledColor)
           
 void setEnabledColor(Color enabledColor)
           
 void setFlyoutZonePercent(float flyoutZonePercent)
           
protected  void setManager(ToolManager manager)
          Receives the ToolManager instance, which the Tool implementation has been registered for.
 void setOpaque(boolean opaque)
          Set the flyout's opacity.
 void setRolloverColor(Color rolloverColor)
           
 void setShowAlways(boolean showAlways)
           
 
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, handleMousePressed, handleMouseReleased, handleMouseWheelMoved, propagatePropertyChange, render, setActive, setCursor, setEnabled, setStatusFeedback
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_NEXT_PAGE_COMMAND

public static final String KEY_NEXT_PAGE_COMMAND
A key which is used to query the UIManager for an instance of InjectedCommand. This command is executed when this Tool's "next" Button is clicked. If no command was found under that key, the default functionality is performed.

See Also:
Constant Field Values

KEY_PREVIOUS_PAGE_COMMAND

public static final String KEY_PREVIOUS_PAGE_COMMAND
A key which is used to query the UIManager for an instance of InjectedCommand. This command is executed when this Tool's "previous" Button is clicked. If no command was found under that key, the default functionality is performed.

See Also:
Constant Field Values
Constructor Detail

GalleryNavigationTool

public GalleryNavigationTool()
Method Detail

setBorder

public void setBorder(Border border)
Set the flyout's border.

Parameters:
border -

setOpaque

public void setOpaque(boolean opaque)
Set the flyout's opacity.

Parameters:
opaque -

setBackground

public void setBackground(Color background)
Set the flyout's background color.

Parameters:
background -

setManager

protected void setManager(ToolManager manager)
Description copied from class: Tool
Receives the ToolManager instance, which the Tool implementation has been registered for. If the Tool is deregistered this method will be called with null.

Overrides:
setManager in class Tool

handleMouseMoved

protected void handleMouseMoved(MouseEditEvent e,
                                boolean isActive)
Description copied from class: Tool
Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed.

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

isShowAlways

public boolean isShowAlways()

setShowAlways

public void setShowAlways(boolean showAlways)

setRolloverColor

public void setRolloverColor(Color rolloverColor)

setEnabledColor

public void setEnabledColor(Color enabledColor)

setDisabledColor

public void setDisabledColor(Color disabledColor)

getRolloverColor

public Color getRolloverColor()

getEnabledColor

public Color getEnabledColor()

getDisabledColor

public Color getDisabledColor()

getFlyoutZonePercent

public float getFlyoutZonePercent()

setFlyoutZonePercent

public void setFlyoutZonePercent(float flyoutZonePercent)


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