Normand Briere
2018-12-17 86f4e9c75951153ae9825f4772633e45698cb602
timeflow/views/TimelineView.java
....@@ -37,7 +37,7 @@
3737 return controls;
3838 }
3939
40
- public TimelineView(TFModel model)
40
+ public TimelineView(TimeflowModel model)
4141 {
4242 super(model);
4343 visuals = new TimelineVisuals(model);
....@@ -65,7 +65,7 @@
6565 bottom.add(slider, BorderLayout.CENTER);
6666
6767 controls = new JPanel();
68
- controls.setBackground(Color.white);
68
+ controls.setBackground(Color.red);
6969 controls.setLayout(new BorderLayout());//new GridLayout(2,1));
7070
7171 // top part of grid: zoom buttons.
....@@ -123,7 +123,7 @@
123123 moveTime(visuals.getFitToVisibleRange());
124124 }});
125125 */
126
- controls.add(buttons, BorderLayout.NORTH);
126
+ controls.add(buttons, BorderLayout.SOUTH);
127127
128128 // ok, now do second part of grid: layout style buttons.
129129 ComponentCluster layoutPanel = new ComponentCluster("Layout");
....@@ -151,7 +151,7 @@
151151 graph.addActionListener(new LayoutSetter(TimelineVisuals.Layout.GRAPH));
152152 layoutGroup.add(graph);
153153
154
- controls.add(layoutPanel, BorderLayout.CENTER);
154
+ //controls.add(layoutPanel, BorderLayout.CENTER);
155155 }
156156
157157 class LayoutSetter implements ActionListener
....@@ -325,7 +325,7 @@
325325
326326 class TimelinePanel extends AbstractVisualizationView
327327 {
328
- public TimelinePanel(TFModel model)
328
+ public TimelinePanel(TimeflowModel model)
329329 {
330330 super(model);
331331