public final class Stop extends Object
javafx.scene.paint.LinearGradient
およびjavafx.scene.paint.RadialGradient
を参照してください。
例:
// object bounding box relative (proportional:true, default)
Stop[] stops = { new Stop(0, Color.WHITE), new Stop(1, Color.BLACK)};
LinearGradient lg = new LinearGradient(0, 0, 1, 0, true, CycleMethod.No_CYCLE, stops);
Rectangle r = new Rectangle();
r.setFill(lg);
public Stop(double offset, Color color)
offset
- ストップの位置(範囲0
-1
)color
- ストップの色public final double getOffset()
0
-1
の範囲の数値を取得します。線形グラデーションの場合、offset
変数はグラデーション・ベクトルに沿った位置を表します。放射状グラデーションの場合、焦点から最も外側の円(最も大きい円)の端までの距離(パーセンテージ)を表します。0
-1
)public final Color getColor()
public boolean equals(Object obj)
public int hashCode()
Stop
オブジェクトのハッシュ・コードを返します。Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.