http://www.jpicedt.org

jpicedt.graphic.toolkit
Class EditElementMouseTransformFactory

java.lang.Object
  extended by jpicedt.graphic.toolkit.AbstractMouseTransformFactory
      extended by 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.35 2013/03/27 06:58:01 vincentb1 Exp $
Author:
Sylvain Reynal

Nested Class Summary
protected  class EditElementMouseTransformFactory._MoveControlPointTransform
          a mouse-transform that moves element's end-points, ie aka scales elements
protected  class EditElementMouseTransformFactory._MoveElementTransform
          A mouse-transform that can translate an element, or a group of element.
protected  class EditElementMouseTransformFactory.MoveControlPointTransform
          a mouse-transform that moves element's end-points, ie aka scales elements.
protected  class EditElementMouseTransformFactory.MoveElementTransform
          A mouse-transform that can translate an element, or a group of element.
protected  class EditElementMouseTransformFactory.SelectElementsDialogTransform
          a mouse-transform that opens up a Dialog to allow the user to selects elements by hand
protected  class EditElementMouseTransformFactory.SelectElementsInAreaTransform
          a mouse-transform that selects all elements inside a rectangle dragged by the user
protected  class EditElementMouseTransformFactory.UnselectTransform
           
 
Nested classes/interfaces inherited from class jpicedt.graphic.toolkit.AbstractMouseTransformFactory
AbstractMouseTransformFactory.HelpMessageMouseTransform, AbstractMouseTransformFactory.InvalidMouseTransform, AbstractMouseTransformFactory.SelectAreaTransform
 
Field Summary
 
Fields inherited from class jpicedt.graphic.toolkit.AbstractMouseTransformFactory
ucc
 
Constructor Summary
EditElementMouseTransformFactory(EditorKit kit)
           
 
Method Summary
 MouseTransform createMouseTransform(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.


http://www.jpicedt.org

Submit a bug : syd@jpicedt.org