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, mouseExited
public 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 MouseListener
mousePressed
in class mxMouseAdapter
public void start(MouseEvent e)
public void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
mouseMoved
in class mxMouseAdapter
public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
mouseDragged
in class mxMouseAdapter
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
mouseReleased
in class mxMouseAdapter
public void reset()
public void paint(Graphics g)
Copyright (c) 2010 Gaudenz Alder, David Benson. All rights reserved.