GrapherGUI
Class Util

java.lang.Object
  |
  +--GrapherGUI.Util

public class Util
extends java.lang.Object

Utility functions.


Constructor Summary
Util()
           
 
Method Summary
static javax.swing.ImageIcon createImageIcon(java.lang.String path, java.lang.String description)
          Returns an ImageIcon, or null if the path was invalid.
static java.lang.String formatDouble(double n)
          Format a double to show a double to 3 decimal places
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

formatDouble

public static java.lang.String formatDouble(double n)
Format a double to show a double to 3 decimal places

Returns:
string representation of the input

createImageIcon

public static javax.swing.ImageIcon createImageIcon(java.lang.String path,
                                                    java.lang.String description)
Returns an ImageIcon, or null if the path was invalid.