|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.event.KeyAdapter
jpicedt.graphic.toolkit.MouseTool
jpicedt.graphic.toolkit.RotateTool
public class RotateTool
A MouseTool used to rotate a target Element using a origin point and a mobile
point used to compute the rotation angle.
Sequence of mouse operations:
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class jpicedt.graphic.toolkit.MouseTool |
|---|
MouseTool.MouseToolType |
| Field Summary |
|---|
| Fields inherited from class jpicedt.graphic.toolkit.MouseTool |
|---|
lastMouseEvent, mouseOutside |
| Constructor Summary | |
|---|---|
RotateTool(EditorKit kit,
Element target)
|
|
| Method Summary | |
|---|---|
void |
flush()
Called when this tool is being replaced by another tool in the hosting kit |
void |
init()
initialisation process |
void |
mouseDragged(PEMouseEvent e)
this default implementation simply stores the given mouse-event in lastMouseEvent field |
void |
mouseMoved(PEMouseEvent e)
this default implementation simply stores the given mouse-event in lastMouseEvent field |
void |
mousePressed(PEMouseEvent e)
set the source rect, then the destination rect |
void |
mouseReleased(PEMouseEvent e)
this default implementation simply stores the given mouse-event in lastMouseEvent field |
void |
paint(Graphics2D g,
Rectangle2D allocation,
double scale)
Allow the tool to paint shapes that are specific to this tool. |
void |
rotateTarget(double angle,
PECanvas canvas)
Rotation à partir du GridZoomToolBar. |
void |
setRotationCenter(PicPoint pt)
Définit le centre de rotation. |
| Methods inherited from class jpicedt.graphic.toolkit.MouseTool |
|---|
getLastMouseEvent, keyPressed, keyReleased, mouseClicked, mouseEntered, mouseExited, processKeyEvent |
| Methods inherited from class java.awt.event.KeyAdapter |
|---|
keyTyped |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RotateTool(EditorKit kit,
Element target)
kit - the EditorKit this mouse-tool is to registered with.| Method Detail |
|---|
public void setRotationCenter(PicPoint pt)
pt - le PicPoint centre de rotation.public void mousePressed(PEMouseEvent e)
mousePressed in interface PEMouseInputListenermousePressed in class MouseToolpublic void mouseDragged(PEMouseEvent e)
MouseToollastMouseEvent field
mouseDragged in interface PEMouseInputListenermouseDragged in class MouseToolpublic void mouseReleased(PEMouseEvent e)
MouseToollastMouseEvent field
mouseReleased in interface PEMouseInputListenermouseReleased in class MouseToolpublic void mouseMoved(PEMouseEvent e)
MouseToollastMouseEvent field
mouseMoved in interface PEMouseInputListenermouseMoved in class MouseToolpublic void flush()
flush in class MouseTool
public void paint(Graphics2D g,
Rectangle2D allocation,
double scale)
paint in class MouseToolpublic void init()
init in class MouseTool
public void rotateTarget(double angle,
PECanvas canvas)
GridZoomToolBar.
angle - Angle de rotation à partir de la position initialePEDrawingBoard.GridZoomToolBar
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||