- java.lang.Object
-
- org.kordamp.jsilhouette.javafx.AbstractSilhouette
-
- org.kordamp.jsilhouette.javafx.AbstractCenteredSilhouette
-
- org.kordamp.jsilhouette.javafx.Star
-
- All Implemented Interfaces:
CenteredSilhouette
,Silhouette
public class Star extends AbstractCenteredSilhouette
StarDefines a star shape.
Constraints
- ir <= or
- ir > 0 && or > 0
- sides >= 2
Style Classes
- silhouette
- silhouette-star
- Author:
- Andres Almiray
-
-
Property Summary
Properties Type Property Description DoubleProperty
ir
DoubleProperty
or
IntegerProperty
sides
-
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 void
calculateShape()
double
getIr()
Gets the value of the property ir.double
getOr()
Gets the value of the property or.int
getSides()
Gets the value of the property sides.DoubleProperty
irProperty()
DoubleProperty
orProperty()
void
setIr(double ir)
Sets the value of the property ir.void
setOr(double or)
Sets the value of the property or.void
setSides(int sides)
Sets the value of the property sides.IntegerProperty
sidesProperty()
-
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
-
or
public DoubleProperty orProperty
- See Also:
getOr()
,setOr(double)
-
ir
public DoubleProperty irProperty
- See Also:
getIr()
,setIr(double)
-
sides
public IntegerProperty sidesProperty
- See Also:
getSides()
,setSides(int)
-
-
Method Detail
-
getOr
public double getOr()
Gets the value of the property or.- Property description:
-
orProperty
public DoubleProperty orProperty()
- See Also:
getOr()
,setOr(double)
-
setOr
public void setOr(double or)
Sets the value of the property or.- Property description:
-
getIr
public double getIr()
Gets the value of the property ir.- Property description:
-
irProperty
public DoubleProperty irProperty()
- See Also:
getIr()
,setIr(double)
-
setIr
public void setIr(double ir)
Sets the value of the property ir.- Property description:
-
getSides
public int getSides()
Gets the value of the property sides.- Property description:
-
sidesProperty
public IntegerProperty sidesProperty()
- See Also:
getSides()
,setSides(int)
-
setSides
public void setSides(int sides)
Sets the value of the property sides.- Property description:
-
calculateShape
protected void calculateShape()
- Specified by:
calculateShape
in classAbstractSilhouette
-
-