/** * Adds an object configuration to the animation at the end of the list. * * @param object {@link CoalesceConfig} The new configuration to add to the animation list. */ public void addCoalescingObject(CoalesceConfig object) { mCoalesceObjects.add(object); mThetaRanges.add(object.spiral.calculateThetaForRadius(object.endProximity)); }
/** * Adds a {@link List} of object configurations to the animation at the end of the list. * * @param objects {@link List} of {@link CoalesceConfig} The new configurations to add to the animation list. */ public void addCoalescingGroup(List<CoalesceConfig> objects) { for (CoalesceConfig config : objects) { mCoalesceObjects.add(config); mThetaRanges.add(config.spiral.calculateThetaForRadius(config.endProximity)); } }
/** * Constructs a basic coalescence animation. * * @param rootConfig {@link CoalesceConfig} The root object of the animation. This is simply the first item in * item in the animation list. */ public CoalesceAnimation3D(CoalesceConfig rootConfig) { mCoalesceObjects = Collections.synchronizedList(new CopyOnWriteArrayList<CoalesceConfig>()); mThetaRanges = Collections.synchronizedList(new CopyOnWriteArrayList<Double>()); mTransformable3D = rootConfig.object; mCoalesceObjects.add(rootConfig); mThetaRanges.add(rootConfig.spiral.calculateThetaForRadius(rootConfig.endProximity)); }
/** * Adds a {@link List} of object configurations to the animation at the end of the list. * * @param objects {@link List} of {@link CoalesceConfig} The new configurations to add to the animation list. */ public void addCoalescingGroup(List<CoalesceConfig> objects) { for (CoalesceConfig config : objects) { mCoalesceObjects.add(config); mThetaRanges.add(config.spiral.calculateThetaForRadius(config.endProximity)); } }
/** * Adds an object configuration to the animation at the end of the list. * * @param object {@link CoalesceConfig} The new configuration to add to the animation list. */ public void addCoalescingObject(CoalesceConfig object) { mCoalesceObjects.add(object); mThetaRanges.add(object.spiral.calculateThetaForRadius(object.endProximity)); }
/** * Constructs a basic coalescence animation. * * @param rootConfig {@link CoalesceConfig} The root object of the animation. This is simply the first item in * item in the animation list. */ public CoalesceAnimation3D(CoalesceConfig rootConfig) { mCoalesceObjects = Collections.synchronizedList(new CopyOnWriteArrayList<CoalesceConfig>()); mThetaRanges = Collections.synchronizedList(new CopyOnWriteArrayList<Double>()); mTransformable3D = rootConfig.object; mCoalesceObjects.add(rootConfig); mThetaRanges.add(rootConfig.spiral.calculateThetaForRadius(rootConfig.endProximity)); }