Try our Java Shapes library to draw custom shapes programmatically.
Java Graphics 2D API provides the basic shapes like Rectangle, Rounded Rectangle,
Ellipse etc, but is not enough. Your java applications or components may require
more custom shapes like Rounded Corner Buttons, Oblong, Stars,Folders etc.
You know that it requires lots of time and energy to calculate coordinates and draw
custom shapes. JShapes provides an elegant solution for drawing these custom shapes requirements.
JShapes provides basic and complex shapes often used in Java GUI
applications and Components. The shapes library is self contained and no dependencies
on other framework or components. So you can easily integrate with your Java Applications
or Components. It definitely saves your time and money.
The following code shows a simple example of how to create a shape from this library. The shape can be filled and stroked with custom paints such as Gradient Paint, Texture Paint etc.
// 1. Create a Diamond Shape
Diamond shape = new Diamond(bounds);
// 2. Fill Shape
g2.fill( shape ) ;
// 3. Draw Shape
g2.draw( shape ) ;
Here are some of many reasons to choose our Java Shapes Library for your Java applications and components.
Copyright © 2012 - www.jshapes.com - All rights reserved.