Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Draws a star shape. A star is defined by two radii and a number of branches. Each branch spans between the two radii. The inner radius is the distance between the center of the star and the origin of the branches. The outer radius is the distance between the center of the star and the tips of the branches.

Requires graphicsbuilder-ext-swingx and swingx in classpath.

Properties

Property

Defualt Default

Notes

x cx

0 5

 

y cy

0 5

 

ir

5 3

Can not be equal or bigger than or

or

15 8

Can not be equal or smaller than ir

x count

5

Can not be less than 3 2

...

angle

Code Block

star( x: 30, y: 30, ir: 50, or: 80, count: 5, borderColor: 'darkGreen', borderWidth: 2, fill: 'lime' )

Image Removed

0