/* */ package NET.worlds.scape; /* */ /* */ import NET.worlds.console.SnapTool; /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ class VTransWidget /* */ extends WidgetButton /* */ { /* */ private static final long serialVersionUID = 1L; /* */ /* */ public VTransWidget(ToolBar toolbar) /* */ { /* 23 */ super(toolbar, "vtrans.gif", "Move vertically"); /* */ } /* */ /* */ public String drag(boolean initialDrag, float deltax, float deltay) /* */ { /* 28 */ Transform t = Transform.make(); /* 29 */ applyWorldTransform(initialDrag, /* 30 */ t.moveBy(SnapTool.snapTool().snapTo( /* 31 */ getWorldAxis(1, 0, 0).times(deltax).plus( /* 32 */ getWorldAxis(0, 0, 1).times(deltay))))); /* 33 */ t.recycle(); /* 34 */ return getWObject().getPosition(); /* */ } /* */ } /* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\VTransWidget.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */