Trait

de.sciss.mellite.gui.impl.tracktool

Dragging

Related Doc: package tracktool

Permalink

trait Dragging[S <: Sys[S], A] extends AnyRef

A mixin trait for region-like track tools that enables updates during mouse dragging. It adds an internal class Drag that embodies that dragging state (initial and current positions). Dragging is useful for all parameters that can be continuously changed such as region position but also region gain. It does not necessarily mean that regions are moved. In other words, whenever the mouseDragged event causes a meaningful change in the editing state.

Custom data can be added by the sub-class by specifying the type member Initial.

All the sub-class must do is call new Drag and provide the body of method dragToParam.

Self Type
Dragging[S, A] with RegionLike[S, A]
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Dragging
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class Drag extends MouseInputAdapter with KeyListener

    Permalink

    Objects that represents a (potential) drag.

    Objects that represents a (potential) drag. When instantiated, it installs itself on the parent component of firstEvent and automatically removes itself when the mouse is released.

    A drag is only formally started once dragStarted returns true. It will then update the drag state by calling repeatedly into dragToParam and dispatching appropriate events.

    A drag can be aborted by pressing the Escape key.

    Attributes
    protected
  2. abstract type Initial

    Permalink
    Attributes
    protected

Abstract Value Members

  1. abstract def dragToParam(d: (Dragging.this)#Drag): A

    Permalink
    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final var currentParam: Option[A]

    Permalink
    Attributes
    protected
  7. final def dragAdjust(d: (Dragging.this)#Drag): Unit

    Permalink
    Attributes
    protected
  8. final def dragBegin(d: (Dragging.this)#Drag): Unit

    Permalink
    Attributes
    protected
  9. final def dragCancel(d: (Dragging.this)#Drag): Unit

    Permalink
    Attributes
    protected
  10. final def dragEnd(): Unit

    Permalink
    Attributes
    protected
  11. def dragStarted(d: (Dragging.this)#Drag): Boolean

    Permalink

    Determines if the drag operations should be started or not.

    Determines if the drag operations should be started or not. The default behavior is to wait until the mouse is dragged by around four pixels. Sub-classes may override this, for example to have the drag start immediately without threshold.

    returns

    true if the parameter data signalize that a drag has started, false if it is not (yet) sufficient.

    Attributes
    protected
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped