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 Point |
first |
protected mxGraphComponent |
graphComponent
Reference to the enclosing graph component.
|
protected JComponent |
handle |
protected double |
initialAngle |
static ImageIcon |
ROTATE_ICON |
| Constructor and Description |
|---|
mxRotationHandler(mxGraphComponent graphComponent)
Constructs a new rotation handler.
|
| Modifier and Type | Method and Description |
|---|---|
protected JComponent |
createHandle() |
mxGraphComponent |
getGraphComponent() |
boolean |
isEnabled() |
boolean |
isStateHandled(mxCellState state) |
void |
mouseDragged(MouseEvent e) |
void |
mouseMoved(MouseEvent e) |
void |
mousePressed(MouseEvent e) |
void |
mouseReleased(MouseEvent e) |
void |
paint(Graphics g) |
void |
reset() |
void |
setEnabled(boolean value) |
void |
start(MouseEvent e) |
mouseClicked, mouseEntered, mouseExitedpublic static ImageIcon ROTATE_ICON
protected mxGraphComponent graphComponent
protected boolean enabled
protected JComponent handle
protected mxCellState currentState
protected double initialAngle
protected double currentAngle
protected Point first
public mxRotationHandler(mxGraphComponent graphComponent)
public mxGraphComponent getGraphComponent()
public boolean isEnabled()
public void setEnabled(boolean value)
protected JComponent createHandle()
public boolean isStateHandled(mxCellState state)
public void mousePressed(MouseEvent e)
mousePressed in interface MouseListenermousePressed in class mxMouseAdapterpublic void start(MouseEvent e)
public void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListenermouseMoved in class mxMouseAdapterpublic void mouseDragged(MouseEvent e)
mouseDragged in interface MouseMotionListenermouseDragged in class mxMouseAdapterpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenermouseReleased in class mxMouseAdapterpublic void reset()
public void paint(Graphics g)
Copyright (c) 2010 Gaudenz Alder. All rights reserved.