Teppefall

com.teppefall.ds.render2d
Class RenderTools

java.lang.Object
  extended by com.teppefall.ds.render2d.RenderTools

public class RenderTools
extends java.lang.Object


Field Summary
 java.awt.Color background
           
 java.awt.GradientPaint gradient
           
 java.awt.GradientPaint redtowhite
           
 
Constructor Summary
RenderTools(RenderBackground e)
           
 
Method Summary
 void background(java.awt.Graphics2D g)
           
static void backgroundComposite(java.awt.Graphics g, java.awt.image.BufferedImage avatar)
           
static java.awt.Color colorPicker(java.awt.Graphics2D g, int x, int y)
          Hent ut farge.. lag en array av bilde pixler ?
 void fontTest(java.awt.Graphics2D g)
           
 void foreground(java.awt.Graphics2D g)
           
 java.awt.Color getBackground()
           
static java.awt.Graphics2D java2d(java.awt.Graphics g)
           
static java.awt.Graphics2D java2d(java.awt.Graphics g, float alpha)
           
static void later(java.awt.Graphics2D g, java.lang.String label, int x, int y, int width, int height)
           
static java.awt.image.BufferedImage loadCompatibleImage(java.net.URL resource)
           
static void main(java.lang.String[] args)
           
 void miscTest(java.awt.Graphics2D g)
           
static void nativeFontRendering(java.awt.Graphics2D g)
           
 void paintTest(java.awt.Graphics2D g)
           
static java.awt.Color randomColor()
           
 void setBackground(java.awt.Color background)
           
 void splash(java.awt.Graphics2D g)
           
static int stringWidth(java.lang.String str, java.awt.Graphics g)
           
 java.awt.Image test1(java.awt.Color viewColor, java.awt.Component c)
           
static void testname()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gradient

public java.awt.GradientPaint gradient

background

public java.awt.Color background

redtowhite

public java.awt.GradientPaint redtowhite
Constructor Detail

RenderTools

public RenderTools(RenderBackground e)
Method Detail

nativeFontRendering

public static void nativeFontRendering(java.awt.Graphics2D g)

backgroundComposite

public static void backgroundComposite(java.awt.Graphics g,
                                       java.awt.image.BufferedImage avatar)

loadCompatibleImage

public static java.awt.image.BufferedImage loadCompatibleImage(java.net.URL resource)
                                                        throws java.io.IOException
Throws:
java.io.IOException

background

public void background(java.awt.Graphics2D g)

foreground

public void foreground(java.awt.Graphics2D g)

splash

public void splash(java.awt.Graphics2D g)

fontTest

public void fontTest(java.awt.Graphics2D g)

miscTest

public void miscTest(java.awt.Graphics2D g)

paintTest

public void paintTest(java.awt.Graphics2D g)

java2d

public static java.awt.Graphics2D java2d(java.awt.Graphics g)

java2d

public static java.awt.Graphics2D java2d(java.awt.Graphics g,
                                         float alpha)

later

public static void later(java.awt.Graphics2D g,
                         java.lang.String label,
                         int x,
                         int y,
                         int width,
                         int height)

colorPicker

public static java.awt.Color colorPicker(java.awt.Graphics2D g,
                                         int x,
                                         int y)
Hent ut farge.. lag en array av bilde pixler ? hent ut x,y ?

Parameters:
g -
x -
y -
Returns:

randomColor

public static java.awt.Color randomColor()

stringWidth

public static int stringWidth(java.lang.String str,
                              java.awt.Graphics g)

test1

public java.awt.Image test1(java.awt.Color viewColor,
                            java.awt.Component c)

getBackground

public java.awt.Color getBackground()

setBackground

public void setBackground(java.awt.Color background)

testname

public static void testname()
                     throws java.lang.Exception
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

Teppefall