public class BorderWrapper
extends java.lang.Object
Constructor and Description |
---|
BorderWrapper(javafx.scene.paint.Paint paint,
double width)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getMeanRadiiHeight()
Return the mean height value of the corners Radii.
|
int |
getMeanRadiiWidth()
Return the mean width value of the corners Radii.
|
javafx.scene.paint.Paint |
getPaint()
Return the Paint of the wrapper.
|
javafx.scene.layout.CornerRadii |
getRadii()
Return the corners Radii of the wrapper.
|
javafx.scene.layout.BorderStrokeStyle |
getStrokeStyle()
Return the stroke style (can be null).
|
double |
getWidth()
Return the width of the wrapper.
|
double |
getX()
Return the X position of the wrapper.
|
double |
getY()
Return the Y position of the wrapper.
|
boolean |
hasRadii()
Return true if the wrapper has a CornerRadii (means that at least one corner radius is 0).
|
void |
setPosition(double x,
double y)
Set the position of the wrapper.
|
void |
setRadii(javafx.scene.layout.CornerRadii radii)
Set the corners Radii of the wrapper.
|
void |
setStrokeStyle(javafx.scene.layout.BorderStrokeStyle strokeStyle)
Set the stroke style.
|
public BorderWrapper(javafx.scene.paint.Paint paint, double width)
paint
- the Paintwidth
- the width of the Borderpublic void setStrokeStyle(javafx.scene.layout.BorderStrokeStyle strokeStyle)
strokeStyle
- the stroke stylepublic javafx.scene.layout.BorderStrokeStyle getStrokeStyle()
public void setPosition(double x, double y)
x
- the X positiony
- the Y positionpublic double getX()
public double getY()
public javafx.scene.paint.Paint getPaint()
public void setRadii(javafx.scene.layout.CornerRadii radii)
radii
- the Radiipublic javafx.scene.layout.CornerRadii getRadii()
public boolean hasRadii()
public double getWidth()
public int getMeanRadiiWidth()
public int getMeanRadiiHeight()
Copyright © 2021, 2022, 2025 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence