com.jeffpalm.image
Class ComponentUtils

java.lang.Object
  extended by com.jeffpalm.image.ComponentUtils
All Implemented Interfaces:
Converter

public final class ComponentUtils
extends java.lang.Object
implements Converter


Method Summary
 java.awt.image.BufferedImage convert(java.lang.Object o)
           
 java.awt.image.BufferedImage convertComponent(java.awt.Component c)
           
static ComponentUtils getInstance()
           
 void save(java.awt.Component c, java.io.File f)
           
 void save(java.awt.Component c, java.io.File f, float quality)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ComponentUtils getInstance()

convert

public final java.awt.image.BufferedImage convert(java.lang.Object o)
Specified by:
convert in interface Converter

save

public final void save(java.awt.Component c,
                       java.io.File f,
                       float quality)
                throws java.lang.Exception
Throws:
java.lang.Exception

save

public final void save(java.awt.Component c,
                       java.io.File f)
                throws java.lang.Exception
Throws:
java.lang.Exception

convertComponent

public final java.awt.image.BufferedImage convertComponent(java.awt.Component c)