From b2803046e5e35270aa1f82865111a378111e4f59 Mon Sep 17 00:00:00 2001 From: marchant-alex <60479610+marchant-alex@users.noreply.github.com> Date: Sun, 12 Apr 2020 14:13:36 +0100 Subject: [PATCH 1/5] Add files via upload --- Video.java | 21 +++++++++++++++++++++ VideoLayer.java | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 Video.java create mode 100644 VideoLayer.java diff --git a/Video.java b/Video.java new file mode 100644 index 0000000..50ea4d7 --- /dev/null +++ b/Video.java @@ -0,0 +1,21 @@ +import java.awt.Color; + +public class Video { + int xstart = 0; + int ystart = 0; + int xend = 100; + int yend = 100; + Color linecolor = Color.BLACK; + String starttime = "0"; + String endtime = "100"; + + public Video(String[] string) { + this.xstart = Integer.parseInt(string[0]); + this.ystart = Integer.parseInt(string[1]); + this.xend = Integer.parseInt(string[2]); + this.yend = Integer.parseInt(string[3]); + this.linecolor = Color.getColor(string[4]); + this.starttime = string[5]; + this.endtime = string[6]; + } +} diff --git a/VideoLayer.java b/VideoLayer.java new file mode 100644 index 0000000..f0940ed --- /dev/null +++ b/VideoLayer.java @@ -0,0 +1,34 @@ +package media; + +import java.util.ArrayList; + +import javafx.scene.SubScene; +import javafx.scene.canvas.Canvas; +import javafx.scene.layout.StackPane; + +public class VideoLayer { + int height; + int width; + StackPane sp = new StackPane(); + Canvas canvas = new Canvas(width,height); + ArrayList