| java.lang.Object com.jidesoft.swing.FastGradientPainter
FastGradientPainter | class FastGradientPainter (Code) | | |
Method Summary | |
public static void | drawGradient(Graphics2D g2, Shape s, Color startColor, Color endColor, boolean isVertical) Draws a rectangular gradient in a vertical or horizontal direction.
The drawing operations are hardware optimized whenever possible using the
Java2D hardware rendering facilities. |
drawGradient | public static void drawGradient(Graphics2D g2, Shape s, Color startColor, Color endColor, boolean isVertical)(Code) | | Draws a rectangular gradient in a vertical or horizontal direction.
The drawing operations are hardware optimized whenever possible using the
Java2D hardware rendering facilities. The result is gradient rendering
approaching the performance of flat color rendering.
Parameters: g2 - Graphics2D instance to use for rendering Parameters: s - shape confines of gradient Parameters: startColor - starting color for gradient Parameters: endColor - ending color fro gradient Parameters: isVertical - specifies a vertical or horizontal gradient |
|
|