|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.batik.swing.gvt.InteractorAdapter
org.apache.batik.swing.gvt.AbstractRotateInteractor
public class AbstractRotateInteractor
This class represents a rotate interactor.
To use it, just redefine the InteractorAdapter.startInteraction(InputEvent) method.
| Field Summary | |
|---|---|
protected boolean |
finished
Whether the interactor has finished. |
protected double |
initialRotation
The initial rotation angle. |
| Constructor Summary | |
|---|---|
AbstractRotateInteractor()
|
|
| Method Summary | |
|---|---|
boolean |
endInteraction()
Tells whether the interactor has finished. |
void |
mouseDragged(MouseEvent e)
Invoked when a mouse button is pressed on a component and then dragged. |
void |
mouseExited(MouseEvent e)
Invoked when the mouse exits a component. |
void |
mousePressed(MouseEvent e)
Invoked when a mouse button has been pressed on a component. |
void |
mouseReleased(MouseEvent e)
Invoked when a mouse button has been released on a component. |
protected AffineTransform |
rotateTransform(Dimension d,
int x,
int y)
Returns the rotate transform. |
| Methods inherited from class org.apache.batik.swing.gvt.InteractorAdapter |
|---|
keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseMoved, startInteraction |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean finished
protected double initialRotation
| Constructor Detail |
|---|
public AbstractRotateInteractor()
| Method Detail |
|---|
public boolean endInteraction()
endInteraction in interface InteractorendInteraction in class InteractorAdapterpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenermousePressed in class InteractorAdapterpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenermouseReleased in class InteractorAdapterpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenermouseExited in class InteractorAdapterpublic void mouseDragged(MouseEvent e)
mouseDragged in interface MouseMotionListenermouseDragged in class InteractorAdapter
protected AffineTransform rotateTransform(Dimension d,
int x,
int y)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||