use of com.helospark.tactview.core.timeline.message.KeyframeSuccesfullyAddedMessage in project tactview by helospark.
the class EffectParametersRepository method sendKeyframeChangeMessage.
public void sendKeyframeChangeMessage(String id) {
EffectStore valueToChange = allEffectIdToEffectMap.get(id);
if (valueToChange != null) {
KeyframeSuccesfullyAddedMessage keyframeAddedMessage = new KeyframeSuccesfullyAddedMessage(id, valueToChange.effectAware.getGlobalInterval(), valueToChange.containingElementId);
keyframeAddedMessage.setParentElementId(valueToChange.parentId);
messagingService.sendAsyncMessage(keyframeAddedMessage);
}
}
use of com.helospark.tactview.core.timeline.message.KeyframeSuccesfullyAddedMessage in project tactview by helospark.
the class EffectGraphAccessorMessageSender method sendKeyframeAddedMessage.
public void sendKeyframeAddedMessage(GraphProvider provider) {
TimelineInterval interval = provider.getContainingIntervalAware().getGlobalInterval();
String containingElementId = provider.getContainingElementId();
KeyframeSuccesfullyAddedMessage keyframeAddedMessage = new KeyframeSuccesfullyAddedMessage(provider.getId(), interval, containingElementId);
keyframeAddedMessage.setParentElementId(Optional.ofNullable(provider.getContainingElementId()));
messagingService.sendAsyncMessage(keyframeAddedMessage);
}
use of com.helospark.tactview.core.timeline.message.KeyframeSuccesfullyAddedMessage in project tactview by helospark.
the class StandardGraphElementFactoryConfiguration method sendKeyframeAddedMessage.
private void sendKeyframeAddedMessage(EffectParametersRepository effectParametersRepository, MessagingService messagingService, GraphProvider provider) {
Optional<TimelineInterval> interval = effectParametersRepository.findIntervalForValurProvider(provider.getId());
Optional<String> containingElementId = effectParametersRepository.findContainingElementId(provider.getId());
messagingService.sendAsyncMessage(new KeyframeSuccesfullyAddedMessage(provider.getId(), interval.get(), containingElementId.get()));
}
Aggregations