Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.arranger.jarl.test
Class GradientLoaderTest  view GradientLoaderTest download GradientLoaderTest.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bycom.arranger.jarl.test.GradientLoaderTest
All Implemented Interfaces:
junit.framework.Test

public class GradientLoaderTest
extends junit.framework.TestCase

GradientLoaderTest created on Mar 25, 2003


Nested Class Summary
protected static class GradientLoaderTest.ImageFilterObserver
           
 
Field Summary
static java.lang.String GRAD_FILE
           
protected  int m_circleHeight
           
protected  int m_circleWidth
           
protected  int m_imageHeight
           
protected  int m_imageWidth
           
protected  int m_rectHeight
           
protected  int m_rectHeight2
           
protected  int m_rectWidth
           
protected  int m_rectWidth2
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
GradientLoaderTest()
           
 
Method Summary
protected  java.awt.Image createImage()
           
protected  java.awt.Image dofilter(java.awt.image.ImageFilter imageFilter, java.awt.Image image, int width, int height)
           
protected  void paintCircle(java.awt.Graphics2D graphics2D, int width, int height)
           
protected  void paintRectangle(java.awt.Graphics2D graphics2D, int width, int height, java.awt.Color color)
           
protected  java.awt.Image prepareImage(java.awt.Image image, int width, int height)
           
 void testGradient()
           
 void testShift()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

GRAD_FILE

public static final java.lang.String GRAD_FILE
See Also:
Constant Field Values

m_imageWidth

protected int m_imageWidth

m_imageHeight

protected int m_imageHeight

m_circleWidth

protected int m_circleWidth

m_circleHeight

protected int m_circleHeight

m_rectWidth

protected int m_rectWidth

m_rectHeight

protected int m_rectHeight

m_rectWidth2

protected int m_rectWidth2

m_rectHeight2

protected int m_rectHeight2
Constructor Detail

GradientLoaderTest

public GradientLoaderTest()
Method Detail

testGradient

public void testGradient()
                  throws java.lang.Exception

createImage

protected java.awt.Image createImage()

paintRectangle

protected void paintRectangle(java.awt.Graphics2D graphics2D,
                              int width,
                              int height,
                              java.awt.Color color)

paintCircle

protected void paintCircle(java.awt.Graphics2D graphics2D,
                           int width,
                           int height)

dofilter

protected java.awt.Image dofilter(java.awt.image.ImageFilter imageFilter,
                                  java.awt.Image image,
                                  int width,
                                  int height)
                           throws java.lang.InterruptedException

prepareImage

protected java.awt.Image prepareImage(java.awt.Image image,
                                      int width,
                                      int height)
                               throws java.lang.InterruptedException

testShift

public void testShift()
               throws java.lang.Exception