Package org.kordamp.jsilhouette.javafx
Class MultiRoundRectangle
- java.lang.Object
-
- org.kordamp.jsilhouette.javafx.AbstractSilhouette
-
- org.kordamp.jsilhouette.javafx.MultiRoundRectangle
-
- All Implemented Interfaces:
Silhouette
public class MultiRoundRectangle extends AbstractSilhouette
MultiRoundRectangleDefines a rounded rectangle, each corner may have a different roundness factor.
Constraints
- topLeftWidth + topRightWidth <= width
- topLeftHeight + topRightHeight <= height
- bottomLeftWidth + bottomRightWidth <= width
- bottomLeftHeight + bottomRightHeight <= height
Style Classes
- silhouette
- silhouette-multiround-rectangle
- Author:
- Andres Almiray
-
-
Property Summary
-
Properties inherited from class org.kordamp.jsilhouette.javafx.AbstractSilhouette
fill, id, managed, opacity, rotate, rotationAxis, scaleX, scaleY, scaleZ, shape, smooth, strokeDashOffset, strokeLineCap, strokeLineJoin, strokeMiterLimit, stroke, strokeType, strokeWidth, style, translateX, translateY, translateZ, visible
-
-
Field Summary
-
Fields inherited from class org.kordamp.jsilhouette.javafx.AbstractSilhouette
initializing, updateListener
-
-
Constructor Summary
Constructors Constructor Description MultiRoundRectangle()
MultiRoundRectangle(double x, double y, double width, double height, double round)
MultiRoundRectangle(double x, double y, double width, double height, double topLeft, double topRight, double bottomLeft, double bottomRight)
MultiRoundRectangle(double x, double y, double width, double height, double topLeftWidth, double topLeftHeight, double topRightWidth, double topRightHeight, double bottomLeftWidth, double bottomLeftHeight, double bottomRightWidth, double bottomRightHeight)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DoubleProperty
bottomLeftHeightProperty()
DoubleProperty
bottomLeftWidthProperty()
DoubleProperty
bottomRightHeightProperty()
DoubleProperty
bottomRightWidthProperty()
protected void
calculateShape()
double
getBottomLeftHeight()
Gets the value of the property bottomLeftHeight.double
getBottomLeftWidth()
Gets the value of the property bottomLeftWidth.double
getBottomRightHeight()
Gets the value of the property bottomRightHeight.double
getBottomRightWidth()
Gets the value of the property bottomRightWidth.double
getHeight()
Gets the value of the property height.double
getTopLeftHeight()
Gets the value of the property topLeftHeight.double
getTopLeftWidth()
Gets the value of the property topLeftWidth.double
getTopRightHeight()
Gets the value of the property topRightHeight.double
getTopRightWidth()
Gets the value of the property topRightWidth.double
getWidth()
Gets the value of the property width.double
getX()
Gets the value of the property x.double
getY()
Gets the value of the property y.DoubleProperty
heightProperty()
void
setBottomLeftHeight(double bottomLeftHeight)
Sets the value of the property bottomLeftHeight.void
setBottomLeftWidth(double bottomLeftWidth)
Sets the value of the property bottomLeftWidth.void
setBottomRightHeight(double bottomRightHeight)
Sets the value of the property bottomRightHeight.void
setBottomRightWidth(double bottomRightWidth)
Sets the value of the property bottomRightWidth.void
setHeight(double height)
Sets the value of the property height.void
setTopLeftHeight(double topLeftHeight)
Sets the value of the property topLeftHeight.void
setTopLeftWidth(double topLeftWidth)
Sets the value of the property topLeftWidth.void
setTopRightHeight(double topRightHeight)
Sets the value of the property topRightHeight.void
setTopRightWidth(double topRightWidth)
Sets the value of the property topRightWidth.void
setWidth(double width)
Sets the value of the property width.void
setX(double value)
Sets the value of the property x.void
setY(double value)
Sets the value of the property y.DoubleProperty
topLeftHeightProperty()
DoubleProperty
topLeftWidthProperty()
DoubleProperty
topRightHeightProperty()
DoubleProperty
topRightWidthProperty()
DoubleProperty
widthProperty()
DoubleProperty
xProperty()
DoubleProperty
yProperty()
-
Methods inherited from class org.kordamp.jsilhouette.javafx.AbstractSilhouette
addEventHandler, fillProperty, forwardShapeProperty, idProperty, managedProperty, opacityProperty, removeEventHandler, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, setShape, shapeProperty, smoothProperty, strokeDashOffsetProperty, strokeLineCapProperty, strokeLineJoinProperty, strokeMiterLimitProperty, strokeProperty, strokeTypeProperty, strokeWidthProperty, styleProperty, translateXProperty, translateYProperty, translateZProperty, visibleProperty
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.kordamp.jsilhouette.javafx.Silhouette
getFill, getId, getOpacity, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getShape, getStroke, getStrokeDashOffset, getStrokeLineCap, getStrokeLineJoin, getStrokeMiterLimit, getStrokeType, getStrokeWidth, getStyle, getTranslateX, getTranslateY, getTranslateZ, isManaged, isSmooth, isVisible, setFill, setId, setManaged, setOpacity, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setSmooth, setStroke, setStrokeDashOffset, setStrokeLineCap, setStrokeLineJoin, setStrokeMiterLimit, setStrokeType, setStrokeWidth, setStyle, setTranslateX, setTranslateY, setTranslateZ, setVisible
-
-
-
-
Property Detail
-
x
public DoubleProperty xProperty
- See Also:
getX()
,setX(double)
-
y
public DoubleProperty yProperty
- See Also:
getY()
,setY(double)
-
height
public DoubleProperty heightProperty
- See Also:
getHeight()
,setHeight(double)
-
width
public DoubleProperty widthProperty
- See Also:
getWidth()
,setWidth(double)
-
topLeftHeight
public DoubleProperty topLeftHeightProperty
- See Also:
getTopLeftHeight()
,setTopLeftHeight(double)
-
topLeftWidth
public DoubleProperty topLeftWidthProperty
- See Also:
getTopLeftWidth()
,setTopLeftWidth(double)
-
topRightHeight
public DoubleProperty topRightHeightProperty
- See Also:
getTopRightHeight()
,setTopRightHeight(double)
-
topRightWidth
public DoubleProperty topRightWidthProperty
- See Also:
getTopRightWidth()
,setTopRightWidth(double)
-
bottomLeftHeight
public DoubleProperty bottomLeftHeightProperty
- See Also:
getBottomLeftHeight()
,setBottomLeftHeight(double)
-
bottomLeftWidth
public DoubleProperty bottomLeftWidthProperty
- See Also:
getBottomLeftWidth()
,setBottomLeftWidth(double)
-
bottomRightHeight
public DoubleProperty bottomRightHeightProperty
-
bottomRightWidth
public DoubleProperty bottomRightWidthProperty
- See Also:
getBottomRightWidth()
,setBottomRightWidth(double)
-
-
Constructor Detail
-
MultiRoundRectangle
public MultiRoundRectangle()
-
MultiRoundRectangle
public MultiRoundRectangle(double x, double y, double width, double height, double round)
-
MultiRoundRectangle
public MultiRoundRectangle(double x, double y, double width, double height, double topLeft, double topRight, double bottomLeft, double bottomRight)
-
MultiRoundRectangle
public MultiRoundRectangle(double x, double y, double width, double height, double topLeftWidth, double topLeftHeight, double topRightWidth, double topRightHeight, double bottomLeftWidth, double bottomLeftHeight, double bottomRightWidth, double bottomRightHeight)
-
-
Method Detail
-
getX
public double getX()
Gets the value of the property x.- Property description:
-
xProperty
public DoubleProperty xProperty()
- See Also:
getX()
,setX(double)
-
setX
public void setX(double value)
Sets the value of the property x.- Property description:
-
getY
public double getY()
Gets the value of the property y.- Property description:
-
yProperty
public DoubleProperty yProperty()
- See Also:
getY()
,setY(double)
-
setY
public void setY(double value)
Sets the value of the property y.- Property description:
-
getHeight
public double getHeight()
Gets the value of the property height.- Property description:
-
heightProperty
public DoubleProperty heightProperty()
- See Also:
getHeight()
,setHeight(double)
-
setHeight
public void setHeight(double height)
Sets the value of the property height.- Property description:
-
getWidth
public double getWidth()
Gets the value of the property width.- Property description:
-
widthProperty
public DoubleProperty widthProperty()
- See Also:
getWidth()
,setWidth(double)
-
setWidth
public void setWidth(double width)
Sets the value of the property width.- Property description:
-
getTopLeftHeight
public double getTopLeftHeight()
Gets the value of the property topLeftHeight.- Property description:
-
topLeftHeightProperty
public DoubleProperty topLeftHeightProperty()
- See Also:
getTopLeftHeight()
,setTopLeftHeight(double)
-
setTopLeftHeight
public void setTopLeftHeight(double topLeftHeight)
Sets the value of the property topLeftHeight.- Property description:
-
getTopLeftWidth
public double getTopLeftWidth()
Gets the value of the property topLeftWidth.- Property description:
-
topLeftWidthProperty
public DoubleProperty topLeftWidthProperty()
- See Also:
getTopLeftWidth()
,setTopLeftWidth(double)
-
setTopLeftWidth
public void setTopLeftWidth(double topLeftWidth)
Sets the value of the property topLeftWidth.- Property description:
-
getTopRightHeight
public double getTopRightHeight()
Gets the value of the property topRightHeight.- Property description:
-
topRightHeightProperty
public DoubleProperty topRightHeightProperty()
- See Also:
getTopRightHeight()
,setTopRightHeight(double)
-
setTopRightHeight
public void setTopRightHeight(double topRightHeight)
Sets the value of the property topRightHeight.- Property description:
-
getTopRightWidth
public double getTopRightWidth()
Gets the value of the property topRightWidth.- Property description:
-
topRightWidthProperty
public DoubleProperty topRightWidthProperty()
- See Also:
getTopRightWidth()
,setTopRightWidth(double)
-
setTopRightWidth
public void setTopRightWidth(double topRightWidth)
Sets the value of the property topRightWidth.- Property description:
-
getBottomLeftHeight
public double getBottomLeftHeight()
Gets the value of the property bottomLeftHeight.- Property description:
-
bottomLeftHeightProperty
public DoubleProperty bottomLeftHeightProperty()
- See Also:
getBottomLeftHeight()
,setBottomLeftHeight(double)
-
setBottomLeftHeight
public void setBottomLeftHeight(double bottomLeftHeight)
Sets the value of the property bottomLeftHeight.- Property description:
-
getBottomLeftWidth
public double getBottomLeftWidth()
Gets the value of the property bottomLeftWidth.- Property description:
-
bottomLeftWidthProperty
public DoubleProperty bottomLeftWidthProperty()
- See Also:
getBottomLeftWidth()
,setBottomLeftWidth(double)
-
setBottomLeftWidth
public void setBottomLeftWidth(double bottomLeftWidth)
Sets the value of the property bottomLeftWidth.- Property description:
-
getBottomRightHeight
public double getBottomRightHeight()
Gets the value of the property bottomRightHeight.- Property description:
-
bottomRightHeightProperty
public DoubleProperty bottomRightHeightProperty()
-
setBottomRightHeight
public void setBottomRightHeight(double bottomRightHeight)
Sets the value of the property bottomRightHeight.- Property description:
-
getBottomRightWidth
public double getBottomRightWidth()
Gets the value of the property bottomRightWidth.- Property description:
-
bottomRightWidthProperty
public DoubleProperty bottomRightWidthProperty()
- See Also:
getBottomRightWidth()
,setBottomRightWidth(double)
-
setBottomRightWidth
public void setBottomRightWidth(double bottomRightWidth)
Sets the value of the property bottomRightWidth.- Property description:
-
calculateShape
protected void calculateShape()
- Specified by:
calculateShape
in classAbstractSilhouette
-
-