public class SineStarFactory extends GeometricShapeFactory
GeometricShapeFactory.Dimensions
Modifier and Type | Field and Description |
---|---|
protected double |
armLengthRatio |
protected int |
numArms |
dim, geomFact, nPts, precModel, rotationAngle
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
|
coord, coordTrans, createArc, createArcPolygon, createCircle, createEllipse, createRectangle, createSquircle, createSupercircle, rotate, setBase, setCentre, setEnvelope, setHeight, setNumPoints, setRotation, setSize, setWidth
public SineStarFactory()
GeometryFactory
.geomFact
- the factory to usepublic 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 © 2016. All rights reserved.