com.mxgraph.swing.handler
Class mxRotationHandler
java.lang.Object
   com.mxgraph.swing.util.mxMouseAdapter
com.mxgraph.swing.util.mxMouseAdapter
       com.mxgraph.swing.handler.mxRotationHandler
com.mxgraph.swing.handler.mxRotationHandler
- All Implemented Interfaces: 
- MouseListener, MouseMotionListener, EventListener
- public class mxRotationHandler 
- extends mxMouseAdapter
Placeholder for rotation handler
 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
ROTATE_ICON
public static ImageIcon ROTATE_ICON
graphComponent
protected mxGraphComponent graphComponent
- Reference to the enclosing graph component.
 
 
enabled
protected boolean enabled
- Specifies if this handler is enabled. Default is true.
 
 
handle
protected JComponent handle
currentState
protected mxCellState currentState
currentAngle
protected double currentAngle
first
protected Point first
mxRotationHandler
public mxRotationHandler(mxGraphComponent graphComponent)
- Constructs a new rotation handler.
 
getGraphComponent
public mxGraphComponent getGraphComponent()
- 
 
isEnabled
public boolean isEnabled()
- 
 
setEnabled
public void setEnabled(boolean value)
- 
 
createHandle
protected JComponent createHandle()
- 
 
isStateHandled
public boolean isStateHandled(mxCellState state)
- 
 
mousePressed
public void mousePressed(MouseEvent e)
- 
- Specified by:
- mousePressedin interface- MouseListener
- Overrides:
- mousePressedin class- mxMouseAdapter
 
- 
 
start
public void start(MouseEvent e)
- 
 
mouseMoved
public void mouseMoved(MouseEvent e)
- 
- Specified by:
- mouseMovedin interface- MouseMotionListener
- Overrides:
- mouseMovedin class- mxMouseAdapter
 
- 
 
mouseDragged
public void mouseDragged(MouseEvent e)
- 
- Specified by:
- mouseDraggedin interface- MouseMotionListener
- Overrides:
- mouseDraggedin class- mxMouseAdapter
 
- 
 
mouseReleased
public void mouseReleased(MouseEvent e)
- 
- Specified by:
- mouseReleasedin interface- MouseListener
- Overrides:
- mouseReleasedin class- mxMouseAdapter
 
- 
 
reset
public void reset()
- 
 
paint
public void paint(Graphics g)
- 
 
Copyright (c) 2010 Gaudenz Alder. All rights reserved.