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 static void wrap(IEntity child, float pWidth, float pHeight, float boundingFactor) {
    float scale = getWrapScale(child, pWidth, pHeight, boundingFactor);

    // child.setScale(scale);
    child.setSize(child.getWidth() * scale, child.getHeight() * scale);
  }