private final int m_bias = 150;
@Override
public void run( double frac )
{
TupleSet ts = m_vis.getFocusGroup( Visualization.FOCUS_ITEMS );
if( ts.getTupleCount() == 0 )
{
return;
}
if( frac == 0.0 )
{
int xbias, ybias = 0;
xbias = m_bias;
switch( orientation )
{
case Constants.ORIENT_LEFT_RIGHT:
break;
case Constants.ORIENT_RIGHT_LEFT:
xbias = -m_bias;
break;
case Constants.ORIENT_TOP_BOTTOM:
ybias = m_bias;
break;
case Constants.ORIENT_BOTTOM_TOP:
ybias = -m_bias;
break;
}
VisualItem vi = (VisualItem) ts.tuples().next();
m_cur.setLocation( getWidth() / 2, getHeight() / 2 );
getAbsoluteCoordinate( m_cur, m_start );
m_end.setLocation( vi.getX() + xbias, vi.getY() + ybias );
}
else