Package org.apache.batik.swing.gvt
Class AbstractResetTransformInteractor
- java.lang.Object
-
- org.apache.batik.swing.gvt.AbstractResetTransformInteractor
-
- All Implemented Interfaces:
java.awt.event.KeyListener,java.awt.event.MouseListener,java.awt.event.MouseMotionListener,java.util.EventListener,Interactor
public abstract class AbstractResetTransformInteractor extends java.lang.Object implements Interactor
This class represents an interactor which reset the rendering transform of the associated document.- Version:
- $Id: AbstractResetTransformInteractor.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanfinishedWhether the interactor has finished.
-
Constructor Summary
Constructors Constructor Description AbstractResetTransformInteractor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanendInteraction()Tells whether the interaction has finished.voidkeyPressed(java.awt.event.KeyEvent e)Invoked when a key has been pressed.voidkeyReleased(java.awt.event.KeyEvent e)Invoked when a key has been released.voidkeyTyped(java.awt.event.KeyEvent e)Invoked when a key has been typed.voidmouseClicked(java.awt.event.MouseEvent e)Invoked when the mouse has been clicked on a component.voidmouseDragged(java.awt.event.MouseEvent e)Invoked when a mouse button is pressed on a component and then dragged.voidmouseEntered(java.awt.event.MouseEvent e)Invoked when the mouse enters a component.voidmouseExited(java.awt.event.MouseEvent e)Invoked when the mouse exits a component.voidmouseMoved(java.awt.event.MouseEvent e)Invoked when the mouse button has been moved on a component (with no buttons no down).voidmousePressed(java.awt.event.MouseEvent e)Invoked when a mouse button has been pressed on a component.voidmouseReleased(java.awt.event.MouseEvent e)Invoked when a mouse button has been released on a component.protected voidresetTransform(java.awt.event.InputEvent e)Resets the associated component's transform.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.batik.swing.gvt.Interactor
startInteraction
-
-
-
-
Method Detail
-
endInteraction
public boolean endInteraction()
Tells whether the interaction has finished.- Specified by:
endInteractionin interfaceInteractor
-
keyTyped
public void keyTyped(java.awt.event.KeyEvent e)
Invoked when a key has been typed. This event occurs when a key press is followed by a key release.- Specified by:
keyTypedin interfacejava.awt.event.KeyListener
-
keyPressed
public void keyPressed(java.awt.event.KeyEvent e)
Invoked when a key has been pressed.- Specified by:
keyPressedin interfacejava.awt.event.KeyListener
-
keyReleased
public void keyReleased(java.awt.event.KeyEvent e)
Invoked when a key has been released.- Specified by:
keyReleasedin interfacejava.awt.event.KeyListener
-
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent e)
Invoked when the mouse has been clicked on a component.- Specified by:
mouseClickedin interfacejava.awt.event.MouseListener
-
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
Invoked when a mouse button has been pressed on a component.- Specified by:
mousePressedin interfacejava.awt.event.MouseListener
-
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
Invoked when a mouse button has been released on a component.- Specified by:
mouseReleasedin interfacejava.awt.event.MouseListener
-
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent e)
Invoked when the mouse enters a component.- Specified by:
mouseEnteredin interfacejava.awt.event.MouseListener
-
mouseExited
public void mouseExited(java.awt.event.MouseEvent e)
Invoked when the mouse exits a component.- Specified by:
mouseExitedin interfacejava.awt.event.MouseListener
-
mouseDragged
public void mouseDragged(java.awt.event.MouseEvent e)
Invoked when a mouse button is pressed on a component and then dragged. Mouse drag events will continue to be delivered to the component where the first originated until the mouse button is released (regardless of whether the mouse position is within the bounds of the component).- Specified by:
mouseDraggedin interfacejava.awt.event.MouseMotionListener
-
mouseMoved
public void mouseMoved(java.awt.event.MouseEvent e)
Invoked when the mouse button has been moved on a component (with no buttons no down).- Specified by:
mouseMovedin interfacejava.awt.event.MouseMotionListener
-
resetTransform
protected void resetTransform(java.awt.event.InputEvent e)
Resets the associated component's transform.
-
-