Search in sources :

Example 1 with KeyframeSuccesfullyAddedMessage

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);
    }
}
Also used : KeyframeSuccesfullyAddedMessage(com.helospark.tactview.core.timeline.message.KeyframeSuccesfullyAddedMessage)

Example 2 with KeyframeSuccesfullyAddedMessage

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);
}
Also used : KeyframeSuccesfullyAddedMessage(com.helospark.tactview.core.timeline.message.KeyframeSuccesfullyAddedMessage) TimelineInterval(com.helospark.tactview.core.timeline.TimelineInterval)

Example 3 with KeyframeSuccesfullyAddedMessage

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()));
}
Also used : KeyframeSuccesfullyAddedMessage(com.helospark.tactview.core.timeline.message.KeyframeSuccesfullyAddedMessage) TimelineInterval(com.helospark.tactview.core.timeline.TimelineInterval)

Aggregations

KeyframeSuccesfullyAddedMessage (com.helospark.tactview.core.timeline.message.KeyframeSuccesfullyAddedMessage)3 TimelineInterval (com.helospark.tactview.core.timeline.TimelineInterval)2