- java.lang.Object
-
- org.kordamp.jsilhouette.javafx.AbstractSilhouette
-
- org.kordamp.jsilhouette.javafx.AbstractCenteredSilhouette
-
- org.kordamp.jsilhouette.javafx.Cross
-
- All Implemented Interfaces:
CenteredSilhouette,Silhouette
public class Cross extends AbstractCenteredSilhouette
CrossDefines a cross shape that may have round corners.
Constraints
- 0 <= roundness <= 1
- width <= radius* 2
Style Classes
- silhouette
- silhouette-cross
- Author:
- Andres Almiray
-
-
Property Summary
Properties Type Property Description DoublePropertyradiusDoublePropertyroundnessDoublePropertywidth-
Properties inherited from class org.kordamp.jsilhouette.javafx.AbstractCenteredSilhouette
centerX, centerY
-
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
-
Properties inherited from interface org.kordamp.jsilhouette.javafx.Silhouette
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcalculateShape()doublegetRadius()Gets the value of the property radius.doublegetRoundness()Gets the value of the property roundness.doublegetWidth()Gets the value of the property width.DoublePropertyradiusProperty()DoublePropertyroundnessProperty()voidsetRadius(double radius)Sets the value of the property radius.voidsetRoundness(double roundness)Sets the value of the property roundness.voidsetWidth(double width)Sets the value of the property width.protected doublevalidateRoundness(double roundness)protected doublevalidateWidth(double width, double radius)DoublePropertywidthProperty()-
Methods inherited from class org.kordamp.jsilhouette.javafx.AbstractCenteredSilhouette
centerXProperty, centerYProperty
-
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.CenteredSilhouette
getCenterX, getCenterY, setCenterX, setCenterY
-
Methods inherited from interface org.kordamp.jsilhouette.javafx.Silhouette
addEventHandler, fillProperty, getFill, getId, getOpacity, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getShape, getStroke, getStrokeDashOffset, getStrokeLineCap, getStrokeLineJoin, getStrokeMiterLimit, getStrokeType, getStrokeWidth, getStyle, getTranslateX, getTranslateY, getTranslateZ, idProperty, isManaged, isSmooth, isVisible, managedProperty, opacityProperty, removeEventHandler, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, setFill, setId, setManaged, setOpacity, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setSmooth, setStroke, setStrokeDashOffset, setStrokeLineCap, setStrokeLineJoin, setStrokeMiterLimit, setStrokeType, setStrokeWidth, setStyle, setTranslateX, setTranslateY, setTranslateZ, setVisible, shapeProperty, smoothProperty, strokeDashOffsetProperty, strokeLineCapProperty, strokeLineJoinProperty, strokeMiterLimitProperty, strokeProperty, strokeTypeProperty, strokeWidthProperty, styleProperty, translateXProperty, translateYProperty, translateZProperty, visibleProperty
-
-
-
-
Property Detail
-
radius
public DoubleProperty radiusProperty
- See Also:
getRadius(),setRadius(double)
-
roundness
public DoubleProperty roundnessProperty
- See Also:
getRoundness(),setRoundness(double)
-
width
public DoubleProperty widthProperty
- See Also:
getWidth(),setWidth(double)
-
-
Method Detail
-
getRadius
public double getRadius()
Gets the value of the property radius.- Property description:
-
radiusProperty
public DoubleProperty radiusProperty()
- See Also:
getRadius(),setRadius(double)
-
setRadius
public void setRadius(double radius)
Sets the value of the property radius.- Property description:
-
getRoundness
public double getRoundness()
Gets the value of the property roundness.- Property description:
-
roundnessProperty
public DoubleProperty roundnessProperty()
- See Also:
getRoundness(),setRoundness(double)
-
setRoundness
public void setRoundness(double roundness)
Sets the value of the property roundness.- 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:
-
calculateShape
protected void calculateShape()
- Specified by:
calculateShapein classAbstractSilhouette
-
validateRoundness
protected double validateRoundness(double roundness)
-
validateWidth
protected double validateWidth(double width, double radius)
-
-