java.lang.Object
org.scilab.forge.scirenderer.implementation.jogl.utils.G2DShortCuts

public final class G2DShortCuts extends Object
Utility class for common Graphics2D calls.
Author:
Pierre Lando
  • Method Details

    • useColor

      public static void useColor(Graphics2D g2d, Color c)
      Use the given color for drawing.
      Parameters:
      g2d - the Graphics2D where the color will be used.
      c - the given color.
    • useLineAppearance

      public static void useLineAppearance(Graphics2D g2d, Appearance appearance)
      Use the given appearance for drawing lines.
      Parameters:
      g2d - the Graphics2D where the appearance will be used.
      appearance - the given appearance.