public class MotionBlur extends Effect
例:
MotionBlur motionBlur = new MotionBlur();
motionBlur.setRadius(30);
motionBlur.setAngle(-15.0);
Text text = new Text();
text.setX(20.0);
text.setY(100.0);
text.setText("Motion!");
text.setFill(Color.web("0x3b596d"));
text.setFont(Font.font(null, FontWeight.BOLD, 60));
text.setEffect(motionBlur);
前述のコードにより、次の出力が生成されます。
Type | プロパティと説明 |
---|---|
DoubleProperty |
angle
モーション効果の角度(度)。
|
ObjectProperty<Effect> |
input
この
Effect の入力。 |
DoubleProperty |
radius
ぼかしカーネルの直径。
|
コンストラクタと説明 |
---|
MotionBlur()
デフォルトのパラメータでMotionBlurの新しいインスタンスを作成します。
|
MotionBlur(double angle, double radius)
指定された角度および半径を持つMotionBlurの新しいインスタンスを作成します。
|
修飾子と型 | メソッドと説明 |
---|---|
DoubleProperty |
angleProperty()
モーション効果の角度(度)。
|
double |
getAngle()
プロパティangleの値を取得します。
|
Effect |
getInput()
プロパティinputの値を取得します。
|
double |
getRadius()
プロパティradiusの値を取得します。
|
ObjectProperty<Effect> |
inputProperty()
この
Effect の入力。 |
DoubleProperty |
radiusProperty()
ぼかしカーネルの直径。
|
void |
setAngle(double value)
プロパティangleの値を設定します。
|
void |
setInput(Effect value)
プロパティinputの値を設定します。
|
void |
setRadius(double value)
プロパティradiusの値を設定します。
|
public final ObjectProperty<Effect> inputProperty
Effect
の入力。null
に設定した場合、または指定しない場合、Effect
がアタッチされているNode
のグラフィカル・イメージが入力として使用されます。getInput()
、setInput(Effect)
public final DoubleProperty radiusProperty
Min: 0.0 Max: 63.0 Default: 10.0 Identity: 0.0
getRadius()
、setRadius(double)
public final DoubleProperty angleProperty
Min: n/a Max: n/a Default: 0.0 Identity: n/a
getAngle()
、setAngle(double)
public MotionBlur()
public MotionBlur(double angle, double radius)
angle
- モーション効果の角度(度)radius
- ぼかしカーネルの半径public final void setInput(Effect value)
Effect
の入力。null
に設定した場合、または指定しない場合、Effect
がアタッチされているNode
のグラフィカル・イメージが入力として使用されます。public final Effect getInput()
Effect
の入力。null
に設定した場合、または指定しない場合、Effect
がアタッチされているNode
のグラフィカル・イメージが入力として使用されます。public final ObjectProperty<Effect> inputProperty()
Effect
の入力。null
に設定した場合、または指定しない場合、Effect
がアタッチされているNode
のグラフィカル・イメージが入力として使用されます。getInput()
、setInput(Effect)
public final void setRadius(double value)
Min: 0.0 Max: 63.0 Default: 10.0 Identity: 0.0
public final double getRadius()
Min: 0.0 Max: 63.0 Default: 10.0 Identity: 0.0
public final DoubleProperty radiusProperty()
Min: 0.0 Max: 63.0 Default: 10.0 Identity: 0.0
getRadius()
、setRadius(double)
public final void setAngle(double value)
Min: n/a Max: n/a Default: 0.0 Identity: n/a
public final double getAngle()
Min: n/a Max: n/a Default: 0.0 Identity: n/a
public final DoubleProperty angleProperty()
Min: n/a Max: n/a Default: 0.0 Identity: n/a
getAngle()
、setAngle(double)
Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.