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

GraphicsBuilder provides new methods for existing Java2D classes.


Color derive( Map )

creates a new color based on this color.

Map must contain any of [red,green,blue,alpha]


BasicStroke derive( Map )

creates a new stroke based on this stroke.

Map must contain any of [width,cap,join,miterlimit,dash,dashphase]


Area plus( Shape )

applies Area.add

enables + operator

Area minus( Shape )

applies Area.subtract

enables - operator

Area and( Shape )

applies Area.intersect

enables & operator

Area xor( Shape )

applies Area.xor

enables ^ operator

Note: shapes also have these 4 operators enabled



Results of your search request can come from various sources: the Groovy website itself, the JIRA issues, the API documentation, as well as a few other interesting Groovy-related blogs.

  By  -  pages  -  views  - last modified