Search in sources :

Example 1 with AddClipRequestMetaDataKey

use of com.helospark.tactview.core.timeline.AddClipRequestMetaDataKey in project tactview by helospark.

the class FakeImageSequenceChooserDialog method clickOkButton.

public TimelineClip clickOkButton() {
    Map<AddClipRequestMetaDataKey, Object> metadata = new HashMap<>();
    metadata.put(AddClipRequestMetaDataKey.FPS, new BigDecimal(fps.toString()));
    String filePath = path + FileNamePatternToFileResolverService.PATH_FILENAME_SEPARATOR + pattern;
    AddClipRequest clipRequest = AddClipRequest.builder().withChannelId(timelineManagerAccessor.getChannels().get(channel).getId()).withPosition(position).withAddClipRequestMetadataKey(metadata).withFilePath(filePath).build();
    return timelineManagerAccessor.addClip(clipRequest);
}
Also used : HashMap(java.util.HashMap) AddClipRequest(com.helospark.tactview.core.timeline.AddClipRequest) AddClipRequestMetaDataKey(com.helospark.tactview.core.timeline.AddClipRequestMetaDataKey) BigDecimal(java.math.BigDecimal)

Aggregations

AddClipRequest (com.helospark.tactview.core.timeline.AddClipRequest)1 AddClipRequestMetaDataKey (com.helospark.tactview.core.timeline.AddClipRequestMetaDataKey)1 BigDecimal (java.math.BigDecimal)1 HashMap (java.util.HashMap)1