Spec-Zone .ru
спецификации, руководства, описания, API
|
public class CornerRadii extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static CornerRadii |
EMPTY
A CornerRadii which is entirely empty, indicating squared corners.
|
Constructor and Description |
---|
CornerRadii(double radius)
Create a new CornerRadii with a single uniform radii value for all components of all
corners.
|
CornerRadii(double radius,
boolean asPercent)
Create a new CornerRadii with the given radii for each corner.
|
CornerRadii(double topLeft,
double topRight,
double bottomRight,
double bottomLeft,
boolean asPercent)
Create a new CornerRadii with uniform yet independent radii for each corner.
|
CornerRadii(double topLeftHorizontalRadius,
double topLeftVerticalRadius,
double topRightVerticalRadius,
double topRightHorizontalRadius,
double bottomRightHorizontalRadius,
double bottomRightVerticalRadius,
double bottomLeftVerticalRadius,
double bottomLeftHorizontalRadius,
boolean topLeftHorizontalRadiusAsPercent,
boolean topLeftVerticalRadiusAsPercent,
boolean topRightVerticalRadiusAsPercent,
boolean topRightHorizontalRadiusAsPercent,
boolean bottomRightHorizontalRadiusAsPercent,
boolean bottomRightVerticalRadiusAsPercent,
boolean bottomLeftVerticalRadiusAsPercent,
boolean bottomLeftHorizontalRadiusAsPercent)
Creates a new CornerRadii, allowing for specification of each component of each corner
radii and whether each component should be treated as a value or percentage.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
double |
getBottomLeftHorizontalRadius()
The length of the horizontal radii of the bottom-left corner.
|
double |
getBottomLeftVerticalRadius()
The length of the vertical radii of the bottom-left corner.
|
double |
getBottomRightHorizontalRadius()
The length of the horizontal radii of the bottom-right corner.
|
double |
getBottomRightVerticalRadius()
The length of the vertical radii of the bottom-right corner.
|
double |
getTopLeftHorizontalRadius()
The length of the horizontal radii of the top-left corner.
|
double |
getTopLeftVerticalRadius()
The length of the vertical radii of the top-left corner.
|
double |
getTopRightHorizontalRadius()
The length of the horizontal radii of the top-right corner.
|
double |
getTopRightVerticalRadius()
The length of the vertical radii of the top-right corner.
|
int |
hashCode() |
boolean |
isBottomLeftHorizontalRadiusAsPercentage() |
boolean |
isBottomLeftVerticalRadiusAsPercentage() |
boolean |
isBottomRightHorizontalRadiusAsPercentage() |
boolean |
isBottomRightVerticalRadiusAsPercentage() |
boolean |
isTopLeftHorizontalRadiusAsPercentage() |
boolean |
isTopLeftVerticalRadiusAsPercentage() |
boolean |
isTopRightHorizontalRadiusAsPercentage() |
boolean |
isTopRightVerticalRadiusAsPercentage() |
boolean |
isUniform() |
java.lang.String |
toString() |
public static final CornerRadii EMPTY
public CornerRadii(double radius)
radius
- The radii for each corner. Negative values are not allowed.public CornerRadii(double radius, boolean asPercent)
asPercent
argument.radius
- The radii for each corner. Negative values are not allowed.asPercent
- Whether the radii should be interpreted as a percentage.public CornerRadii(double topLeft, double topRight, double bottomRight, double bottomLeft, boolean asPercent)
topLeft
- The radii of the top-left corner. Negative numbers are not allowed.topRight
- The radii of the top-right corner. Negative numbers are not allowed.bottomRight
- The radii of the bottom-right corner. Negative numbers are not allowed.bottomLeft
- The radii of the bottom-left corner. Negative numbers are not allowed.asPercent
- Whether all four radii should be considered as values or percentagespublic CornerRadii(double topLeftHorizontalRadius, double topLeftVerticalRadius, double topRightVerticalRadius, double topRightHorizontalRadius, double bottomRightHorizontalRadius, double bottomRightVerticalRadius, double bottomLeftVerticalRadius, double bottomLeftHorizontalRadius, boolean topLeftHorizontalRadiusAsPercent, boolean topLeftVerticalRadiusAsPercent, boolean topRightVerticalRadiusAsPercent, boolean topRightHorizontalRadiusAsPercent, boolean bottomRightHorizontalRadiusAsPercent, boolean bottomRightVerticalRadiusAsPercent, boolean bottomLeftVerticalRadiusAsPercent, boolean bottomLeftHorizontalRadiusAsPercent)
topLeftHorizontalRadius
- topLeftVerticalRadius
- topRightVerticalRadius
- topRightHorizontalRadius
- bottomRightHorizontalRadius
- bottomRightVerticalRadius
- bottomLeftVerticalRadius
- bottomLeftHorizontalRadius
- topLeftHorizontalRadiusAsPercent
- topLeftVerticalRadiusAsPercent
- topRightVerticalRadiusAsPercent
- topRightHorizontalRadiusAsPercent
- bottomRightHorizontalRadiusAsPercent
- bottomRightVerticalRadiusAsPercent
- bottomLeftVerticalRadiusAsPercent
- bottomLeftHorizontalRadiusAsPercent
- public final double getTopLeftHorizontalRadius()
public final double getTopLeftVerticalRadius()
public final double getTopRightVerticalRadius()
public final double getTopRightHorizontalRadius()
public final double getBottomRightHorizontalRadius()
public final double getBottomRightVerticalRadius()
public final double getBottomLeftVerticalRadius()
public final double getBottomLeftHorizontalRadius()
public final boolean isTopLeftHorizontalRadiusAsPercentage()
public final boolean isTopLeftVerticalRadiusAsPercentage()
public final boolean isTopRightVerticalRadiusAsPercentage()
public final boolean isTopRightHorizontalRadiusAsPercentage()
public final boolean isBottomRightHorizontalRadiusAsPercentage()
public final boolean isBottomRightVerticalRadiusAsPercentage()
public final boolean isBottomLeftVerticalRadiusAsPercentage()
public final boolean isBottomLeftHorizontalRadiusAsPercentage()
public final boolean isUniform()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved. Use is subject to