|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alee.utils.GraphicsUtils
public class GraphicsUtils
This class provides a set of utilities to work with Graphics2D.
Constructor Summary | |
---|---|
GraphicsUtils()
|
Method Summary | |
---|---|
static java.lang.Object |
disableAntialias(java.awt.Graphics g)
|
static java.lang.Object |
disableAntialias(java.awt.Graphics2D g2d)
|
static void |
drawShade(java.awt.Graphics2D g2d,
java.awt.Shape shape,
java.awt.Color shadeColor,
int width)
Draws web styled shade using specified shape |
static void |
drawShade(java.awt.Graphics2D g2d,
java.awt.Shape shape,
java.awt.Color shadeColor,
int width,
boolean round)
|
static void |
drawShade(java.awt.Graphics2D g2d,
java.awt.Shape shape,
java.awt.Color shadeColor,
int width,
java.awt.Shape clip)
|
static void |
drawShade(java.awt.Graphics2D g2d,
java.awt.Shape shape,
java.awt.Color shadeColor,
int width,
java.awt.Shape clip,
boolean round)
|
static void |
drawShade(java.awt.Graphics2D g2d,
java.awt.Shape shape,
ShadeType shadeType,
java.awt.Color shadeColor,
int width)
|
static void |
drawShade(java.awt.Graphics2D g2d,
java.awt.Shape shape,
ShadeType shadeType,
java.awt.Color shadeColor,
int width,
boolean round)
|
static void |
drawShade(java.awt.Graphics2D g2d,
java.awt.Shape shape,
ShadeType shadeType,
java.awt.Color shadeColor,
int width,
java.awt.Shape clip)
|
static void |
drawShade(java.awt.Graphics2D g2d,
java.awt.Shape shape,
ShadeType shadeType,
java.awt.Color shadeColor,
int width,
java.awt.Shape clip,
boolean round)
|
static java.awt.Stroke |
getStroke(int width)
|
static java.awt.Stroke |
getStroke(int width,
int cap)
|
static java.awt.Stroke |
getStroke(int width,
int cap,
int join)
|
static java.util.Map |
getSystemTextHints()
|
static java.awt.Shape |
intersectClip(java.awt.Graphics2D g2d,
java.awt.Shape clip)
Setting clip Shape by taking old clip Shape into account |
static java.awt.Shape |
intersectClip(java.awt.Graphics2D g2d,
java.awt.Shape clip,
boolean shouldSetup)
|
static void |
restoreAntialias(java.awt.Graphics2D g2d,
java.lang.Object old)
|
static void |
restoreAntialias(java.awt.Graphics g,
java.lang.Object old)
|
static void |
restoreClip(java.awt.Graphics g,
java.awt.Shape clip)
|
static void |
restoreClip(java.awt.Graphics g,
java.awt.Shape clip,
boolean shouldRestore)
|
static void |
restoreComposite(java.awt.Graphics2D g2d,
java.awt.Composite composite)
|
static void |
restoreComposite(java.awt.Graphics2D g2d,
java.awt.Composite composite,
boolean shouldRestore)
|
static void |
restoreFont(java.awt.Graphics g,
java.awt.Font font)
|
static void |
restoreImageQuality(java.awt.Graphics2D g2d,
java.lang.Object old)
|
static void |
restoreImageQuality(java.awt.Graphics g,
java.lang.Object old)
|
static void |
restoreStroke(java.awt.Graphics2D g2d,
java.awt.Stroke stroke)
|
static void |
restoreStroke(java.awt.Graphics2D g2d,
java.awt.Stroke stroke,
boolean shouldRestore)
|
static java.awt.Composite |
setupAlphaComposite(java.awt.Graphics2D g2d,
java.awt.Composite composeWith,
java.lang.Float alpha)
|
static java.awt.Composite |
setupAlphaComposite(java.awt.Graphics2D g2d,
java.awt.Composite composeWith,
java.lang.Float alpha,
boolean shouldSetup)
|
static java.awt.Composite |
setupAlphaComposite(java.awt.Graphics2D g2d,
java.lang.Float alpha)
Setting AlphaComposite by taking old AlphaComposite settings into account |
static java.awt.Composite |
setupAlphaComposite(java.awt.Graphics2D g2d,
java.lang.Float alpha,
boolean shouldSetup)
|
static java.lang.Object |
setupAntialias(java.awt.Graphics g)
Setting antialias on |
static java.lang.Object |
setupAntialias(java.awt.Graphics2D g2d)
|
static java.awt.Font |
setupFont(java.awt.Graphics g,
java.awt.Font font)
Setting font |
static java.lang.Object |
setupImageQuality(java.awt.Graphics g)
Setting image quality on |
static java.lang.Object |
setupImageQuality(java.awt.Graphics2D g2d)
|
static java.awt.Stroke |
setupStroke(java.awt.Graphics2D g2d,
java.awt.Stroke stroke)
Setting new stroke |
static java.awt.Stroke |
setupStroke(java.awt.Graphics2D g2d,
java.awt.Stroke stroke,
boolean shouldSetup)
|
static void |
setupSystemTextHints(java.awt.Graphics g)
|
static void |
setupSystemTextHints(java.awt.Graphics2D g2d)
|
static java.awt.Shape |
subtractClip(java.awt.Graphics g,
java.awt.Shape clip)
|
static java.awt.Shape |
subtractClip(java.awt.Graphics g,
java.awt.Shape clip,
boolean shouldSetup)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GraphicsUtils()
Method Detail |
---|
public static java.lang.Object setupAntialias(java.awt.Graphics g)
public static java.lang.Object setupAntialias(java.awt.Graphics2D g2d)
public static java.lang.Object disableAntialias(java.awt.Graphics g)
public static java.lang.Object disableAntialias(java.awt.Graphics2D g2d)
public static void restoreAntialias(java.awt.Graphics g, java.lang.Object old)
public static void restoreAntialias(java.awt.Graphics2D g2d, java.lang.Object old)
public static java.util.Map getSystemTextHints()
public static void setupSystemTextHints(java.awt.Graphics g)
public static void setupSystemTextHints(java.awt.Graphics2D g2d)
public static java.awt.Composite setupAlphaComposite(java.awt.Graphics2D g2d, java.lang.Float alpha)
public static java.awt.Composite setupAlphaComposite(java.awt.Graphics2D g2d, java.lang.Float alpha, boolean shouldSetup)
public static java.awt.Composite setupAlphaComposite(java.awt.Graphics2D g2d, java.awt.Composite composeWith, java.lang.Float alpha)
public static java.awt.Composite setupAlphaComposite(java.awt.Graphics2D g2d, java.awt.Composite composeWith, java.lang.Float alpha, boolean shouldSetup)
public static void restoreComposite(java.awt.Graphics2D g2d, java.awt.Composite composite)
public static void restoreComposite(java.awt.Graphics2D g2d, java.awt.Composite composite, boolean shouldRestore)
public static java.awt.Stroke setupStroke(java.awt.Graphics2D g2d, java.awt.Stroke stroke)
public static java.awt.Stroke setupStroke(java.awt.Graphics2D g2d, java.awt.Stroke stroke, boolean shouldSetup)
public static void restoreStroke(java.awt.Graphics2D g2d, java.awt.Stroke stroke)
public static void restoreStroke(java.awt.Graphics2D g2d, java.awt.Stroke stroke, boolean shouldRestore)
public static java.lang.Object setupImageQuality(java.awt.Graphics g)
public static java.lang.Object setupImageQuality(java.awt.Graphics2D g2d)
public static void restoreImageQuality(java.awt.Graphics g, java.lang.Object old)
public static void restoreImageQuality(java.awt.Graphics2D g2d, java.lang.Object old)
public static java.awt.Font setupFont(java.awt.Graphics g, java.awt.Font font)
public static void restoreFont(java.awt.Graphics g, java.awt.Font font)
public static java.awt.Shape intersectClip(java.awt.Graphics2D g2d, java.awt.Shape clip)
public static java.awt.Shape intersectClip(java.awt.Graphics2D g2d, java.awt.Shape clip, boolean shouldSetup)
public static java.awt.Shape subtractClip(java.awt.Graphics g, java.awt.Shape clip)
public static java.awt.Shape subtractClip(java.awt.Graphics g, java.awt.Shape clip, boolean shouldSetup)
public static void restoreClip(java.awt.Graphics g, java.awt.Shape clip)
public static void restoreClip(java.awt.Graphics g, java.awt.Shape clip, boolean shouldRestore)
public static java.awt.Stroke getStroke(int width)
public static java.awt.Stroke getStroke(int width, int cap)
public static java.awt.Stroke getStroke(int width, int cap, int join)
public static void drawShade(java.awt.Graphics2D g2d, java.awt.Shape shape, java.awt.Color shadeColor, int width)
public static void drawShade(java.awt.Graphics2D g2d, java.awt.Shape shape, ShadeType shadeType, java.awt.Color shadeColor, int width)
public static void drawShade(java.awt.Graphics2D g2d, java.awt.Shape shape, java.awt.Color shadeColor, int width, java.awt.Shape clip)
public static void drawShade(java.awt.Graphics2D g2d, java.awt.Shape shape, ShadeType shadeType, java.awt.Color shadeColor, int width, java.awt.Shape clip)
public static void drawShade(java.awt.Graphics2D g2d, java.awt.Shape shape, java.awt.Color shadeColor, int width, boolean round)
public static void drawShade(java.awt.Graphics2D g2d, java.awt.Shape shape, ShadeType shadeType, java.awt.Color shadeColor, int width, boolean round)
public static void drawShade(java.awt.Graphics2D g2d, java.awt.Shape shape, java.awt.Color shadeColor, int width, java.awt.Shape clip, boolean round)
public static void drawShade(java.awt.Graphics2D g2d, java.awt.Shape shape, ShadeType shadeType, java.awt.Color shadeColor, int width, java.awt.Shape clip, boolean round)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |