Interface ObservableFaceArray
- All Superinterfaces:
Observable, ObservableArray<ObservableIntegerArray>, ObservableIntegerArray
ObservableFaceArray is an int[] array that allows listeners
to track changes when they occur. In order to track changes, the internal
array is encapsulated and there is no direct access available from the outside.
Bulk operations are supported but they always do a copy of the data range.
This class is used when defining the faces of a TriangleMesh.- Since:
- JavaFX 8.0
- See Also:
-
Method Summary
Methods declared in interface Observable
addListener, removeListener, subscribeModifier and TypeMethodDescriptionvoidaddListener(InvalidationListener listener) Adds anInvalidationListenerwhich will be notified whenever theObservablebecomes invalid.voidremoveListener(InvalidationListener listener) Removes the given listener from the list of listeners, that are notified whenever the value of theObservablebecomes invalid.default SubscriptionCreates aSubscriptionon thisObservablewhich callsinvalidationSubscriberwhenever it becomes invalid.Methods declared in interface ObservableArray
addListener, clear, ensureCapacity, removeListener, resize, size, trimToSizeModifier and TypeMethodDescriptionvoidaddListener(ArrayChangeListener<ObservableIntegerArray> listener) Add a listener to this observable array.voidclear()Empties the array by resizing it to 0.voidensureCapacity(int capacity) Grows the capacity of this array if the current capacity is less than givencapacity, does nothing if it already exceeds thecapacity.voidTries to remove a listener from this observable array.voidresize(int size) Sets new length of data in this array.intsize()Retrieves length of data in this array.voidShrinks the capacity to the current size of data in the array.Methods declared in interface ObservableIntegerArray
addAll, addAll, addAll, addAll, copyTo, copyTo, get, set, set, set, setAll, setAll, setAll, setAll, toArray, toArrayModifier and TypeMethodDescriptionvoidaddAll(int... elements) Appends givenelementsto the end of this array.voidaddAll(int[] src, int srcIndex, int length) Appends a portion of given array to the end of this array.voidAppends content of a given observable array to the end of this array.voidaddAll(ObservableIntegerArray src, int srcIndex, int length) Appends a portion of given observable array to the end of this array.voidcopyTo(int srcIndex, int[] dest, int destIndex, int length) Copies specified portion of array intodestarray.voidcopyTo(int srcIndex, ObservableIntegerArray dest, int destIndex, int length) Copies specified portion of array intodestobservable array.intget(int index) Gets a single value of array.voidset(int index, int value) Sets a single value in the array.voidset(int destIndex, int[] src, int srcIndex, int length) Copies a portion of specified array into this observable array.voidset(int destIndex, ObservableIntegerArray src, int srcIndex, int length) Copies a portion of specified observable array into this observable array.voidsetAll(int... elements) Replaces this observable array content with given elements.voidsetAll(int[] src, int srcIndex, int length) Replaces this observable array content with a copy of portion of a given array.voidReplaces this observable array content with a copy of given observable array.voidsetAll(ObservableIntegerArray src, int srcIndex, int length) Replaces this observable array content with a portion of a given observable array.int[]toArray(int[] dest) Returns an array containing copy of the observable array.int[]toArray(int srcIndex, int[] dest, int length) Returns an array containing copy of specified portion of the observable array.