- java.lang.Object
-
- org.kordamp.jsilhouette.javafx.AbstractSilhouette
-
- org.kordamp.jsilhouette.javafx.AbstractCenteredSilhouette
-
- org.kordamp.jsilhouette.javafx.RegularPolygon
-
- All Implemented Interfaces:
CenteredSilhouette,Silhouette
public class RegularPolygon extends AbstractCenteredSilhouette
RegularPlygonDefines a regular polygon shape.
Constraints
- sides > 2
Style Classes
- silhouette
- silhouette-regular-polygon
- Author:
- Andres Almiray
-
-
Property Summary
Properties Type Property Description DoublePropertyradiusIntegerPropertysides-
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
-
-
Constructor Summary
Constructors Constructor Description RegularPolygon()RegularPolygon(double cx, double cy, double radius, int sides)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcalculateShape()doublegetRadius()Gets the value of the property radius.intgetSides()Gets the value of the property sides.DoublePropertyradiusProperty()voidsetRadius(double radius)Sets the value of the property radius.voidsetSides(int sides)Sets the value of the property sides.IntegerPropertysidesProperty()-
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)
-
sides
public IntegerProperty sidesProperty
- See Also:
getSides(),setSides(int)
-
-
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:
-
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:
calculateShapein classAbstractSilhouette
-
-