Class AWTGraphicsUtils

java.lang.Object
org.jzy3d.plot2d.rendering.AWTGraphicsUtils

public class AWTGraphicsUtils extends Object
  • Constructor Details

    • AWTGraphicsUtils

      public AWTGraphicsUtils()
  • Method Details

    • 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 invoking configureRenderingHints(Graphics2D) right before.
    • stringWidth

      public static int stringWidth(String string)
    • stringWidth

      public static int stringWidth(Graphics2D g2d, String string)
    • printGraphicParameters

      public static void printGraphicParameters(Graphics2D g2)
    • getPixelScale

      public static Coord2d getPixelScale(Graphics2D g2d)