edu.swri.swiftvis.plot.util
Class PlottingHelper

java.lang.Object
  extended by edu.swri.swiftvis.plot.util.PlottingHelper

public class PlottingHelper
extends java.lang.Object

This utility class has methods in it that can be useful for different plotting routines. This way people don't have to duplicate code for getting things to draw. These methods also try to get around some of the limitations of Java2D like the fact that Basic stroke does not go below a certain size.


Constructor Summary
PlottingHelper()
           
 
Method Summary
static void drawLine(java.awt.Graphics2D g, double x1, double y1, double x2, double y2, double xThick, double yThick)
           
static void fillQuadArea(java.awt.Graphics2D g, double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4)
           
static java.awt.Color mixColors(java.awt.Color c1, java.awt.Color c2, java.awt.Color c3)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlottingHelper

public PlottingHelper()
Method Detail

drawLine

public static void drawLine(java.awt.Graphics2D g,
                            double x1,
                            double y1,
                            double x2,
                            double y2,
                            double xThick,
                            double yThick)

fillQuadArea

public static void fillQuadArea(java.awt.Graphics2D g,
                                double x1,
                                double y1,
                                double x2,
                                double y2,
                                double x3,
                                double y3,
                                double x4,
                                double y4)

mixColors

public static java.awt.Color mixColors(java.awt.Color c1,
                                       java.awt.Color c2,
                                       java.awt.Color c3)