org.xith3d.ui.hud.utils
Class DefaultDropShadowFactory

java.lang.Object
  extended by org.xith3d.ui.hud.utils.DropShadowFactory
      extended by org.xith3d.ui.hud.utils.DefaultDropShadowFactory

public class DefaultDropShadowFactory
extends DropShadowFactory

Default implementation of the DropShadowFactory.


Constructor Summary
DefaultDropShadowFactory()
           
DefaultDropShadowFactory(int width, int height)
           
 
Method Summary
 void drawDropShadow(int widgetRight, int widgetBottom, int widgetWidth, int widgetHeight, int zIndex, Texture2DCanvas texCanvas)
          Draws a dropshadow for a Widget.
protected  int getOffsetX()
           
protected  int getOffsetY()
           
protected  org.openmali.vecmath2.Colorf getStartColor()
           
 
Methods inherited from class org.xith3d.ui.hud.utils.DropShadowFactory
getDropShadowHeight, getDropShadowWidth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDropShadowFactory

public DefaultDropShadowFactory(int width,
                                int height)

DefaultDropShadowFactory

public DefaultDropShadowFactory()
Method Detail

getOffsetX

protected int getOffsetX()

getOffsetY

protected int getOffsetY()

getStartColor

protected org.openmali.vecmath2.Colorf getStartColor()

drawDropShadow

public void drawDropShadow(int widgetRight,
                           int widgetBottom,
                           int widgetWidth,
                           int widgetHeight,
                           int zIndex,
                           Texture2DCanvas texCanvas)
Draws a dropshadow for a Widget.

Specified by:
drawDropShadow in class DropShadowFactory
Parameters:
widgetRight - the right coordinate of the widget in texture space
widgetBottom - the bottom coordinate of the widget in texture space
widgetWidth - the width coordinate of the widget in texture space
widgetHeight - the height coordinate of the widget in texture space
zIndex - the widget's z-index
texCanvas - the texture canvas to traw on