org.xith3d.ui.hud.utils
Class DefaultDropShadowFactory
java.lang.Object
org.xith3d.ui.hud.utils.DropShadowFactory
org.xith3d.ui.hud.utils.DefaultDropShadowFactory
public class DefaultDropShadowFactory
- extends DropShadowFactory
Default implementation of the DropShadowFactory.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultDropShadowFactory
public DefaultDropShadowFactory(int width,
int height)
DefaultDropShadowFactory
public DefaultDropShadowFactory()
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 spacewidgetBottom - the bottom coordinate of the widget in texture spacewidgetWidth - the width coordinate of the widget in texture spacewidgetHeight - the height coordinate of the widget in texture spacezIndex - the widget's z-indextexCanvas - the texture canvas to traw on