StarPentagon
Factory object for creating star-shaped pentagons.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
StarPentagon.type
Members list
Value members
Concrete methods
Creates a star pentagon with specified dimensions, fill, and stroke styles.
Creates a star pentagon with specified dimensions, fill, and stroke styles.
Value parameters
- cuspRadius
-
Radius from the center to the inner corners of the star.
- fillStyle
-
Optional fill style for the star pentagon.
- height
-
Height of the bounding box of the star pentagon.
- strokeStyle
-
Optional stroke style for the star pentagon.
- width
-
Width of the bounding box of the star pentagon.
Attributes
- Returns
-
A
VectorGraphic
representing the star pentagon. - Throws
-
IllegalArgumentException
If any of the dimensions are negative.
Creates a star pentagon with specified dimensions, center position, fill, and stroke styles.
Creates a star pentagon with specified dimensions, center position, fill, and stroke styles.
Value parameters
- center
-
Center position of the star pentagon.
- cuspRadius
-
Radius from the center to the inner corners of the star.
- fillStyle
-
Optional fill style for the star pentagon.
- height
-
Height of the bounding box of the star pentagon.
- strokeStyle
-
Optional stroke style for the star pentagon.
- width
-
Width of the bounding box of the star pentagon.
Attributes
- Returns
-
A
VectorGraphic
representing the star pentagon centered at the given position. - Throws
-
IllegalArgumentException
If any of the dimensions are negative.
Creates a star pentagon with specified circumradius, cusp radius, center position, fill, and stroke styles.
Creates a star pentagon with specified circumradius, cusp radius, center position, fill, and stroke styles.
Value parameters
- center
-
Center position of the star pentagon.
- circumradius
-
Radius from the center to the outer corners of the star.
- cuspRadius
-
Radius from the center to the inner corners of the star.
- fillStyle
-
Optional fill style for the star pentagon.
- strokeStyle
-
Optional stroke style for the star pentagon.
Attributes
- Returns
-
A
VectorGraphic
representing the star pentagon centered at the given position. - Throws
-
IllegalArgumentException
If either circumradius or cuspRadius are negative.