public class SineStarFactory extends GeometricShapeFactory
| Constructor and Description |
|---|
SineStarFactory()
Creates a factory which will create sine stars using the default
GeometryFactory. |
SineStarFactory(GeometryFactory geomFact)
Creates a factory which will create sine stars using the given
GeometryFactory. |
| Modifier and Type | Method and Description |
|---|---|
Geometry |
createSineStar()
Generates the geometry for the sine star
|
void |
setArmLengthRatio(double armLengthRatio)
Sets the ration of the length of each arm to the distance from the tip
of the arm to the centre of the star.
|
void |
setNumArms(int numArms)
Sets the number of arms in the star
|
createArc, createArcPolygon, createCircle, createEllipse, createRectangle, createSquircle, createSupercircle, setBase, setCentre, setEnvelope, setHeight, setNumPoints, setRotation, setSize, setWidthpublic SineStarFactory()
GeometryFactory.public SineStarFactory(GeometryFactory geomFact)
GeometryFactory.geomFact - the factory to usepublic void setNumArms(int numArms)
numArms - the number of arms to generatepublic void setArmLengthRatio(double armLengthRatio)
armLengthRatio - public Geometry createSineStar()
Copyright © 2018. All rights reserved.