org.apache.batik.swing.gvt

Class AbstractRotateInteractor

public class AbstractRotateInteractor extends InteractorAdapter

This class represents a rotate interactor. To use it, just redefine the {@link InteractorAdapter#startInteraction(InputEvent)} method.
Field Summary
protected booleanfinished
Whether the interactor has finished.
protected doubleinitialRotation
The initial rotation angle.
Method Summary
booleanendInteraction()
Tells whether the interactor has finished.
voidmouseDragged(MouseEvent e)
Invoked when a mouse button is pressed on a component and then dragged.
voidmouseExited(MouseEvent e)
Invoked when the mouse exits a component.
voidmousePressed(MouseEvent e)
Invoked when a mouse button has been pressed on a component.
voidmouseReleased(MouseEvent e)
Invoked when a mouse button has been released on a component.
protected AffineTransformrotateTransform(Dimension d, int x, int y)
Returns the rotate transform.

Field Detail

finished

protected boolean finished
Whether the interactor has finished.

initialRotation

protected double initialRotation
The initial rotation angle.

Method Detail

endInteraction

public boolean endInteraction()
Tells whether the interactor has finished.

mouseDragged

public void mouseDragged(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).

mouseExited

public void mouseExited(MouseEvent e)
Invoked when the mouse exits a component.

mousePressed

public void mousePressed(MouseEvent e)
Invoked when a mouse button has been pressed on a component.

mouseReleased

public void mouseReleased(MouseEvent e)
Invoked when a mouse button has been released on a component.

rotateTransform

protected AffineTransform rotateTransform(Dimension d, int x, int y)
Returns the rotate transform.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.