From: Einar Pehrson Date: Fri, 16 May 2003 13:51:21 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: https://ruin.nu/git/?p=moosique.git;a=commitdiff_plain;h=5508e288626b65061da51e75d318516dbccdd5bb *** empty log message *** --- diff --git a/MooTrackView.java b/MooTrackView.java index 1a612e4..1d46e09 100644 --- a/MooTrackView.java +++ b/MooTrackView.java @@ -14,6 +14,7 @@ import java.util.*; public class MooTrackView extends JPanel { private Track track; + private MooTrackTitle; private Rectangle box; private JPopupMenu popup; @@ -23,9 +24,10 @@ public class MooTrackView extends JPanel { protected static int extraHeight = 0; public static final int NOTE_HEIGHT = 10, NOTE_WIDTH = 40, VIEW_WIDTH = 200; - public MooTrackView (Track track) { + public MooTrackView (Track track, MooTrackTitle title;) { super(true); this.track = track; + this.title = title; // Configures panel setBackground(Color.white); diff --git a/MooView.java b/MooView.java index 4ce6a82..3374bd6 100644 --- a/MooView.java +++ b/MooView.java @@ -70,8 +70,9 @@ public class MooView extends JScrollPane { for (int i = 1; i < tracks.length; i++) { if (Moosique.shouldBeDrawn(tracks[i])) { System.out.println("Draws track " + i); - trackPanel.add(new MooTrackView(tracks[i])); - titlePanel.add(new MooTrackTitle(tracks[i],i)); + MooTrackTitle title = new MooTrackTitle(tracks[i],i); + titlePanel.add(title); + trackPanel.add(new MooTrackView(tracks[i], title)); progressBar.setValue(i); } else { System.out.println("Doesn't draw track " + i); diff --git a/report.txt b/report.txt index bbdb98b..400585e 100644 --- a/report.txt +++ b/report.txt @@ -65,7 +65,7 @@ This problem was especially unfortunate since it was the only performance aspect [Ă„ndra font och dra ner textstorlek, citat juh!] "Delays during execution should be minimized, but are allowed when loading files. Playback should be smooth and delays should not change the beat or tempo." -However, as we recently discovered, +However, as we recently discovered, the Sun developers were also aware of this issue and, in trying to find a remedy for it, implemented some additional methods for controlling the viewport's visualisation during scrolling. This allowed us to reduce the time lag to a fraction. The major changes and that not enough work design of the graphical classes resulted in that the different graphical classes couldn't be implemented on their own. Instead changes often had to take place in many different classes when some feature was added. This made the implementation slow, especially in the beginning, since there where many different ideas on how things should be implemented. This got better through time though, when the basic foundation was implemented it got easier to add the rest of the features. ------------------------------