stsci.tools
Class Tools

java.lang.Object
  |
  +--stsci.tools.Tools

public class Tools
extends java.lang.Object


Constructor Summary
Tools()
           
 
Method Summary
static java.lang.String buffer(int n, int i)
           
static java.lang.String buffer(java.lang.String s, int i)
          Buffer a string to given length
static void dumpImage(java.lang.String fname, java.awt.image.BufferedImage bufImg)
          output image to file as jpg
static java.awt.image.BufferedImage grabImage(java.awt.Component c)
          contrruct appropriate image of x y simension and grab compnent into it (call pait basically )
static java.awt.image.BufferedImage grabImage(java.awt.Component c, int width, int height)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tools

public Tools()
Method Detail

buffer

public static final java.lang.String buffer(java.lang.String s,
                                            int i)
Buffer a string to given length

buffer

public static final java.lang.String buffer(int n,
                                            int i)

dumpImage

public static final void dumpImage(java.lang.String fname,
                                   java.awt.image.BufferedImage bufImg)
output image to file as jpg

grabImage

public static final java.awt.image.BufferedImage grabImage(java.awt.Component c)
contrruct appropriate image of x y simension and grab compnent into it (call pait basically )

grabImage

public static final java.awt.image.BufferedImage grabImage(java.awt.Component c,
                                                           int width,
                                                           int height)