Class DragDetectTool
- java.lang.Object
-
- com._1c.g5.v8.dt.moxel.ui.editor.tools.Tool
-
- com._1c.g5.v8.dt.moxel.ui.editor.tools.AbstractTool
-
- com._1c.g5.v8.dt.moxel.ui.editor.tools.DragDetectTool
-
public class DragDetectTool extends AbstractTool
Tool for detecting cells drag actions.
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.moxel.ui.editor.tools.AbstractTool
control
-
Fields inherited from class com._1c.g5.v8.dt.moxel.ui.editor.tools.Tool
MIN_DRAG_SHIFT
-
-
Constructor Summary
Constructors Constructor Description DragDetectTool(MoxelControl control)
Creates new instance ofDragDetectTool
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finish()
Закончить работу с инструментом.MoxelCursorType
getCursor()
Получить тип курсора.org.eclipse.swt.graphics.Point
getDownPoint()
Get mouse down point.void
onMouseDoubleClick(org.eclipse.swt.events.MouseEvent e)
При двойном клике.void
onMouseDown(org.eclipse.swt.events.MouseEvent e)
При нажатии на кнопку.void
onMouseMove(org.eclipse.swt.events.MouseEvent e)
При перемещении мыши.void
onMouseUp(org.eclipse.swt.events.MouseEvent e)
При отпускании кнопки мыши.-
Methods inherited from class com._1c.g5.v8.dt.moxel.ui.editor.tools.AbstractTool
paint
-
Methods inherited from class com._1c.g5.v8.dt.moxel.ui.editor.tools.Tool
isTurnableTool, needTurnOffOnMouseUp
-
-
-
-
Constructor Detail
-
DragDetectTool
public DragDetectTool(MoxelControl control)
Creates new instance ofDragDetectTool
- Parameters:
control
-MoxelControl
-
-
Method Detail
-
onMouseDown
public void onMouseDown(org.eclipse.swt.events.MouseEvent e)
Description copied from class:Tool
При нажатии на кнопку.- Specified by:
onMouseDown
in classTool
-
onMouseUp
public void onMouseUp(org.eclipse.swt.events.MouseEvent e)
Description copied from class:Tool
При отпускании кнопки мыши.
-
onMouseMove
public void onMouseMove(org.eclipse.swt.events.MouseEvent e)
Description copied from class:Tool
При перемещении мыши.- Specified by:
onMouseMove
in classTool
-
onMouseDoubleClick
public void onMouseDoubleClick(org.eclipse.swt.events.MouseEvent e)
Description copied from class:Tool
При двойном клике.- Specified by:
onMouseDoubleClick
in classTool
-
finish
public void finish()
Description copied from class:Tool
Закончить работу с инструментом.
-
getCursor
public MoxelCursorType getCursor()
Description copied from class:Tool
Получить тип курсора.- Overrides:
getCursor
in classAbstractTool
-
getDownPoint
public org.eclipse.swt.graphics.Point getDownPoint()
Get mouse down point.- Returns:
Point
-
-