org.xith3d.ui.hud.utils
Class DropShadowFactory

java.lang.Object
  extended by org.xith3d.ui.hud.utils.DropShadowFactory
Direct Known Subclasses:
DefaultDropShadowFactory

public abstract class DropShadowFactory
extends java.lang.Object

the DropShadowFactory is capable of drawing dropshadows around Widgets


Constructor Summary
protected DropShadowFactory(int width, int height)
           
 
Method Summary
abstract  void drawDropShadow(int widgetRight, int widgetBottom, int widgetWidth, int widgetHeight, int zIndex, Texture2DCanvas texCanvas)
          Draws a dropshadow for a Widget.
 int getDropShadowHeight()
          Gets the drow shadow height in pixels.
 int getDropShadowWidth()
          Gets the drow shadow width in pixels.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DropShadowFactory

protected DropShadowFactory(int width,
                            int height)
Method Detail

getDropShadowWidth

public final int getDropShadowWidth()
Gets the drow shadow width in pixels.

Returns:
the drop shadow's width in pixels.

getDropShadowHeight

public final int getDropShadowHeight()
Gets the drow shadow height in pixels.

Returns:
the drop shadow's height in pixels.

drawDropShadow

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

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