public class AbstractRotateInteractor extends InteractorAdapter
InteractorAdapter.startInteraction(java.awt.event.InputEvent)
method.Modifier and Type | Field and Description |
---|---|
protected boolean |
finished
Whether the interactor has finished.
|
protected double |
initialRotation
The initial rotation angle.
|
Constructor and Description |
---|
AbstractRotateInteractor() |
Modifier and Type | Method and Description |
---|---|
boolean |
endInteraction()
Tells whether the interactor has finished.
|
void |
mouseDragged(java.awt.event.MouseEvent e)
Invoked when a mouse button is pressed on a component and then
dragged.
|
void |
mouseExited(java.awt.event.MouseEvent e)
Invoked when the mouse exits a component.
|
void |
mousePressed(java.awt.event.MouseEvent e)
Invoked when a mouse button has been pressed on a component.
|
void |
mouseReleased(java.awt.event.MouseEvent e)
Invoked when a mouse button has been released on a component.
|
protected java.awt.geom.AffineTransform |
rotateTransform(java.awt.Dimension d,
int x,
int y)
Returns the rotate transform.
|
keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseMoved, startInteraction
protected boolean finished
protected double initialRotation
public boolean endInteraction()
endInteraction
in interface Interactor
endInteraction
in class InteractorAdapter
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
mousePressed
in class InteractorAdapter
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
mouseReleased
in class InteractorAdapter
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
mouseExited
in class InteractorAdapter
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
mouseDragged
in class InteractorAdapter
protected java.awt.geom.AffineTransform rotateTransform(java.awt.Dimension d, int x, int y)
Copyright © 2022 Apache Software Foundation. All Rights Reserved.