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()
|
boolean |
isLeftAsPercentage()
|
boolean |
isRightAsPercentage()
|
boolean |
isTopAsPercentage()
|
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()
public final boolean isRightAsPercentage()
public final boolean isBottomAsPercentage()
public final boolean isLeftAsPercentage()
Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.