/*
* SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package net.java.sip.communicator.impl.gui.utils;
import java.awt.*;
/**
* Through the AntialiasingManager the developer could activate the
* antialiasing mechanism when painting. The method that do the job is
* the activateAntialiasing
method. It takes a Graphics
* object and activates the antialiasing for it.
*
* @author Yana Stamcheva
*/
public class AntialiasingManager {
/**
* Activates the antialiasing mechanism for the given Graphics
* object.
* @param g The Graphics object.
*/
public static void activateAntialiasing(Graphics g) {
Graphics2D g2d = (Graphics2D) g;
g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
}
}