org.xith3d.ui.swingui
Class UISubOverlayBase

java.lang.Object
  extended by org.xith3d.ui.swingui.UISubOverlayBase
Direct Known Subclasses:
UISubOverlay, UISubOverlayOptimized

public class UISubOverlayBase
extends java.lang.Object

Insert package comments here

Originally Coded by David Yazel on Nov 23, 2003 at 11:58:22 AM.


Field Summary
protected  Appearance ap
           
protected  java.awt.Rectangle bounds
           
protected static java.lang.Boolean DEBUG
           
protected  boolean dirty
           
protected static boolean GRID
           
protected  int height
           
protected  int lx
           
protected  int ly
           
protected  UIOverlay overlay
           
protected  Shape3D shape
           
protected  int texHeight
           
protected  int texWidth
           
protected  int ux
           
protected  int uy
           
protected  int width
           
 
Constructor Summary
protected UISubOverlayBase(UIOverlay overlay, int lx, int ly, int ux, int uy)
           
 
Method Summary
protected  void buildShape()
          Build the quad for this overlay
protected  java.awt.Rectangle getBounds()
           
 Shape3D getShape()
          Return the shape
protected static int smallestPower(int value)
          Simple function to return the smallest power of 2 which the value can be contained within
 void swap()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

protected static final java.lang.Boolean DEBUG

GRID

protected static final boolean GRID
See Also:
Constant Field Values

lx

protected final int lx

ly

protected final int ly

ux

protected final int ux

uy

protected final int uy

texWidth

protected final int texWidth

texHeight

protected final int texHeight

width

protected final int width

height

protected final int height

shape

protected Shape3D shape

ap

protected Appearance ap

overlay

protected UIOverlay overlay

bounds

protected java.awt.Rectangle bounds

dirty

protected boolean dirty
Constructor Detail

UISubOverlayBase

protected UISubOverlayBase(UIOverlay overlay,
                           int lx,
                           int ly,
                           int ux,
                           int uy)
Method Detail

getBounds

protected java.awt.Rectangle getBounds()

smallestPower

protected static int smallestPower(int value)
Simple function to return the smallest power of 2 which the value can be contained within


buildShape

protected void buildShape()
Build the quad for this overlay


getShape

public Shape3D getShape()
Return the shape


swap

public void swap()