public final class BorderWidths extends Object
topAsPercentage、rightAsPercentage、bottomAsPercentage、leftAsPercentageの値に応じて、リテラル値、またはリージョンの幅または高さの割合のいずれかとして解釈できます。 上、右、下および左に対して許容可能な負の値は、AUTOのみです。
BorderWidthsは不変であるため、どのキャッシュでも安全に使用でき、複数のリージョンの間で安全に再使用できます。| 修飾子と型 | フィールドと説明 |
|---|---|
static double |
AUTO
BorderStrokeによって使用される場合は、AUTOの値が、対応する辺の
BorderStroke.MEDIUMの値として解釈されます。 |
static BorderWidths |
DEFAULT
nullが指定された場合に、BorderImageによって使用されるデフォルトのBorderWidths。
|
static BorderWidths |
EMPTY
幅の空のセット(すべての値が0およびリテラル値など)。
|
static BorderWidths |
FULL
それぞれの側で100%を示す幅のセット。
|
| コンストラクタと説明 |
|---|
BorderWidths(double width)
4つの枠線すべてに指定された幅を使用してこの幅をパーセンテージではなくリテラル値として処理する新しいBorderWidthsを作成します。
|
BorderWidths(double top, double right, double bottom, double left)
上、右、下および左の指定された幅を使用した新しいBorderWidthsを作成します。
|
BorderWidths(double top, double right, double bottom, double left, boolean topAsPercentage, boolean rightAsPercentage, boolean bottomAsPercentage, boolean leftAsPercentage)
新しいBorderWidthsを作成します。
|
| 修飾子と型 | メソッドと説明 |
|---|---|
boolean |
equals(Object o) |
double |
getBottom()
ボーダーの下側のボーダーの太さを示す負でない値(
AUTOを除く)。 |
double |
getLeft()
ボーダーの左側のボーダーの太さを示す負でない値(
AUTOを除く)。 |
double |
getRight()
ボーダーの右側のボーダーの太さを示す負でない値(
AUTOを除く)。 |
double |
getTop()
ボーダーの上側のボーダーの太さを示す負でない値(
AUTOを除く)。 |
int |
hashCode() |
boolean |
isBottomAsPercentage()
bottomプロパティをリージョンの高さの割合として解釈する必要があるか(true)ないか(false)を指定します。 |
boolean |
isLeftAsPercentage()
leftプロパティをリージョンの幅の割合として解釈する必要があるか(true)ないか(false)を指定します。 |
boolean |
isRightAsPercentage()
rightプロパティをリージョンの幅の割合として解釈する必要があるか(true)ないか(false)を指定します。 |
boolean |
isTopAsPercentage()
topプロパティをリージョンの高さの割合として解釈する必要があるか(true)ないか(false)を指定します。 |
public static final double AUTO
BorderStroke.MEDIUMの値として解釈されます。 BorderImageで使用される場合は、AUTOの値は、BorderStrokeから対応する値を読み取り、手動で指定しないことを意味します。 public static final BorderWidths DEFAULT
public static final BorderWidths EMPTY
public static final BorderWidths FULL
public BorderWidths(double width)
width - ボーダーの幅。 負にはできません。 public BorderWidths(double top,
double right,
double bottom,
double left)
top - 上側のボーダーの太さ。 負でない数値。 right - 右側のボーダーの太さ。 負でない数値。 bottom - 下側のボーダーの太さ。 負でない数値。 left - 左側のボーダーの太さ。 負でない数値。 public BorderWidths(double top,
double right,
double bottom,
double left,
boolean topAsPercentage,
boolean rightAsPercentage,
boolean bottomAsPercentage,
boolean leftAsPercentage)
top、right、bottomまたはleftの値はすべて負にできます。 top - 上側のボーダーの太さ。 負でない数値。 right - 右側のボーダーの太さ。 負でない数値。 bottom - 下側のボーダーの太さ。 負でない数値。 left - 左側のボーダーの太さ。 負でない数値。 topAsPercentage - 上側を割合として処理する必要があるかどうか。rightAsPercentage - 右側を割合として処理する必要があるかどうか。bottomAsPercentage - 下側を割合として処理する必要があるかどうか。leftAsPercentage - 左側を割合として処理する必要があるかどうか。public final double getTop()
AUTOを除く)。 この値はリテラル値にするか、topAsPercentageプロパティの値に基づいて割合として処理できます。 public final double getRight()
AUTOを除く)。 この値はリテラル値にするか、rightAsPercentageプロパティの値に基づいて割合として処理できます。 public final double getBottom()
AUTOを除く)。 この値はリテラル値にするか、bottomAsPercentageプロパティの値に基づいて割合として処理できます。 public final double getLeft()
AUTOを除く)。 この値はリテラル値にするか、leftAsPercentageプロパティの値に基づいて割合として処理できます。 public final boolean isTopAsPercentage()
topプロパティをリージョンの高さの割合として解釈する必要があるか(true)ないか(false)を指定します。public final boolean isRightAsPercentage()
rightプロパティをリージョンの幅の割合として解釈する必要があるか(true)ないか(false)を指定します。public final boolean isBottomAsPercentage()
bottomプロパティをリージョンの高さの割合として解釈する必要があるか(true)ないか(false)を指定します。public final boolean isLeftAsPercentage()
leftプロパティをリージョンの幅の割合として解釈する必要があるか(true)ないか(false)を指定します。Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.