Package org.jzy3d.plot2d.rendering
Class AWTGraphicsUtils
java.lang.Object
org.jzy3d.plot2d.rendering.AWTGraphicsUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidForce text to be anti-aliased.static BufferedImagecopy(BufferedImage source) static voiddrawString(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 Coord2dgetPixelScale(Graphics2D g2d) static voidstatic BufferedImagescale(BufferedImage in, float x, float y) static intstringWidth(Graphics2D g2d, String string) static intstringWidth(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
-