public class Stars extends Object
| Modifier and Type | Method and Description |
|---|---|
static Shape |
createStarShape(double centerX,
double centerY,
double innerRadius,
double outerRadius,
int numRays)
Create a star shape from the given parameters.
|
static Shape |
createStarShape(double centerX,
double centerY,
double innerRadius,
double outerRadius,
int numRays,
double startAngleRad)
Create a star shape from the given parameters.
|
static Shape |
createStarShape(double centerX,
double centerY,
double innerRadius,
double outerRadius,
int numRays,
double startAngleRad,
double innerRoundness,
double outerRoundness)
Create a star shape from the given parameters.
|
public static Shape createStarShape(double centerX, double centerY, double innerRadius, double outerRadius, int numRays)
centerX - The x coordinate of the centercenterY - The y coordinate of the centerinnerRadius - The inner radius of the starouterRadius - The outer radius of the starnumRays - The number of rays that the star should havepublic static Shape createStarShape(double centerX, double centerY, double innerRadius, double outerRadius, int numRays, double startAngleRad)
centerX - The x coordinate of the centercenterY - The y coordinate of the centerinnerRadius - The inner radius of the starouterRadius - The outer radius of the starnumRays - The number of rays that the star should havestartAngleRad - The angle, in radians, where the
first ray should start (referring to the positive x-axis)public static Shape createStarShape(double centerX, double centerY, double innerRadius, double outerRadius, int numRays, double startAngleRad, double innerRoundness, double outerRoundness)
centerX - The x coordinate of the centercenterY - The y coordinate of the centerinnerRadius - The inner radius of the starouterRadius - The outer radius of the starnumRays - The number of rays that the star should havestartAngleRad - The angle, in radians, where the
first ray should start (referring to the positive x-axis)innerRoundness - A roundness value between 0.0 and
1.0, for the inner corners of the star.outerRoundness - A roundness value between 0.0 and
1.0, for the outer corners (ray tips) of the star.Copyright © 2017. All rights reserved.