- java.lang.Object
-
- javafx.animation.Animation
-
- javafx.animation.Transition
-
- javafx.animation.StrokeTransition
-
public final class StrokeTransition extends Transition
このTransition
では、duration
全体にわたって図形のストロークの色を変化させるアニメーションを作成します。 このことは、shape
のstroke
変数を一定の間隔で更新することによって行います。fromValue
が指定されている場合はそこから開始され、それ以外の場合はshape
のstroke
値が使用されます (この場合、stroke
値はColor
にする必要があります)。toValue
値で停止されます。コード・セグメントの例:
import javafx.scene.shape.*; import javafx.animation.*; ... Rectangle rect = new Rectangle (100, 40, 100, 100); rect.setArcHeight(50); rect.setArcWidth(50); rect.setFill(null); StrokeTransition st = new StrokeTransition(Duration.millis(3000), rect, Color.RED, Color.BLUE); st.setCycleCount(4); st.setAutoReverse(true); st.play(); ...
- 導入されたバージョン:
- JavaFX 2.0
- 関連項目:
Transition
,Animation
-
-
プロパティのサマリー
プロパティ 型 プロパティ 説明 ObjectProperty<Duration>
duration
このStrokeTransition
の期間。ObjectProperty<Color>
fromValue
このStrokeTransition
の開始色値を指定します。ObjectProperty<Shape>
shape
このStrokeTransition
のターゲット図形。ObjectProperty<Color>
toValue
このStrokeTransition
の停止色値を指定します。-
クラス javafx.animation.Animationで宣言されたプロパティ
autoReverse, currentRate, currentTime, cycleCount, cycleDuration, delay, onFinished, rate, status, totalDuration
-
クラス javafx.animation.Transitionで宣言されたプロパティ
interpolator
-
-
ネストされたクラスのサマリー
-
クラス javafx.animation.Animationで宣言されたネストされたクラス/インタフェース
Animation.Status
-
-
フィールドのサマリー
-
クラス javafx.animation.Animationで宣言されたフィールド
INDEFINITE
-
-
コンストラクタのサマリー
コンストラクタ コンストラクタ 説明 StrokeTransition()
StrokeTransition
のコンストラクタStrokeTransition(Duration duration)
StrokeTransition
のコンストラクタStrokeTransition(Duration duration, Color fromValue, Color toValue)
StrokeTransition
のコンストラクタStrokeTransition(Duration duration, Shape shape)
StrokeTransition
のコンストラクタStrokeTransition(Duration duration, Shape shape, Color fromValue, Color toValue)
StrokeTransition
のコンストラクタ
-
メソッドのサマリー
すべてのメソッド インスタンス・メソッド 具象メソッド 修飾子と型 メソッド 説明 ObjectProperty<Duration>
durationProperty()
このStrokeTransition
の期間。ObjectProperty<Color>
fromValueProperty()
このStrokeTransition
の開始色値を指定します。Duration
getDuration()
プロパティdurationの値を取得します。Color
getFromValue()
プロパティfromValueの値を取得します。Shape
getShape()
プロパティshapeの値を取得します。Color
getToValue()
プロパティtoValueの値を取得します。void
setDuration(Duration value)
プロパティdurationの値を設定します。void
setFromValue(Color value)
プロパティfromValueの値を設定します。void
setShape(Shape value)
プロパティshapeの値を設定します。void
setToValue(Color value)
プロパティtoValueの値を設定します。ObjectProperty<Shape>
shapeProperty()
このStrokeTransition
のターゲット図形。ObjectProperty<Color>
toValueProperty()
このStrokeTransition
の停止色値を指定します。-
クラス javafx.animation.Animationで宣言されたメソッド
autoReverseProperty, currentRateProperty, currentTimeProperty, cycleCountProperty, cycleDurationProperty, delayProperty, getCuePoints, getCurrentRate, getCurrentTime, getCycleCount, getCycleDuration, getDelay, getOnFinished, getRate, getStatus, getTargetFramerate, getTotalDuration, isAutoReverse, jumpTo, jumpTo, onFinishedProperty, pause, play, playFrom, playFrom, playFromStart, rateProperty, setAutoReverse, setCycleCount, setCycleDuration, setDelay, setOnFinished, setRate, setStatus, statusProperty, stop, totalDurationProperty
-
クラス java.lang.Objectで宣言されたメソッド
clone、equals、finalize、getClass、hashCode、notify、notifyAll、toString、wait、wait、wait
-
クラス javafx.animation.Transitionで宣言されたメソッド
getCachedInterpolator, getInterpolator, getParentTargetNode, interpolate, interpolatorProperty, setInterpolator
-
-
-
-
プロパティの詳細
-
shape
public final ObjectProperty<Shape> shapeProperty
このStrokeTransition
のターゲット図形。実行中の
StrokeTransition
のターゲットshape
は変更できません。 実行中のStrokeTransition
のshape
の値が変更された場合、新しい値を反映するには、アニメーションを停止し、再度開始する必要があります。- 関連項目:
getShape()
,setShape(Shape)
-
duration
public final ObjectProperty<Duration> durationProperty
このStrokeTransition
の期間。実行中の
StrokeTransition
のduration
は変更できません。 実行中のStrokeTransition
のduration
の値が変更された場合、新しい値を反映するには、アニメーションを停止し、再度開始する必要があります。注意:
duration
の単位はミリ秒ですが、粒度は基礎となるオペレーティング・システムによって異なり、一般的には大きくなります。 たとえば、デスクトップ・システム上のアニメーションは、通常、最大60fpsで実行され、その粒度は最大17ミリ秒になります。 durationをDuration.ZERO
よりも小さい値に設定すると、IllegalArgumentException
が発生します。- デフォルト値:
- 400ms
- 関連項目:
getDuration()
,setDuration(Duration)
-
fromValue
public final ObjectProperty<Color> fromValueProperty
このStrokeTransition
の開始色値を指定します。実行中の
StrokeTransition
のfromValue
は変更できません。 実行中のStrokeTransition
のfromValue
の値が変更された場合、新しい値を反映するには、アニメーションを停止し、再度開始する必要があります。- デフォルト値:
null
- 関連項目:
getFromValue()
,setFromValue(Color)
-
toValue
public final ObjectProperty<Color> toValueProperty
このStrokeTransition
の停止色値を指定します。実行中の
StrokeTransition
のtoValue
は変更できません。 実行中のStrokeTransition
のtoValue
の値が変更された場合、新しい値を反映するには、アニメーションを停止し、再度開始する必要があります。- デフォルト値:
null
- 関連項目:
getToValue()
,setToValue(Color)
-
-
コンストラクタの詳細
-
StrokeTransition
public StrokeTransition(Duration duration, Shape shape, Color fromValue, Color toValue)
StrokeTransition
のコンストラクタ- パラメータ:
duration
-StrokeTransition
の期間shape
- 塗りつぶしがアニメーション化されるshape
fromValue
- カラーアニメーションの開始値toValue
- カラーアニメーションの終了値
-
StrokeTransition
public StrokeTransition(Duration duration, Color fromValue, Color toValue)
StrokeTransition
のコンストラクタ- パラメータ:
duration
-StrokeTransition
の期間fromValue
- カラーアニメーションの開始値toValue
- カラーアニメーションの終了値
-
StrokeTransition
public StrokeTransition(Duration duration, Shape shape)
StrokeTransition
のコンストラクタ- パラメータ:
duration
-StrokeTransition
の期間shape
- ストローク・ペイントがアニメーション化されるshape
-
StrokeTransition
public StrokeTransition(Duration duration)
StrokeTransition
のコンストラクタ- パラメータ:
duration
-StrokeTransition
の期間
-
StrokeTransition
public StrokeTransition()
StrokeTransition
のコンストラクタ
-
-
メソッドの詳細
-
setShape
public final void setShape(Shape value)
プロパティshapeの値を設定します。- プロパティの説明:
- この
StrokeTransition
のターゲット図形。実行中の
StrokeTransition
のターゲットshape
は変更できません。 実行中のStrokeTransition
のshape
の値が変更された場合、新しい値を反映するには、アニメーションを停止し、再度開始する必要があります。
-
getShape
public final Shape getShape()
プロパティshapeの値を取得します。- プロパティの説明:
- この
StrokeTransition
のターゲット図形。実行中の
StrokeTransition
のターゲットshape
は変更できません。 実行中のStrokeTransition
のshape
の値が変更された場合、新しい値を反映するには、アニメーションを停止し、再度開始する必要があります。
-
shapeProperty
public final ObjectProperty<Shape> shapeProperty()
このStrokeTransition
のターゲット図形。実行中の
StrokeTransition
のターゲットshape
は変更できません。 実行中のStrokeTransition
のshape
の値が変更された場合、新しい値を反映するには、アニメーションを停止し、再度開始する必要があります。- 関連項目:
getShape()
,setShape(Shape)
-
setDuration
public final void setDuration(Duration value)
プロパティdurationの値を設定します。- プロパティの説明:
- この
StrokeTransition
の期間。実行中の
StrokeTransition
のduration
は変更できません。 実行中のStrokeTransition
のduration
の値が変更された場合、新しい値を反映するには、アニメーションを停止し、再度開始する必要があります。注意:
duration
の単位はミリ秒ですが、粒度は基礎となるオペレーティング・システムによって異なり、一般的には大きくなります。 たとえば、デスクトップ・システム上のアニメーションは、通常、最大60fpsで実行され、その粒度は最大17ミリ秒になります。 durationをDuration.ZERO
よりも小さい値に設定すると、IllegalArgumentException
が発生します。 - デフォルト値:
- 400ms
-
getDuration
public final Duration getDuration()
プロパティdurationの値を取得します。- プロパティの説明:
- この
StrokeTransition
の期間。実行中の
StrokeTransition
のduration
は変更できません。 実行中のStrokeTransition
のduration
の値が変更された場合、新しい値を反映するには、アニメーションを停止し、再度開始する必要があります。注意:
duration
の単位はミリ秒ですが、粒度は基礎となるオペレーティング・システムによって異なり、一般的には大きくなります。 たとえば、デスクトップ・システム上のアニメーションは、通常、最大60fpsで実行され、その粒度は最大17ミリ秒になります。 durationをDuration.ZERO
よりも小さい値に設定すると、IllegalArgumentException
が発生します。 - デフォルト値:
- 400ms
-
durationProperty
public final ObjectProperty<Duration> durationProperty()
このStrokeTransition
の期間。実行中の
StrokeTransition
のduration
は変更できません。 実行中のStrokeTransition
のduration
の値が変更された場合、新しい値を反映するには、アニメーションを停止し、再度開始する必要があります。注意:
duration
の単位はミリ秒ですが、粒度は基礎となるオペレーティング・システムによって異なり、一般的には大きくなります。 たとえば、デスクトップ・システム上のアニメーションは、通常、最大60fpsで実行され、その粒度は最大17ミリ秒になります。 durationをDuration.ZERO
よりも小さい値に設定すると、IllegalArgumentException
が発生します。- デフォルト値:
- 400ms
- 関連項目:
getDuration()
,setDuration(Duration)
-
setFromValue
public final void setFromValue(Color value)
プロパティfromValueの値を設定します。- プロパティの説明:
- この
StrokeTransition
の開始色値を指定します。実行中の
StrokeTransition
のfromValue
は変更できません。 実行中のStrokeTransition
のfromValue
の値が変更された場合、新しい値を反映するには、アニメーションを停止し、再度開始する必要があります。 - デフォルト値:
null
-
getFromValue
public final Color getFromValue()
プロパティfromValueの値を取得します。- プロパティの説明:
- この
StrokeTransition
の開始色値を指定します。実行中の
StrokeTransition
のfromValue
は変更できません。 実行中のStrokeTransition
のfromValue
の値が変更された場合、新しい値を反映するには、アニメーションを停止し、再度開始する必要があります。 - デフォルト値:
null
-
fromValueProperty
public final ObjectProperty<Color> fromValueProperty()
このStrokeTransition
の開始色値を指定します。実行中の
StrokeTransition
のfromValue
は変更できません。 実行中のStrokeTransition
のfromValue
の値が変更された場合、新しい値を反映するには、アニメーションを停止し、再度開始する必要があります。- デフォルト値:
null
- 関連項目:
getFromValue()
,setFromValue(Color)
-
setToValue
public final void setToValue(Color value)
プロパティtoValueの値を設定します。- プロパティの説明:
- この
StrokeTransition
の停止色値を指定します。実行中の
StrokeTransition
のtoValue
は変更できません。 実行中のStrokeTransition
のtoValue
の値が変更された場合、新しい値を反映するには、アニメーションを停止し、再度開始する必要があります。 - デフォルト値:
null
-
getToValue
public final Color getToValue()
プロパティtoValueの値を取得します。- プロパティの説明:
- この
StrokeTransition
の停止色値を指定します。実行中の
StrokeTransition
のtoValue
は変更できません。 実行中のStrokeTransition
のtoValue
の値が変更された場合、新しい値を反映するには、アニメーションを停止し、再度開始する必要があります。 - デフォルト値:
null
-
toValueProperty
public final ObjectProperty<Color> toValueProperty()
このStrokeTransition
の停止色値を指定します。実行中の
StrokeTransition
のtoValue
は変更できません。 実行中のStrokeTransition
のtoValue
の値が変更された場合、新しい値を反映するには、アニメーションを停止し、再度開始する必要があります。- デフォルト値:
null
- 関連項目:
getToValue()
,setToValue(Color)
-
-