Trait

de.sciss.mellite.gui.impl.tracktool

RegionImpl

Related Doc: package tracktool

Permalink

trait RegionImpl[S <: Sys[S], A] extends RegionLike[S, A]

A more complete implementation for track tools that process selected regions. It implements handlePress to update the region selection and then for the currently hit region invoke the handleSelect method. It also implements commit by aggregating individual region based commits performed in the abstract method commitObj.

Self Type
RegionImpl[S, A]
Linear Supertypes
RegionLike[S, A], ModelImpl[Update[A]], TrackTool[S, A], Model[Update[A]], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RegionImpl
  2. RegionLike
  3. ModelImpl
  4. TrackTool
  5. Model
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def canvas: TimelineProcCanvas[S]

    Permalink
    Attributes
    protected
    Definition Classes
    RegionLike
  2. abstract def commitObj(drag: A)(span: SpanLikeObj[S], proc: Obj[S])(implicit tx: S.Tx, cursor: Cursor[S]): Option[UndoableEdit]

    Permalink
    Attributes
    protected
  3. abstract def defaultCursor: Cursor

    Permalink

    The mouse cursor used when the tool is active.

    The mouse cursor used when the tool is active.

    Definition Classes
    TrackTool
  4. abstract def handleSelect(e: MouseEvent, hitTrack: Int, pos: Long, region: TimelineObjView[S]): Unit

    Permalink
    Attributes
    protected
  5. abstract def icon: Icon

    Permalink

    The icon to use in a tool bar.

    The icon to use in a tool bar.

    Definition Classes
    TrackTool
  6. abstract def name: String

    Permalink

    The human readable name of the tool.

    The human readable name of the tool.

    Definition Classes
    TrackTool

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. def addListener(pf: Listener[Update[A]]): pf.type

    Permalink
    Definition Classes
    ModelImpl → Model
  5. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def commit(drag: A)(implicit tx: S.Tx, cursor: Cursor[S]): Option[UndoableEdit]

    Permalink

    Called after the end of a mouse drag gesture.

    Called after the end of a mouse drag gesture. If this constitutes a valid edit, the method should return the resulting undoable edit.

    drag

    the last editing state

    cursor

    the cursor that might be needed to construct the undoable edit

    returns

    either Some edit or None if the action does not constitute an edit or the edit parameters are invalid.

    Definition Classes
    RegionImplTrackTool
  8. final def dispatch(update: Update[A]): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    ModelImpl
  9. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def handleMouseSelection(e: MouseEvent, regionOpt: Option[TimelineObjView[S]]): Unit

    Permalink

    Applies standard mouse selection techniques regarding regions.

    Applies standard mouse selection techniques regarding regions.

    - If no modifier is hold, clicking outside of a region deselects all currently selected regions. - Clicking on an already selected region has no effect. - Clicking on a unselected region, will clear the selection and only select the new region. - Holding shift while clicking will add or remove regions to the list of selected regions.

    Attributes
    protected
    Definition Classes
    RegionLike
  14. def handleOutside(e: MouseEvent, hitTrack: Int, pos: Long): Unit

    Permalink
    Attributes
    protected
  15. def handlePress(e: MouseEvent, hitTrack: Int, pos: Long, regionOpt: Option[TimelineObjView[S]]): Unit

    Permalink

    Abstract method to be implemented by sub-classes.

    Abstract method to be implemented by sub-classes. Called when the mouse is pressed

    e

    the event corresponding to the press

    hitTrack

    the track index corresponding to the vertical mouse coordinate.

    pos

    the frame position corresponding to the horizontal mouse coordinate

    regionOpt

    Some timeline object that is beneath the mouse position or None if the mouse is pressed over an empty part of the timeline.

    Attributes
    protected
    Definition Classes
    RegionImplRegionLike
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def install(component: Component): Unit

    Permalink

    Implemented by adding mouse (motion) listeners to the component.

    Implemented by adding mouse (motion) listeners to the component.

    Definition Classes
    RegionLikeTrackTool
  18. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  22. def releaseListeners(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    ModelImpl
  23. def removeListener(pf: Listener[Update[A]]): Unit

    Permalink
    Definition Classes
    ModelImpl → Model
  24. def startListening(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    ModelImpl
  25. def stopListening(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    ModelImpl
  26. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  28. final def uninstall(component: Component): Unit

    Permalink

    Implemented by removing listeners from component.

    Implemented by removing listeners from component.

    Definition Classes
    RegionLikeTrackTool
  29. final def wait(): Unit

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

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

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

Inherited from RegionLike[S, A]

Inherited from ModelImpl[Update[A]]

Inherited from TrackTool[S, A]

Inherited from Model[Update[A]]

Inherited from AnyRef

Inherited from Any

Ungrouped