com.levigo.jadice.demo.gestures
Class MouseGestureTool

java.lang.Object
  extended by com.levigo.jadice.swing.tool.Tool
      extended by com.levigo.jadice.demo.gestures.MouseGestureTool
All Implemented Interfaces:
MenuContributor

public class MouseGestureTool
extends Tool


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
MouseGestureTool()
           
 
Method Summary
protected  void handleEditEvent(boolean isActive, EditEvent e)
          Handle the given EditEvent.
protected  void handleGesture(Component source, String gesture, GeneralPath path)
           
 boolean isShowGesturePath()
           
protected  void render(RenderParameters parameters, boolean isActive)
          Renders the Tool's UI onto the given Graphics2D context using the given RenderControls.
 void setShowGesturePath(boolean showGesturePath)
           
 
Methods inherited from class com.levigo.jadice.swing.tool.Tool
contribute, getActivationFeedback, getActivationRequest, getActivationRequestForKeyPressed, getActivationRequestForMouseDragged, getActivationRequestForMousePressed, getCursor, getDispatchPriority, getManager, getRenderPriority, handleKeyPressed, handleKeyReleased, handleKeyTyped, handleMouseClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseMoved, handleMousePressed, handleMouseReleased, handleMouseWheelMoved, propagatePropertyChange, 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

MouseGestureTool

public MouseGestureTool()
Method Detail

handleEditEvent

protected void handleEditEvent(boolean isActive,
                               EditEvent e)
Description copied from class: Tool
Handle the given EditEvent. This method dispatches the edit event to the individual handleXYZ()-Methods. However, implementors may want and are allowed to override this method in order to perform standard handling tasks common to all types of events.

Overrides:
handleEditEvent in class Tool
Parameters:
isActive - whether this tool is currently active
e - the event

handleGesture

protected void handleGesture(Component source,
                             String gesture,
                             GeneralPath path)

render

protected void render(RenderParameters parameters,
                      boolean isActive)
Description copied from class: Tool
Renders the Tool's UI onto the given Graphics2D context using the given RenderControls.

This render method is called within the context and during the rendering of a single page. The page being rendered is passed to implementors of this method in order to be able to control and influence the page rendering.

Overrides:
render in class Tool
Parameters:
parameters - the view component which is currently being rendered
isActive - whether the called tool is currently active

setShowGesturePath

public void setShowGesturePath(boolean showGesturePath)

isShowGesturePath

public boolean isShowGesturePath()


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