public class GraphicUtils
extends java.lang.Object
Constructor and Description |
---|
GraphicUtils() |
Modifier and Type | Method and Description |
---|---|
static java.awt.image.BufferedImage |
createClipImage(java.awt.Graphics2D g,
java.awt.Shape shape)
Creates a clipped image from the given shape.
|
static java.awt.Shape |
createRoundedClipShape(int shapeWidth,
int shapeHeight,
int arcW,
int arcH)
Creates a rounded clipped shape with the given shapeWidth,
shapeHeight, arc width and arc height.
|
static void |
paintBorderGlow(java.awt.Graphics2D g2,
int glowWidth,
java.awt.Shape clipShape,
java.awt.Color glowOuterHigh,
java.awt.Color glowOuterLow)
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 createshapeHeight
- the height of the shape to createarcW
- the width of the arc to use to round the corners of the
newly created shapearcH
- the height of the arc to use to round the corners of the
newly created shapepublic static java.awt.image.BufferedImage createClipImage(java.awt.Graphics2D g, java.awt.Shape shape)
shape
- the shape from which to create the imageg
- the Graphics object giving access to the graphics
device configurationpublic 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 paintingglowWidth
- the width of the glowclipShape
- the shape where to paint the glowglowOuterHigh
- the color which will paint the higher glowglowOuterLow
- the color which will paint the lower glow
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.