XJRT Rendering Toolkit 1.0b06

org.autochthonous.graphics.rt
Class Tile

java.lang.Object
  extended byorg.autochthonous.graphics.rt.Tile

public class Tile
extends java.lang.Object

A tile.

By default tiles are repeating. Any image format supported by the JDK can be used together with the ".pix" format generated by the default renderer.

Example:

      <Tile image="tile.gif" repeating="false"/>
 

Document Type Definition:

     <!ENTITY %Boolean  "(true|false)">
     <!ENTITY %String   "CDATA">

     <!ELEMENT Tile EMPTY>
     <!ATTLIST Tile
         image              %String;  #REQUIRED
         repeating          %Boolean; "true">
 


Field Summary
protected static int U
           
protected static int V
           
 
Constructor Summary
Tile(java.awt.Image im)
          default constructor, a tiling with a repeating image.
Tile(java.awt.Image im, boolean repeating)
          constructor, a tiling with an optionally repeating image.
 
Method Summary
 boolean getDeltas(float s, float t, float[] deltas)
          returns the greyscale differentials in s and t for the image at the position s and t
static Tile getInstance(RMLReader in)
           
 Pixel getPixel(float s, float t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

U

protected static final int U
See Also:
Constant Field Values

V

protected static final int V
See Also:
Constant Field Values
Constructor Detail

Tile

public Tile(java.awt.Image im)
default constructor, a tiling with a repeating image.

Parameters:
im - the image to be used for the tiling

Tile

public Tile(java.awt.Image im,
            boolean repeating)
constructor, a tiling with an optionally repeating image.

Parameters:
im - the image to be used for the tiling
repeating - true if we repeat, false if we don't.
Method Detail

getInstance

public static Tile getInstance(RMLReader in)
                        throws java.io.IOException
Throws:
java.io.IOException

getPixel

public Pixel getPixel(float s,
                      float t)

getDeltas

public boolean getDeltas(float s,
                         float t,
                         float[] deltas)
returns the greyscale differentials in s and t for the image at the position s and t


XJRT Rendering Toolkit 1.0b06