Package | Description |
---|---|
com.sun.javafx.animation | |
com.sun.javafx.css.converters | |
com.sun.javafx.scene.control.skin | |
com.sun.scenario.animation | |
com.sun.scenario.animation.shared | |
javafx.animation |
Provides the set of classes for ease of use transition based animations.
|
javafx.concurrent |
Provides the set of classes for javafx.task.
|
javafx.css |
Provides API for making properties styleable via CSS and for supporting
pseudo-class state.
|
javafx.scene.media |
Provides the set of classes for integrating audio and video into Java FX
Applications.
|
javafx.util |
Contains various utilities and helper classes.
|
Modifier and Type | Method and Description |
---|---|
static Duration |
TickCalculation.toDuration(long ticks) |
Modifier and Type | Method and Description |
---|---|
static long |
TickCalculation.fromDuration(Duration duration) |
static long |
TickCalculation.fromDuration(Duration duration,
double rate) |
Modifier and Type | Method and Description |
---|---|
Duration |
DurationConverter.convert(ParsedValue<ParsedValue<?,Size>,Duration> value,
Font font) |
Modifier and Type | Method and Description |
---|---|
static StyleConverter<ParsedValue<?,Size>,Duration> |
DurationConverter.getInstance() |
Modifier and Type | Method and Description |
---|---|
Duration |
DurationConverter.convert(ParsedValue<ParsedValue<?,Size>,Duration> value,
Font font) |
Modifier and Type | Field and Description |
---|---|
protected Duration |
ProgressIndicatorSkin.CLIPPED_DELAY
*
IndeterminateSpinner *
*
|
static Duration |
TitledPaneSkin.TRANSITION_DURATION |
protected Duration |
ProgressIndicatorSkin.UNCLIPPED_DELAY |
Constructor and Description |
---|
NumberTangentInterpolator(Duration duration,
double value) |
NumberTangentInterpolator(Duration inDuration,
double inValue,
Duration outDuration,
double outValue) |
Modifier and Type | Method and Description |
---|---|
Duration |
TimelineClipCore.setKeyFrames(Collection<KeyFrame> keyFrames)
Changes the keyframes.
|
Modifier and Type | Method and Description |
---|---|
ClipEnvelope |
SingleLoopClipEnvelope.setCycleDuration(Duration cycleDuration) |
ClipEnvelope |
InfiniteClipEnvelope.setCycleDuration(Duration cycleDuration) |
ClipEnvelope |
FiniteClipEnvelope.setCycleDuration(Duration cycleDuration) |
abstract ClipEnvelope |
ClipEnvelope.setCycleDuration(Duration cycleDuration) |
protected void |
ClipEnvelope.updateCycleTicks(Duration cycleDuration) |
Modifier and Type | Method and Description |
---|---|
Duration |
Animation.getCurrentTime() |
Duration |
Animation.getCycleDuration() |
Duration |
Animation.getDelay() |
Duration |
TranslateTransition.getDuration() |
Duration |
StrokeTransition.getDuration() |
Duration |
ScaleTransition.getDuration() |
Duration |
RotateTransition.getDuration() |
Duration |
PauseTransition.getDuration() |
Duration |
PathTransition.getDuration() |
Duration |
FillTransition.getDuration() |
Duration |
FadeTransition.getDuration() |
Duration |
KeyFrame.getTime()
Returns the time offset of this
KeyFrame . |
Duration |
Animation.getTotalDuration() |
Modifier and Type | Method and Description |
---|---|
ReadOnlyObjectProperty<Duration> |
Animation.currentTimeProperty() |
ReadOnlyObjectProperty<Duration> |
Animation.cycleDurationProperty() |
ObjectProperty<Duration> |
Animation.delayProperty() |
ObjectProperty<Duration> |
TranslateTransition.durationProperty() |
ObjectProperty<Duration> |
StrokeTransition.durationProperty() |
ObjectProperty<Duration> |
ScaleTransition.durationProperty() |
ObjectProperty<Duration> |
RotateTransition.durationProperty() |
ObjectProperty<Duration> |
PauseTransition.durationProperty() |
ObjectProperty<Duration> |
PathTransition.durationProperty() |
ObjectProperty<Duration> |
FillTransition.durationProperty() |
ObjectProperty<Duration> |
FadeTransition.durationProperty() |
ObservableMap<String,Duration> |
Animation.getCuePoints()
The cue points can be
used to mark important positions of the
Animation . |
ReadOnlyObjectProperty<Duration> |
Animation.totalDurationProperty() |
Modifier and Type | Method and Description |
---|---|
B |
AnimationBuilder.delay(Duration x)
Deprecated.
Set the value of the
delay property for the instance constructed by this builder. |
TranslateTransitionBuilder |
TranslateTransitionBuilder.duration(Duration x)
Deprecated.
Set the value of the
duration property for the instance constructed by this builder. |
StrokeTransitionBuilder |
StrokeTransitionBuilder.duration(Duration x)
Deprecated.
Set the value of the
duration property for the instance constructed by this builder. |
ScaleTransitionBuilder |
ScaleTransitionBuilder.duration(Duration x)
Deprecated.
Set the value of the
duration property for the instance constructed by this builder. |
RotateTransitionBuilder |
RotateTransitionBuilder.duration(Duration x)
Deprecated.
Set the value of the
duration property for the instance constructed by this builder. |
PauseTransitionBuilder |
PauseTransitionBuilder.duration(Duration x)
Deprecated.
Set the value of the
duration property for the instance constructed by this builder. |
PathTransitionBuilder |
PathTransitionBuilder.duration(Duration x)
Deprecated.
Set the value of the
duration property for the instance constructed by this builder. |
FillTransitionBuilder |
FillTransitionBuilder.duration(Duration x)
Deprecated.
Set the value of the
duration property for the instance constructed by this builder. |
FadeTransitionBuilder |
FadeTransitionBuilder.duration(Duration x)
Deprecated.
Set the value of the
duration property for the instance constructed by this builder. |
void |
Animation.jumpTo(Duration time)
Jumps to a given position in this
Animation . |
void |
Animation.playFrom(Duration time)
A convenience method to play this
Animation from a specific
position. |
protected void |
Animation.setCycleDuration(Duration value) |
void |
Animation.setDelay(Duration value) |
void |
TranslateTransition.setDuration(Duration value) |
void |
StrokeTransition.setDuration(Duration value) |
void |
ScaleTransition.setDuration(Duration value) |
void |
RotateTransition.setDuration(Duration value) |
void |
PauseTransition.setDuration(Duration value) |
void |
PathTransition.setDuration(Duration value) |
void |
FillTransition.setDuration(Duration value) |
void |
FadeTransition.setDuration(Duration value) |
static Interpolator |
Interpolator.TANGENT(Duration t,
double v)
Creates a tangent interpolator, for which in-tangent and out-tangent are
identical.
|
static Interpolator |
Interpolator.TANGENT(Duration t1,
double v1,
Duration t2,
double v2)
Create a tangent interpolator.
|
Constructor and Description |
---|
FadeTransition(Duration duration)
The constructor of
FadeTransition |
FadeTransition(Duration duration,
Node node)
The constructor of
FadeTransition |
FillTransition(Duration duration)
The constructor of
FillTransition |
FillTransition(Duration duration,
Color fromValue,
Color toValue)
The constructor of
FillTransition |
FillTransition(Duration duration,
Shape shape)
The constructor of
FillTransition |
FillTransition(Duration duration,
Shape shape,
Color fromValue,
Color toValue)
The constructor of
FillTransition |
KeyFrame(Duration time,
EventHandler<ActionEvent> onFinished,
KeyValue... values)
Constructor of
KeyFrame |
KeyFrame(Duration time,
KeyValue... values)
Constructor of
KeyFrame |
KeyFrame(Duration time,
String name,
EventHandler<ActionEvent> onFinished,
Collection<KeyValue> values)
Constructor of
KeyFrame |
KeyFrame(Duration time,
String name,
EventHandler<ActionEvent> onFinished,
KeyValue... values)
Constructor of
KeyFrame |
KeyFrame(Duration time,
String name,
KeyValue... values)
Constructor of
KeyFrame |
PathTransition(Duration duration,
Shape path)
The constructor of
PathTransition . |
PathTransition(Duration duration,
Shape path,
Node node)
The constructor of
PathTransition . |
PauseTransition(Duration duration)
The constructor of
PauseTransition . |
RotateTransition(Duration duration)
The constructor of
RotateTransition |
RotateTransition(Duration duration,
Node node)
The constructor of
RotateTransition |
ScaleTransition(Duration duration)
The constructor of
ScaleTransition |
ScaleTransition(Duration duration,
Node node)
The constructor of
ScaleTransition |
StrokeTransition(Duration duration)
The constructor of
StrokeTransition |
StrokeTransition(Duration duration,
Color fromValue,
Color toValue)
The constructor of
StrokeTransition |
StrokeTransition(Duration duration,
Shape shape)
The constructor of
StrokeTransition |
StrokeTransition(Duration duration,
Shape shape,
Color fromValue,
Color toValue)
The constructor of
StrokeTransition |
TranslateTransition(Duration duration)
The constructor of
TranslateTransition |
TranslateTransition(Duration duration,
Node node)
The constructor of
TranslateTransition |
Modifier and Type | Field and Description |
---|---|
static Callback<ScheduledService<?>,Duration> |
ScheduledService.EXPONENTIAL_BACKOFF_STRATEGY
A Callback implementation for the
backoffStrategy property which
will exponentially backoff the period between re-executions in the case of
a failure. |
static Callback<ScheduledService<?>,Duration> |
ScheduledService.LINEAR_BACKOFF_STRATEGY
A Callback implementation for the
backoffStrategy property which
will linearly backoff the period between re-executions in the case of
a failure. |
static Callback<ScheduledService<?>,Duration> |
ScheduledService.LOGARITHMIC_BACKOFF_STRATEGY
A Callback implementation for the
backoffStrategy property which
will logarithmically backoff the period between re-executions in the case of
a failure. |
Modifier and Type | Method and Description |
---|---|
Duration |
ScheduledService.getCumulativePeriod() |
Duration |
ScheduledService.getDelay() |
Duration |
ScheduledService.getMaximumCumulativePeriod() |
Duration |
ScheduledService.getPeriod() |
Modifier and Type | Method and Description |
---|---|
ObjectProperty<Callback<ScheduledService<?>,Duration>> |
ScheduledService.backoffStrategyProperty() |
ReadOnlyObjectProperty<Duration> |
ScheduledService.cumulativePeriodProperty() |
ObjectProperty<Duration> |
ScheduledService.delayProperty() |
Callback<ScheduledService<?>,Duration> |
ScheduledService.getBackoffStrategy() |
ObjectProperty<Duration> |
ScheduledService.maximumCumulativePeriodProperty() |
ObjectProperty<Duration> |
ScheduledService.periodProperty() |
Modifier and Type | Method and Description |
---|---|
void |
ScheduledService.setDelay(Duration value) |
void |
ScheduledService.setMaximumCumulativePeriod(Duration value) |
void |
ScheduledService.setPeriod(Duration value) |
Modifier and Type | Method and Description |
---|---|
void |
ScheduledService.setBackoffStrategy(Callback<ScheduledService<?>,Duration> value) |
Modifier and Type | Method and Description |
---|---|
CssMetaData<S,Duration> |
StyleablePropertyFactory.createDurationCssMetaData(String property,
Function<S,StyleableProperty<Duration>> function)
Create a CssMetaData<S, Duration> with initial value of Duration.BLACK, and inherit flag defaulting to false.
|
CssMetaData<S,Duration> |
StyleablePropertyFactory.createDurationCssMetaData(String property,
Function<S,StyleableProperty<Duration>> function,
Duration initialValue)
Create a CssMetaData<S, Duration> with initial value, and inherit flag defaulting to false.
|
CssMetaData<S,Duration> |
StyleablePropertyFactory.createDurationCssMetaData(String property,
Function<S,StyleableProperty<Duration>> function,
Duration initialValue,
boolean inherits)
Create a CssMetaData<S, Duration> with initial value, and inherit flag.
|
StyleableProperty<Duration> |
StyleablePropertyFactory.createStyleableDurationProperty(S styleable,
String propertyName,
String cssProperty)
Create a StyleableProperty<Duration> using previously created CssMetaData for the given
cssProperty . |
StyleableProperty<Duration> |
StyleablePropertyFactory.createStyleableDurationProperty(S styleable,
String propertyName,
String cssProperty,
Function<S,StyleableProperty<Duration>> function)
Create a StyleableProperty<Duration>.
|
StyleableProperty<Duration> |
StyleablePropertyFactory.createStyleableDurationProperty(S styleable,
String propertyName,
String cssProperty,
Function<S,StyleableProperty<Duration>> function,
Duration initialValue)
Create a StyleableProperty<Duration> with initial value.
|
StyleableProperty<Duration> |
StyleablePropertyFactory.createStyleableDurationProperty(S styleable,
String propertyName,
String cssProperty,
Function<S,StyleableProperty<Duration>> function,
Duration initialValue,
boolean inherits)
Create a StyleableProperty<Duration> with initial value and inherit flag.
|
static StyleConverter<?,Duration> |
StyleConverter.getDurationConverter() |
Modifier and Type | Method and Description |
---|---|
CssMetaData<S,Duration> |
StyleablePropertyFactory.createDurationCssMetaData(String property,
Function<S,StyleableProperty<Duration>> function,
Duration initialValue)
Create a CssMetaData<S, Duration> with initial value, and inherit flag defaulting to false.
|
CssMetaData<S,Duration> |
StyleablePropertyFactory.createDurationCssMetaData(String property,
Function<S,StyleableProperty<Duration>> function,
Duration initialValue,
boolean inherits)
Create a CssMetaData<S, Duration> with initial value, and inherit flag.
|
StyleableProperty<Duration> |
StyleablePropertyFactory.createStyleableDurationProperty(S styleable,
String propertyName,
String cssProperty,
Function<S,StyleableProperty<Duration>> function,
Duration initialValue)
Create a StyleableProperty<Duration> with initial value.
|
StyleableProperty<Duration> |
StyleablePropertyFactory.createStyleableDurationProperty(S styleable,
String propertyName,
String cssProperty,
Function<S,StyleableProperty<Duration>> function,
Duration initialValue,
boolean inherits)
Create a StyleableProperty<Duration> with initial value and inherit flag.
|
Modifier and Type | Method and Description |
---|---|
CssMetaData<S,Duration> |
StyleablePropertyFactory.createDurationCssMetaData(String property,
Function<S,StyleableProperty<Duration>> function)
Create a CssMetaData<S, Duration> with initial value of Duration.BLACK, and inherit flag defaulting to false.
|
CssMetaData<S,Duration> |
StyleablePropertyFactory.createDurationCssMetaData(String property,
Function<S,StyleableProperty<Duration>> function,
Duration initialValue)
Create a CssMetaData<S, Duration> with initial value, and inherit flag defaulting to false.
|
CssMetaData<S,Duration> |
StyleablePropertyFactory.createDurationCssMetaData(String property,
Function<S,StyleableProperty<Duration>> function,
Duration initialValue,
boolean inherits)
Create a CssMetaData<S, Duration> with initial value, and inherit flag.
|
StyleableProperty<Duration> |
StyleablePropertyFactory.createStyleableDurationProperty(S styleable,
String propertyName,
String cssProperty,
Function<S,StyleableProperty<Duration>> function)
Create a StyleableProperty<Duration>.
|
StyleableProperty<Duration> |
StyleablePropertyFactory.createStyleableDurationProperty(S styleable,
String propertyName,
String cssProperty,
Function<S,StyleableProperty<Duration>> function,
Duration initialValue)
Create a StyleableProperty<Duration> with initial value.
|
StyleableProperty<Duration> |
StyleablePropertyFactory.createStyleableDurationProperty(S styleable,
String propertyName,
String cssProperty,
Function<S,StyleableProperty<Duration>> function,
Duration initialValue,
boolean inherits)
Create a StyleableProperty<Duration> with initial value and inherit flag.
|
Modifier and Type | Method and Description |
---|---|
Duration |
MediaPlayer.getBufferProgressTime()
Retrieves the
bufferProgressTime value. |
Duration |
MediaPlayer.getCurrentTime()
Retrieves the current media time.
|
Duration |
MediaPlayer.getCycleDuration()
Retrieves the cycle duration in seconds.
|
Duration |
Media.getDuration()
Retrieve the duration in seconds of the media.
|
Duration |
MediaPlayer.getStartTime()
Retrieves the start time.
|
Duration |
MediaPlayer.getStopTime()
Retrieves the stop time.
|
Duration |
MediaPlayer.getTotalDuration()
Retrieves the total playback duration including all cycles (repetitions).
|
Modifier and Type | Method and Description |
---|---|
ReadOnlyObjectProperty<Duration> |
MediaPlayer.bufferProgressTimeProperty() |
ReadOnlyObjectProperty<Duration> |
MediaPlayer.currentTimeProperty() |
ReadOnlyObjectProperty<Duration> |
MediaPlayer.cycleDurationProperty() |
ReadOnlyObjectProperty<Duration> |
Media.durationProperty() |
Pair<String,Duration> |
MediaMarkerEvent.getMarker()
Retrieves the marker the event represents.
|
ObservableMap<String,Duration> |
Media.getMarkers()
Retrieve the markers defined on this
Media instance. |
ObjectProperty<Duration> |
MediaPlayer.startTimeProperty() |
ObjectProperty<Duration> |
MediaPlayer.stopTimeProperty() |
ReadOnlyObjectProperty<Duration> |
MediaPlayer.totalDurationProperty() |
Modifier and Type | Method and Description |
---|---|
void |
MediaPlayer.seek(Duration seekTime)
Seeks the player to a new playback time.
|
void |
MediaPlayer.setStartTime(Duration value)
Sets the start time.
|
void |
MediaPlayer.setStopTime(Duration value)
Sets the stop time.
|
MediaPlayerBuilder |
MediaPlayerBuilder.startTime(Duration x)
Deprecated.
Set the value of the
startTime property for the instance constructed by this builder. |
MediaPlayerBuilder |
MediaPlayerBuilder.stopTime(Duration x)
Deprecated.
Set the value of the
stopTime property for the instance constructed by this builder. |
Modifier and Type | Field and Description |
---|---|
static Duration |
Duration.INDEFINITE
An Infinite Duration.
|
static Duration |
Duration.ONE
A Duration of 1 millisecond.
|
static Duration |
Duration.UNKNOWN
A Duration of some unknown amount of time.
|
static Duration |
Duration.ZERO
A Duration of 0 (no time).
|
Modifier and Type | Method and Description |
---|---|
Duration |
Duration.add(Duration other)
Add this instance and another Duration instance to return a new Duration instance.
|
Duration |
Duration.divide(double n)
Divide this instance by a number to return a new Duration instance.
|
Duration |
Duration.divide(Duration other)
Deprecated.
This method produces surprising results by not taking units into
account. Use
divide(double) instead. |
static Duration |
Duration.hours(double h)
Factory method that returns a Duration instance representing the specified
number of hours.
|
static Duration |
Duration.millis(double ms)
Factory method that returns a Duration instance for a specified
number of milliseconds.
|
static Duration |
Duration.minutes(double m)
Factory method that returns a Duration instance representing the specified
number of minutes.
|
Duration |
Duration.multiply(double n)
Multiply this instance with a number representing millis and return a new Duration.
|
Duration |
Duration.multiply(Duration other)
Deprecated.
This method produces surprising results by not taking units into
account. Use
multiply(double) instead. |
Duration |
Duration.negate()
Return a new Duration instance which has a negative number of milliseconds
from this instance.
|
static Duration |
Duration.seconds(double s)
Factory method that returns a Duration instance representing the specified
number of seconds.
|
Duration |
Duration.subtract(Duration other)
Subtract other Duration instance from this instance to return a new Duration instance.
|
static Duration |
Duration.valueOf(String time)
Factory method that returns a Duration instance for a specified
amount of time.
|
Modifier and Type | Method and Description |
---|---|
Duration |
Duration.add(Duration other)
Add this instance and another Duration instance to return a new Duration instance.
|
int |
Duration.compareTo(Duration d)
Compares durations represented by this object and the specified object.
|
Duration |
Duration.divide(Duration other)
Deprecated.
This method produces surprising results by not taking units into
account. Use
divide(double) instead. |
boolean |
Duration.greaterThan(Duration other)
Returns true if the specified duration is greater than (>) this instance.
|
boolean |
Duration.greaterThanOrEqualTo(Duration other)
Returns true if the specified duration is greater than or equal to (>=) this instance.
|
boolean |
Duration.lessThan(Duration other)
Returns true if the specified duration is less than (<) this instance.
|
boolean |
Duration.lessThanOrEqualTo(Duration other)
Returns true if the specified duration is less than or equal to (<=) this instance.
|
Duration |
Duration.multiply(Duration other)
Deprecated.
This method produces surprising results by not taking units into
account. Use
multiply(double) instead. |
Duration |
Duration.subtract(Duration other)
Subtract other Duration instance from this instance to return a new Duration instance.
|
Copyright © 2020. All rights reserved.