Package org.jzy3d.plot2d.rendering
Class AWTGraphicsUtils
- java.lang.Object
-
- org.jzy3d.plot2d.rendering.AWTGraphicsUtils
-
public class AWTGraphicsUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description AWTGraphicsUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
configureRenderingHints(Graphics2D g2d)
Force text to be anti-aliased.static BufferedImage
copy(BufferedImage source)
static void
drawString(Graphics2D g2d, Font font, boolean useOSFontRendering, String string, int x, int y)
A draw string method allowing to bypass OS font rendering if noticing font rendering glitches.static Coord2d
getPixelScale(Graphics2D g2d)
static void
printGraphicParameters(Graphics2D g2)
static BufferedImage
scale(BufferedImage in, float x, float y)
static int
stringWidth(Graphics2D g2d, String string)
-
-
-
Method Detail
-
scale
public static BufferedImage scale(BufferedImage in, float x, float y)
-
copy
public static BufferedImage copy(BufferedImage source)
-
configureRenderingHints
public static void configureRenderingHints(Graphics2D g2d)
Force text to be anti-aliased.
-
drawString
public static void drawString(Graphics2D g2d, Font font, boolean useOSFontRendering, String string, int x, int y)
A draw string method allowing to bypass OS font rendering if noticing font rendering glitches. It may be worth invokingconfigureRenderingHints(Graphics2D)
right before.
-
stringWidth
public static int stringWidth(Graphics2D g2d, String string)
-
printGraphicParameters
public static void printGraphicParameters(Graphics2D g2)
-
getPixelScale
public static Coord2d getPixelScale(Graphics2D g2d)
-
-