Class SEGraphUtils

java.lang.Object
org.gvsig.compat.se.lang.SEGraphUtils
All Implemented Interfaces:
org.gvsig.compat.lang.GraphicsUtils

public class SEGraphUtils extends Object implements org.gvsig.compat.lang.GraphicsUtils
JSE (Desktop Java) implementation of GraphicsUtils
See Also:
  • GraphicsUtils
  • Constructor Details

    • SEGraphUtils

      public SEGraphUtils()
  • Method Details

    • copyBufferedImage

      public BufferedImage copyBufferedImage(BufferedImage img)
      Specified by:
      copyBufferedImage in interface org.gvsig.compat.lang.GraphicsUtils
    • createBufferedImage

      public BufferedImage createBufferedImage(int w, int h, int type)
      Specified by:
      createBufferedImage in interface org.gvsig.compat.lang.GraphicsUtils
    • createPrintAttributes

      public org.gvsig.compat.print.PrintAttributes createPrintAttributes()
      Specified by:
      createPrintAttributes in interface org.gvsig.compat.lang.GraphicsUtils
    • deriveFont

      public Font deriveFont(Font srcfont, float newheight)
      Specified by:
      deriveFont in interface org.gvsig.compat.lang.GraphicsUtils
    • getScreenDPI

      public int getScreenDPI()
      Tries to use DPI value from gvSIG preferences. If this does not exist, gets value from Java Toolkit.
      Specified by:
      getScreenDPI in interface org.gvsig.compat.lang.GraphicsUtils
    • translate

      public void translate(Graphics2D g, double x, double y)
      Specified by:
      translate in interface org.gvsig.compat.lang.GraphicsUtils
    • setRenderingHintsForDrawing

      public void setRenderingHintsForDrawing(Graphics2D g)
      Specified by:
      setRenderingHintsForDrawing in interface org.gvsig.compat.lang.GraphicsUtils
    • setRenderingHintsForPrinting

      public void setRenderingHintsForPrinting(Graphics2D g)
      Specified by:
      setRenderingHintsForPrinting in interface org.gvsig.compat.lang.GraphicsUtils