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); } } }
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); }