Package | Description |
---|---|
com.sun.javafx.scene.layout.region | |
com.sun.javafx.sg.prism | |
javafx.scene.layout |
Provides classes to support user interface layout.
|
Modifier and Type | Method and Description |
---|---|
CornerRadii[] |
CornerRadiiConverter.convert(ParsedValue<ParsedValue<ParsedValue<?,Size>[][],CornerRadii>[],CornerRadii[]> value,
Font font) |
Modifier and Type | Field and Description |
---|---|
private java.util.List<CornerRadii> |
NGRegion.normalizedFillCorners
The normalized list of CornerRadii have been precomputed at the FX layer to
properly account for percentages, insets and radii scaling to prevent
the radii from overflowing the dimensions of the region.
|
private java.util.List<CornerRadii> |
NGRegion.normalizedStrokeCorners |
Modifier and Type | Method and Description |
---|---|
private CornerRadii |
NGRegion.getNormalizedFillRadii(int index)
Returns the normalized (non-percentage, non-overflowing) radii for the
selected index into the BackgroundFill objects.
|
private CornerRadii |
NGRegion.getNormalizedStrokeRadii(int index)
Returns the normalized (non-percentage, non-overflowing) radii for the
selected index into the BorderStroke objects.
|
Modifier and Type | Method and Description |
---|---|
private Path2D |
NGRegion.createPath(float width,
float height,
float t,
float l,
float bo,
float ro,
CornerRadii radii)
Creates a rounded rectangle path with our width and height, different corner radii,
offset with given offsets
|
private Path2D[] |
NGRegion.createPaths(float t,
float l,
float bo,
float ro,
CornerRadii radii)
Creates a rounded rectangle path with our width and height, different corner radii, offset with given offsets.
|
private void |
NGRegion.doCorner(Path2D path,
CornerRadii radii,
float x,
float y,
int quadrant,
float tstart,
float tend,
boolean newPath)
Inserts geometry into the specified Path2D object for the specified
corner of a general rounded rectangle.
|
private Path2D |
NGRegion.makeRoundedEdge(CornerRadii radii,
float x0,
float y0,
float x1,
float y1,
int quadrant) |
Modifier and Type | Method and Description |
---|---|
void |
NGRegion.updateFillCorners(java.util.List<CornerRadii> normalizedFillCorners)
Called by the Region when any parameters are changed.
|
void |
NGRegion.updateStrokeCorners(java.util.List<CornerRadii> normalizedStrokeCorners)
Called by the Region when any parameters are changed.
|
Modifier and Type | Field and Description |
---|---|
static CornerRadii |
CornerRadii.EMPTY
A CornerRadii which is entirely empty, indicating squared corners.
|
(package private) CornerRadii |
BackgroundFill.radii |
private CornerRadii |
BorderStroke.radii |
Modifier and Type | Field and Description |
---|---|
private java.util.List<CornerRadii> |
Region.normalizedFillCorners |
private java.util.List<CornerRadii> |
Region.normalizedStrokeCorners |
Modifier and Type | Method and Description |
---|---|
private CornerRadii |
Region.getNormalizedFillCorner(int i)
Returns the normalized absolute radii for the indicated BackgroundFill,
taking the current size of the region into account to eliminate any
percentage-based measurements and to scale the radii to prevent
overflowing the width or height.
|
private CornerRadii |
Region.getNormalizedStrokeCorner(int i)
Returns the normalized absolute radii for the indicated BorderStroke,
taking the current size of the region into account to eliminate any
percentage-based measurements and to scale the radii to prevent
overflowing the width or height.
|
CornerRadii |
BackgroundFill.getRadii()
The Radii to use for representing the four radii of the
BackgroundFill.
|
CornerRadii |
BorderStroke.getRadii()
Defines the radii for each corner of this BorderStroke.
|
private static CornerRadii |
Region.normalize(CornerRadii radii,
Insets insets,
double width,
double height)
Return a version of the radii that is not percentage based and is scaled to
fit the indicated inset rectangle without overflow.
|
Modifier and Type | Method and Description |
---|---|
private boolean |
Region.contains(double px,
double py,
double x1,
double y1,
double x2,
double y2,
BorderWidths widths,
boolean filled,
Insets insets,
CornerRadii rad)
Basically we will perform two contains tests.
|
private boolean |
Region.contains(double px,
double py,
double x1,
double y1,
double x2,
double y2,
Insets insets,
CornerRadii rad)
Determines whether the point (px, py) is contained within the the bounds (x1, y1)-(x2, y2),
after taking into account the insets and the corner radii.
|
private static CornerRadii |
Region.normalize(CornerRadii radii,
Insets insets,
double width,
double height)
Return a version of the radii that is not percentage based and is scaled to
fit the indicated inset rectangle without overflow.
|
Constructor and Description |
---|
BackgroundFill(Paint fill,
CornerRadii radii,
Insets insets)
Creates a new BackgroundFill with the specified fill, radii, and
insets.
|
BorderStroke(Paint stroke,
BorderStrokeStyle style,
CornerRadii radii,
BorderWidths widths)
Creates a new BorderStroke.
|
BorderStroke(Paint stroke,
BorderStrokeStyle style,
CornerRadii radii,
BorderWidths widths,
Insets insets)
Creates a new BorderStroke.
|
BorderStroke(Paint topStroke,
Paint rightStroke,
Paint bottomStroke,
Paint leftStroke,
BorderStrokeStyle topStyle,
BorderStrokeStyle rightStyle,
BorderStrokeStyle bottomStyle,
BorderStrokeStyle leftStyle,
CornerRadii radii,
BorderWidths widths,
Insets insets)
Create a new BorderStroke, specifying all construction parameters.
|