astex
Class Texture

java.lang.Object
  extended by astex.Texture

public class Texture
extends java.lang.Object


Constructor Summary
Texture()
           
Texture(int w, int h)
           
Texture(java.lang.String filename)
          Load texture from a file.
Texture(java.net.URL docURL, java.lang.String filename)
          Load texture from url.
 
Method Summary
 void fillValues(java.lang.String[] colors, int tc)
          Fill values with specified colors along texture coordinate.
static Texture lipophilicityTexture()
           
static java.awt.Image loadImage(java.lang.String resource)
          Create an image from a file/url as appropriate.
static Texture loadTexture(java.lang.String resource)
          Load a texture from file/url as appropriate.
static void setDocumentBase(java.net.URL db)
          Set the document base.
 void setSize(int w, int h)
          Resample the texture to the specified size.
static Texture simpleTexture()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Texture

public Texture(int w,
               int h)

Texture

public Texture()

Texture

public Texture(java.net.URL docURL,
               java.lang.String filename)
Load texture from url.


Texture

public Texture(java.lang.String filename)
Load texture from a file.

Method Detail

setDocumentBase

public static void setDocumentBase(java.net.URL db)
Set the document base.


lipophilicityTexture

public static Texture lipophilicityTexture()

simpleTexture

public static Texture simpleTexture()

fillValues

public void fillValues(java.lang.String[] colors,
                       int tc)
Fill values with specified colors along texture coordinate.


setSize

public void setSize(int w,
                    int h)
Resample the texture to the specified size.


loadImage

public static java.awt.Image loadImage(java.lang.String resource)
Create an image from a file/url as appropriate.


loadTexture

public static Texture loadTexture(java.lang.String resource)
Load a texture from file/url as appropriate.