Package jpicedt.graphic.toolkit
Class EditElementMouseTransformFactory
- java.lang.Object
-
- jpicedt.graphic.toolkit.AbstractMouseTransformFactory
-
- jpicedt.graphic.toolkit.EditElementMouseTransformFactory
-
- All Implemented Interfaces:
MouseTransformFactory
public class EditElementMouseTransformFactory extends AbstractMouseTransformFactory
A factory that produces MouseTransform's that may be plugged into the SelectionTool mouse tool.- Since:
- jPicEdt 1.3.2
- Version:
- $Id: EditElementMouseTransformFactory.java,v 1.20.2.1 2007/09/02 11:56:28 reynal Exp $
- Author:
- Sylvain Reynal
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classEditElementMouseTransformFactory._MoveControlPointTransforma mouse-transform that moves element's end-points, ie aka scales elementsprotected classEditElementMouseTransformFactory._MoveElementTransformA mouse-transform that can translate an element, or a group of element.protected classEditElementMouseTransformFactory.MoveControlPointTransforma mouse-transform that moves element's end-points, ie aka scales elements.protected classEditElementMouseTransformFactory.MoveElementTransformA mouse-transform that can translate an element, or a group of element.protected classEditElementMouseTransformFactory.SelectElementsInAreaTransforma mouse-transform that selects all elements inside a rectangle dragged by the userprotected classEditElementMouseTransformFactory.UnselectTransform-
Nested classes/interfaces inherited from class jpicedt.graphic.toolkit.AbstractMouseTransformFactory
AbstractMouseTransformFactory.HelpMessageMouseTransform, AbstractMouseTransformFactory.InvalidMouseTransform, AbstractMouseTransformFactory.SelectAreaTransform
-
-
Constructor Summary
Constructors Constructor Description EditElementMouseTransformFactory(EditorKit kit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MouseTransformcreateMouseTransform(PEMouseEvent e)Return a MouseTransform whose type is adequate with the given mouse-event.-
Methods inherited from class jpicedt.graphic.toolkit.AbstractMouseTransformFactory
flush, getEditorKit, init, paint
-
-
-
-
Constructor Detail
-
EditElementMouseTransformFactory
public EditElementMouseTransformFactory(EditorKit kit)
- Parameters:
kit- the hosting editor-kit
-
-
Method Detail
-
createMouseTransform
public MouseTransform createMouseTransform(PEMouseEvent e)
Return a MouseTransform whose type is adequate with the given mouse-event. This can be null if no MouseTransform matches the given event.Basically, we work with the following modifiers : Shift, Control, Alt. Other modifiers must be excluded, given their poor support on MacOS platforms, and their odd behaviours on some Unices. Similarly, double-click events should be avoided since these are rather hard to deal with seeing that a single-click event is ALWAYS posted beforehands.
-
-