public class BackgroundWrapper
extends java.lang.Object
| Constructor and Description | 
|---|
| BackgroundWrapper(javafx.scene.paint.Paint paint)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| double | getHeight()Return the height of the wrapper. | 
| javafx.scene.layout.BackgroundPosition | getImagePosition()Return the wrapper image position. | 
| 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. | 
| 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). | 
| boolean | isTexture()Return true if the wrapper wraps a Texture. | 
| void | setImagePosition(javafx.scene.layout.BackgroundPosition position)Set the wrapper image position. | 
| 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 | setSize(double width,
       double height)Set the size of the wrapper. | 
public BackgroundWrapper(javafx.scene.paint.Paint paint)
paint - the Paintpublic boolean isTexture()
public void setPosition(double x,
                        double y)
x - the X positiony - the Y positionpublic void setImagePosition(javafx.scene.layout.BackgroundPosition position)
position - the wrapper image positionpublic javafx.scene.layout.BackgroundPosition getImagePosition()
public void setRadii(javafx.scene.layout.CornerRadii radii)
radii - the Radiipublic javafx.scene.layout.CornerRadii getRadii()
public boolean hasRadii()
public int getMeanRadiiWidth()
public int getMeanRadiiHeight()
public double getX()
public double getY()
public void setSize(double width,
                    double height)
width - the widthheight - the heightpublic double getWidth()
public double getHeight()
public javafx.scene.paint.Paint getPaint()
Copyright © 2021, 2022, 2025 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence