public final Sprite setSpriteBehavior(final String behavior) { if ((null == behavior) || (behavior.trim().isEmpty())) { throw new NullPointerException("behavior is null or empty"); } getAttributes().setSpriteBehavior(behavior); final SpriteBehaviorMap bmap = getSpriteBehaviorMap(); if (null != bmap) { m_index = 0; m_frames = bmap.getFramesForBehavior(behavior); } return this; }
public final Sprite setSpriteBehavior(String behavior) { if ((null == behavior) || (behavior.trim().isEmpty())) { throw new NullPointerException("behavior is null or empty"); } getAttributes().setSpriteBehavior(behavior); SpriteBehaviorMap bmap = getSpriteBehaviorMap(); if (null != bmap) { m_index = 0; m_frames = bmap.getFramesForBehavior(behavior); } return this; }
public final Sprite setSpriteBehaviorMap(final SpriteBehaviorMap bmap) { if (bmap == null) { throw new NullPointerException("SpriteBehaviorMap is null"); } getAttributes().setSpriteBehaviorMap(bmap); final String behavior = getSpriteBehavior(); if ((null != behavior) && (false == behavior.trim().isEmpty())) { m_index = 0; m_frames = bmap.getFramesForBehavior(behavior); } return this; }
public final Sprite setSpriteBehaviorMap(SpriteBehaviorMap bmap) { if (bmap == null) { throw new NullPointerException("SpriteBehaviorMap is null"); } getAttributes().setSpriteBehaviorMap(bmap); String behavior = getSpriteBehavior(); if ((null != behavior) && (false == behavior.trim().isEmpty())) { m_index = 0; m_frames = bmap.getFramesForBehavior(behavior); } return this; }
public final Sprite setSpriteBehaviorMap(final SpriteBehaviorMap bmap) { if (bmap == null) { throw new NullPointerException("SpriteBehaviorMap is null"); } getAttributes().setSpriteBehaviorMap(bmap); final String behavior = getSpriteBehavior(); if ((null != behavior) && (false == behavior.trim().isEmpty())) { m_index = 0; m_frames = bmap.getFramesForBehavior(behavior); } return this; }
public final Sprite setSpriteBehaviorMap(final SpriteBehaviorMap bmap) { if (bmap == null) { throw new NullPointerException("SpriteBehaviorMap is null"); } getAttributes().setSpriteBehaviorMap(bmap); final String behavior = getSpriteBehavior(); if ((null != behavior) && (false == behavior.trim().isEmpty())) { m_index = 0; m_frames = bmap.getFramesForBehavior(behavior); } return this; }
public final Sprite setSpriteBehavior(final String behavior) { if ((null == behavior) || (behavior.trim().isEmpty())) { throw new NullPointerException("behavior is null or empty"); } getAttributes().setSpriteBehavior(behavior); final SpriteBehaviorMap bmap = getSpriteBehaviorMap(); if (null != bmap) { m_index = 0; m_frames = bmap.getFramesForBehavior(behavior); } return this; }
public final Sprite setSpriteBehavior(final String behavior) { if ((null == behavior) || (behavior.trim().isEmpty())) { throw new NullPointerException("behavior is null or empty"); } getAttributes().setSpriteBehavior(behavior); final SpriteBehaviorMap bmap = getSpriteBehaviorMap(); if (null != bmap) { m_index = 0; m_frames = bmap.getFramesForBehavior(behavior); } return this; }