.. | .. |
---|
37 | 37 | return controls; |
---|
38 | 38 | } |
---|
39 | 39 | |
---|
40 | | - public TimelineView(TFModel model) |
---|
| 40 | + public TimelineView(TimeflowModel model) |
---|
41 | 41 | { |
---|
42 | 42 | super(model); |
---|
43 | 43 | visuals = new TimelineVisuals(model); |
---|
.. | .. |
---|
65 | 65 | bottom.add(slider, BorderLayout.CENTER); |
---|
66 | 66 | |
---|
67 | 67 | controls = new JPanel(); |
---|
68 | | - controls.setBackground(Color.white); |
---|
| 68 | + controls.setBackground(Color.red); |
---|
69 | 69 | controls.setLayout(new BorderLayout());//new GridLayout(2,1)); |
---|
70 | 70 | |
---|
71 | 71 | // top part of grid: zoom buttons. |
---|
.. | .. |
---|
123 | 123 | moveTime(visuals.getFitToVisibleRange()); |
---|
124 | 124 | }}); |
---|
125 | 125 | */ |
---|
126 | | - controls.add(buttons, BorderLayout.NORTH); |
---|
| 126 | + controls.add(buttons, BorderLayout.SOUTH); |
---|
127 | 127 | |
---|
128 | 128 | // ok, now do second part of grid: layout style buttons. |
---|
129 | 129 | ComponentCluster layoutPanel = new ComponentCluster("Layout"); |
---|
.. | .. |
---|
151 | 151 | graph.addActionListener(new LayoutSetter(TimelineVisuals.Layout.GRAPH)); |
---|
152 | 152 | layoutGroup.add(graph); |
---|
153 | 153 | |
---|
154 | | - controls.add(layoutPanel, BorderLayout.CENTER); |
---|
| 154 | + //controls.add(layoutPanel, BorderLayout.CENTER); |
---|
155 | 155 | } |
---|
156 | 156 | |
---|
157 | 157 | class LayoutSetter implements ActionListener |
---|
.. | .. |
---|
325 | 325 | |
---|
326 | 326 | class TimelinePanel extends AbstractVisualizationView |
---|
327 | 327 | { |
---|
328 | | - public TimelinePanel(TFModel model) |
---|
| 328 | + public TimelinePanel(TimeflowModel model) |
---|
329 | 329 | { |
---|
330 | 330 | super(model); |
---|
331 | 331 | |
---|