Top Fields Constructors Methods
com.sun.javafx.event

public final Class EventDispatchTreeImpl

extends Object
implements EventDispatchTree
Class Inheritance
All Implemented Interfaces
com.sun.javafx.event.EventDispatchTree, javafx.event.EventDispatchChain
Imports
javafx.event.Event, .EventDispatcher

Field Summary

Modifier and TypeField and Description
private static final int
CAPACITY_GROWTH_FACTOR

Must be a power of two.

private EventDispatcher[]
private boolean
private int[]
private int[]
private static final int
private int
private int
private int
private int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public EventDispatchTree
append(final EventDispatcher eventDispatcher)

Implements com.sun.javafx.event.EventDispatchTree.append.

Appends the specified EventDispatcher to this chain.

private void
appendSubtree(final StringBuilder sb, final int index)

private void
appendTreeLevel(final StringBuilder sb, final int levelIndex)

private int
copySubtree(final EventDispatchTreeImpl srcTree, final int srcIndex)

private int
copyTreeLevel(final EventDispatchTreeImpl srcTree, final int srcLevelIndex)

public EventDispatchTree
public Event
dispatchEvent(final Event event)

Implements javafx.event.EventDispatchChain.dispatchEvent.

Dispatches the specified event through this EventDispatchChain.

private void
ensureCapacity(final int size)

private void
expandTail(final int levelIndex)

private static int
getChildIndex(final EventDispatchTreeImpl tree, final int index)

public EventDispatchTree
private void
mergeTreeLevel(final EventDispatchTreeImpl srcTree, final int dstLevelIndex, final int srcLevelIndex)

public EventDispatchTree
prepend(final EventDispatcher eventDispatcher)

Implements com.sun.javafx.event.EventDispatchTree.prepend.

Prepends the specified EventDispatcher to this chain.

public void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

CAPACITY_GROWTH_FACTORback to summary
private static final int CAPACITY_GROWTH_FACTOR

Must be a power of two.

dispatchersback to summary
private EventDispatcher[] dispatchers
expandTailFirstPathback to summary
private boolean expandTailFirstPath
nextChildrenback to summary
private int[] nextChildren
nextSiblingsback to summary
private int[] nextSiblings
NULL_INDEXback to summary
private static final int NULL_INDEX
reservedCountback to summary
private int reservedCount
rootIndexback to summary
private int rootIndex
tailFirstIndexback to summary
private int tailFirstIndex
tailLastIndexback to summary
private int tailLastIndex

Constructor Detail

EventDispatchTreeImplback to summary
public EventDispatchTreeImpl()

Method Detail

appendback to summary
public EventDispatchTree append(final EventDispatcher eventDispatcher)

Implements com.sun.javafx.event.EventDispatchTree.append.

Doc from javafx.event.EventDispatchChain.append.

Appends the specified EventDispatcher to this chain. Returns a reference to the chain with the appended element.

The caller shouldn't assume that this EventDispatchChain remains unchanged nor that the returned value will reference a different chain after the call. All this depends on the EventDispatchChain implementation.

So the call should be always done in the following form: chain = chain.append(eventDispatcher);

Annotations
@Override
appendSubtreeback to summary
private void appendSubtree(final StringBuilder sb, final int index)
appendTreeLevelback to summary
private void appendTreeLevel(final StringBuilder sb, final int levelIndex)
copySubtreeback to summary
private int copySubtree(final EventDispatchTreeImpl srcTree, final int srcIndex)
copyTreeLevelback to summary
private int copyTreeLevel(final EventDispatchTreeImpl srcTree, final int srcLevelIndex)
createTreeback to summary
public EventDispatchTree createTree()

Implements com.sun.javafx.event.EventDispatchTree.createTree.

Annotations
@Override
dispatchEventback to summary
public Event dispatchEvent(final Event event)

Implements javafx.event.EventDispatchChain.dispatchEvent.

Doc from javafx.event.EventDispatchChain.dispatchEvent.

Dispatches the specified event through this EventDispatchChain. The return value represents the event after processing done by the chain. If further processing is to be done after the call the event referenced by the return value should be used instead of the original event. In the case the event is fully handled / consumed in the chain the returned value is null and no further processing should be done with that event.

Annotations
@Override
ensureCapacityback to summary
private void ensureCapacity(final int size)
expandTailback to summary
private void expandTail(final int levelIndex)
getChildIndexback to summary
private static int getChildIndex(final EventDispatchTreeImpl tree, final int index)
mergeTreeback to summary
public EventDispatchTree mergeTree(final EventDispatchTree tree)

Implements com.sun.javafx.event.EventDispatchTree.mergeTree.

Annotations
@Override
mergeTreeLevelback to summary
private void mergeTreeLevel(final EventDispatchTreeImpl srcTree, final int dstLevelIndex, final int srcLevelIndex)
prependback to summary
public EventDispatchTree prepend(final EventDispatcher eventDispatcher)

Implements com.sun.javafx.event.EventDispatchTree.prepend.

Doc from javafx.event.EventDispatchChain.prepend.

Prepends the specified EventDispatcher to this chain. Returns a reference to the chain with the prepended element.

The caller shouldn't assume that this EventDispatchChain remains unchanged nor that the returned value will reference a different chain after the call. All this depends on the EventDispatchChain implementation.

So the call should be always done in the following form: chain = chain.prepend(eventDispatcher);

Annotations
@Override
resetback to summary
public void reset()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override