de.sciss.mellite.gui.impl.tracktool

Dragging

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
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. class Drag extends MouseInputAdapter with KeyListener

    Objects that represents a (potential) drag.

  2. abstract type Initial

    Attributes
    protected

Abstract Value Members

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

    Attributes
    protected

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

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

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

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

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

    Attributes
    protected
  12. final def dragEnd(): Unit

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

    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
  14. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

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

    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

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

    Definition Classes
    AnyRef
  24. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped