Package org.jzy3d.plot2d.rendering
Class AWTGraphicsUtils
java.lang.Object
org.jzy3d.plot2d.rendering.AWTGraphicsUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
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
static BufferedImage
scale
(BufferedImage in, float x, float y) static int
stringWidth
(Graphics2D g2d, String string) static int
stringWidth
(String string)
-
Constructor Details
-
AWTGraphicsUtils
public AWTGraphicsUtils()
-
-
Method Details
-
scale
-
copy
-
configureRenderingHints
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
-
stringWidth
-
printGraphicParameters
-
getPixelScale
-