Enabled antialiasing in visualizer paint.

This commit is contained in:
nifi 2010-01-13 12:29:10 +00:00
parent 00d6ae56b6
commit 313f857135

View File

@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: Visualizer.java,v 1.11 2009/10/16 13:14:54 fros4943 Exp $
* $Id: Visualizer.java,v 1.12 2010/01/13 12:29:10 nifi Exp $
*/
package se.sics.cooja.plugins;
@ -36,8 +36,10 @@ import java.awt.Color;
import java.awt.Cursor;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.MouseInfo;
import java.awt.Point;
import java.awt.RenderingHints;
import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.Transferable;
import java.awt.datatransfer.UnsupportedFlavorException;
@ -203,6 +205,7 @@ public class Visualizer extends VisPlugin {
resetViewport--;
}
((Graphics2D)g).setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
for (VisualizerSkin skin: currentSkins) {
skin.paintBeforeMotes(g);
}