public class GraphicUtils extends java.lang.Object
|Constructor and Description|
|Modifier and Type||Method and Description|
Creates a clipped image from the given shape.
Creates a rounded clipped shape with the given shapeWidth, shapeHeight, arc width and arc height.
Paints border glow over the given clipShape with the given glow high and low colors and the given glowWidth.
public static java.awt.Shape createRoundedClipShape(int shapeWidth, int shapeHeight, int arcW, int arcH)
shapeWidth- the width of the shape to create
shapeHeight- the height of the shape to create
arcW- the width of the arc to use to round the corners of the newly created shape
arcH- the height of the arc to use to round the corners of the newly created shape
public static java.awt.image.BufferedImage createClipImage(java.awt.Graphics2D g, java.awt.Shape shape)
shape- the shape from which to create the image
g- the Graphics object giving access to the graphics device configuration
public static void paintBorderGlow(java.awt.Graphics2D g2, int glowWidth, java.awt.Shape clipShape, java.awt.Color glowOuterHigh, java.awt.Color glowOuterLow)
g2- the Graphics object to use for painting
glowWidth- the width of the glow
clipShape- the shape where to paint the glow
glowOuterHigh- the color which will paint the higher glow
glowOuterLow- the color which will paint the lower glow
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.