public class mxRotationHandler extends mxMouseAdapter
Modifier and Type | Field and Description |
---|---|
protected double |
currentAngle |
protected mxCellState |
currentState |
protected boolean |
enabled
Specifies if this handler is enabled.
|
protected java.awt.Point |
first |
protected mxGraphComponent |
graphComponent
Reference to the enclosing graph component.
|
protected javax.swing.JComponent |
handle |
protected double |
initialAngle |
static javax.swing.ImageIcon |
ROTATE_ICON |
Constructor and Description |
---|
mxRotationHandler(mxGraphComponent graphComponent)
Constructs a new rotation handler.
|
Modifier and Type | Method and Description |
---|---|
protected javax.swing.JComponent |
createHandle() |
mxGraphComponent |
getGraphComponent() |
boolean |
isEnabled() |
boolean |
isStateHandled(mxCellState state) |
void |
mouseDragged(java.awt.event.MouseEvent e) |
void |
mouseMoved(java.awt.event.MouseEvent e) |
void |
mousePressed(java.awt.event.MouseEvent e) |
void |
mouseReleased(java.awt.event.MouseEvent e) |
void |
paint(java.awt.Graphics g) |
void |
reset() |
void |
setEnabled(boolean value) |
void |
start(java.awt.event.MouseEvent e) |
mouseClicked, mouseEntered, mouseExited
public static javax.swing.ImageIcon ROTATE_ICON
protected mxGraphComponent graphComponent
protected boolean enabled
protected javax.swing.JComponent handle
protected mxCellState currentState
protected double initialAngle
protected double currentAngle
protected java.awt.Point first
public mxRotationHandler(mxGraphComponent graphComponent)
public mxGraphComponent getGraphComponent()
public boolean isEnabled()
public void setEnabled(boolean value)
protected javax.swing.JComponent createHandle()
public boolean isStateHandled(mxCellState state)
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
mousePressed
in class mxMouseAdapter
public void start(java.awt.event.MouseEvent e)
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
mouseMoved
in class mxMouseAdapter
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
mouseDragged
in class mxMouseAdapter
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
mouseReleased
in class mxMouseAdapter
public void reset()
public void paint(java.awt.Graphics g)
Copyright (c) 2010 Gaudenz Alder, David Benson. All rights reserved.