trait NuagesAttribute[T <: Txn[T]] extends Input[T] with Parent[T] with NuagesParam[T]
- Alphabetic
- By Inheritance
- NuagesAttribute
- NuagesParam
- NuagesData
- Parent
- Input
- Disposable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def addChild(child: Obj[T])(implicit tx: T): Unit
Adds a child, possibly moving it into a timeline if the underlying nuages surface is a timeline.
Adds a child, possibly moving it into a timeline if the underlying nuages surface is a timeline.
- Definition Classes
- Parent
- abstract def addPNode(n: Node, isFree: Boolean): Unit
Connects a node with the attribute view.
Connects a node with the attribute view.
- n
the node; the view will add an edge from this node to itself (either its center, or if there is a 'summary' node, to that node)
- isFree
if
true
, the node has "free movement", i.e. should be integrated in the overall aggregate view of this attribute; iffalse
, the node is part of another structure, e.g. corresponds with the output of another proc, and thus should not be added to the attribute's aggregate.
- abstract def attribute: NuagesAttribute[T]
The attribute's view.
The attribute's view.
- Definition Classes
- Input
- abstract def auralObjAdded(aural: Proc[T])(implicit tx: T): Unit
- Definition Classes
- NuagesParam
- abstract def auralObjRemoved(aural: Proc[T])(implicit tx: T): Unit
- Definition Classes
- NuagesParam
- abstract def collect[A](pf: PartialFunction[Input[T], A])(implicit tx: T): Iterator[A]
Runs a deep collection for particular input.
Runs a deep collection for particular input. This will perform a nested search for collection views such as grapheme or timeline.
- pf
the matcher function to apply to the leaves of the traversal
- returns
an iterator over all elements that were successfully matched
- Definition Classes
- Input
- abstract def dispose()(implicit tx: T): Unit
- Definition Classes
- Disposable
- abstract val fixed: Boolean
GUI property: whether the node is allowed to move around as part of the dynamic layout (
false
) or not (true
).GUI property: whether the node is allowed to move around as part of the dynamic layout (
false
) or not (true
).- Definition Classes
- NuagesData
- abstract def input(implicit tx: T): Obj[T]
The model object of this view.
The model object of this view.
- Definition Classes
- Input
- abstract def inputParent(implicit tx: T): Parent[T]
- Definition Classes
- Input
- abstract def inputParent_=(p: Parent[T])(implicit tx: T): Unit
- Definition Classes
- Input
- abstract def inputView: Input[T]
- abstract def isControl: Boolean
- abstract def itemDragged(vi: VisualItem, e: MouseEvent, pt: Point2D): Unit
Called when the pointer device has dragged the item.
Called when the pointer device has dragged the item.
- Definition Classes
- NuagesData
- abstract def itemEntered(vi: VisualItem, e: MouseEvent, pt: Point2D): Unit
Called when the pointer device has entered the item.
Called when the pointer device has entered the item.
- Definition Classes
- NuagesData
- abstract def itemExited(vi: VisualItem, e: MouseEvent, pt: Point2D): Unit
Called when the pointer device has exited the item.
Called when the pointer device has exited the item.
- Definition Classes
- NuagesData
- abstract def itemKeyPressed(vi: VisualItem, e: Pressed): Boolean
Called when a key is pressed over the item.
Called when a key is pressed over the item.
- returns
true
if the event was handled,false
if it was ignored and should bubble up to the parent container
- Definition Classes
- NuagesData
- abstract def itemKeyReleased(vi: VisualItem, e: Pressed): Unit
Called when a key is released over the item.
Called when a key is released over the item.
- Definition Classes
- NuagesData
- abstract def itemKeyTyped(vi: VisualItem, e: Typed): Unit
Called when a key has been typed over the item.
Called when a key has been typed over the item.
- Definition Classes
- NuagesData
- abstract def itemPressed(vi: VisualItem, e: MouseEvent, pt: Point2D): Boolean
Called when the pointer device has pressed the item.
Called when the pointer device has pressed the item.
- returns
true
if the event was handled,false
if it was ignored and should bubble up to the parent container
- Definition Classes
- NuagesData
- abstract def itemReleased(vi: VisualItem, e: MouseEvent, pt: Point2D): Unit
Called when the pointer device has released the item.
Called when the pointer device has released the item.
- Definition Classes
- NuagesData
- abstract def key: String
The scan or attribute key in
parent
to point to this component.The scan or attribute key in
parent
to point to this component.- Definition Classes
- NuagesParam
- abstract def name: String
GUI property: name displayed.
GUI property: name displayed.
- Definition Classes
- NuagesData
- abstract def numChildren(implicit tx: T): Int
- Definition Classes
- Parent
- abstract def numericValue: IndexedSeq[Double]
The current shown value on the UI, when patched to an input, or
null
if unknown.The current shown value on the UI, when patched to an input, or
null
if unknown. In order to obtain the numeric value in all cases, useinputView
and see if it isNuagesAttribute.Numeric
. - abstract def outline: Shape
- Definition Classes
- NuagesData
- abstract def parent: NuagesObj[T]
- Definition Classes
- NuagesParam
- abstract def removeChild(child: Obj[T])(implicit tx: T): Unit
Removes a child, possibly moving it into a timeline if the underlying nuages surface is a timeline.
Removes a child, possibly moving it into a timeline if the underlying nuages surface is a timeline.
- Definition Classes
- Parent
- abstract def removePNode(n: Node): Unit
- abstract def render(g: Graphics2D, vi: VisualItem): Unit
Asks the receiver to paint its GUI representation.
Asks the receiver to paint its GUI representation.
- Definition Classes
- NuagesData
- abstract def spec: ParamSpec
- abstract def tryConsume(newOffset: Long, newValue: Obj[T])(implicit tx: T): Boolean
Tries to migrate the passed object to this input view.
Tries to migrate the passed object to this input view. That is, if the view can exchange its model for this new object, it should do so and return
true
. Returningfalse
means the object cannot be consumed, for example because it is of a different type.- Definition Classes
- Input
- abstract def tryReplace(newValue: Obj[T])(implicit tx: T, context: NuagesContext[T]): Option[NuagesAttribute[T]]
Attempts to replace the contents of the view.
Attempts to replace the contents of the view.
- newValue
the new value to attempt to associate with the view
- returns
Some
if either the old view accepted the new value or if a new view was created that could "consume" the old view. This may happen for example if the new value is a container with a single element and the old view can replace its own single element.None
if this was not possible and the caller should act accordingly (dispose the old view, create a fresh new view).
- abstract def update(shp: Shape): Unit
Called from drag-control: updates the current geometric shape of the corresponding visual item.
Called from drag-control: updates the current geometric shape of the corresponding visual item.
- Definition Classes
- NuagesData
- abstract def updateChild(before: Obj[T], now: Obj[T], dt: Long, clearRight: Boolean)(implicit tx: T): Unit
Updates a child, possibly moving it into a grapheme if the underlying nuages surface is a timeline.
Updates a child, possibly moving it into a grapheme if the underlying nuages surface is a timeline. If there are future events, they should be removed by this action.
- before
reference to the currently active value
- now
new value to insert or replace
- dt
delay with respect to current position (zero for no delay)
- Definition Classes
- Parent
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated