Exemplo n.º 1
0
 public void setFaceSize(final float pWidth, final float pHeight) {
   PositionerImmovableRelative positioner = PositionerImmovableRelative.getInstance();
   for (IEntity entity : this.mEntities) {
     if (entity != null) {
       entity.setSize(pWidth, pHeight);
       positioner.center(entity.getParent(), entity);
     }
   }
 }
Exemplo n.º 2
0
  public void positionEntities() {
    detachChild(mEntities[0]);
    detachChild(mEntities[1]);
    detachChild(mEntities[2]);

    attachChild(mEntities[0]);
    attachChild(mEntities[1]);
    attachChild(mEntities[2]);

    PositionerImmovableRelative positioner = PositionerImmovableRelative.getInstance();
    for (IEntity entity : this.mEntities) {
      if (entity != null) {
        positioner.center(entity.getParent(), entity);
      }
    }

    detachChild(mEntities[0]);
    detachChild(mEntities[1]);
    detachChild(mEntities[2]);

    State savedState = mState;
    mState = State.UNDEFINED;
    changeState(savedState);
  }