Skip to: Site menu | Main content

Groovy 

      Download | Documentation | Developers | Community

An agile dynamic language for the Java Platform

GraphicsBuilder - Shapes - Arc Add comment to Wiki View in Wiki Edit Wiki page Printable Version

Draws an arc defined by a framing rectangle, start angle, angular extent (length of the arc), and a closure type (OPEN, CHORD, or PIE)

Properties

Property Default Notes
x 0  
y 0  
width 0  
height 0  
start 0  
extent 90  
close Arc2D.OPEN value must be any of Arc2D.[OPEN,CHORD,CLOSE] or ['open','chord','close']

Example

arc( x: 0, y: 20, width: 100, height: 100, start: 0, extent: 90,
     borderColor: 'darkViolet', borderWidth: 5, fill: 'pink', close: 'pie' )
arc( x: 100, y: 20, width: 100, height: 100, start: 0, extent: 90,
     borderColor: 'darkViolet', borderWidth: 5, fill: 'pink', close: 'chord' )
arc( x: 200, y: 20, width: 100, height: 100, start: 0, extent: 90,
     borderColor: 'darkViolet', borderWidth: 5, fill: 'pink', close: 'open' )