36
36
* for layouting.
37
37
*
38
38
* @author <a href="mailto:[email protected] ">Hendrik Schreiber</a>
39
- * <p>Date: May 5, 2005<br/>
40
- * Time: 2:14:36 PM</p>
41
39
*/
42
40
public class ChartPanelView {
43
41
44
42
public static final String EVENT_MINIMIZED = "minimized" ;
45
-
43
+
46
44
private GCPreferences preferences ;
47
-
45
+
48
46
private ModelChartImpl modelChart ;
49
47
private ModelPanel modelPanel ;
50
48
private ModelDetailsPanel modelDetailsPanel ;
@@ -57,27 +55,27 @@ public class ChartPanelView {
57
55
private GCDocument gcDocument ;
58
56
private TextAreaLogHandler textAreaLogHandler ;
59
57
private DataReaderFacade dataReaderFacade ;
60
-
58
+
61
59
public ChartPanelView (GCDocument gcDocument , URL url ) throws DataReaderException {
62
60
this .gcDocument = gcDocument ;
63
61
this .preferences = gcDocument .getPreferences ();
64
62
this .modelChart = new ModelChartImpl ();
65
63
this .modelPanel = new ModelPanel ();
66
64
this .modelDetailsPanel = new ModelDetailsPanel ();
67
-
68
- JScrollPane modelDetailsScrollPane = new JScrollPane (modelDetailsPanel ,
69
- JScrollPane .VERTICAL_SCROLLBAR_AS_NEEDED ,
65
+
66
+ JScrollPane modelDetailsScrollPane = new JScrollPane (modelDetailsPanel ,
67
+ JScrollPane .VERTICAL_SCROLLBAR_AS_NEEDED ,
70
68
JScrollPane .HORIZONTAL_SCROLLBAR_AS_NEEDED );
71
-
69
+
72
70
JScrollBar hScrollBar = modelDetailsScrollPane .getHorizontalScrollBar ();
73
71
hScrollBar .setUnitIncrement (10 );
74
72
JScrollBar vScrollBar = modelDetailsScrollPane .getVerticalScrollBar ();
75
73
vScrollBar .setUnitIncrement (10 );
76
-
74
+
77
75
this .modelChartAndDetailsPanel = new JTabbedPane ();
78
76
this .modelChartAndDetailsPanel .addTab (LocalisationHelper .getString ("data_panel_tab_chart" ), modelChart );
79
77
this .modelChartAndDetailsPanel .addTab (LocalisationHelper .getString ("data_panel_tab_details" ), modelDetailsScrollPane );
80
-
78
+
81
79
this .viewBar = new ViewBar (this );
82
80
this .propertyChangeSupport = new SwingPropertyChangeSupport (this );
83
81
this .textAreaLogHandler = new TextAreaLogHandler ();
@@ -91,7 +89,7 @@ public ChartPanelView(GCDocument gcDocument, URL url) throws DataReaderException
91
89
/**
92
90
* Reloads the model displayed in this chart panel if it has changed. Using the parameter
93
91
* the parser error dialog can be suppressed.
94
- *
92
+ *
95
93
* @param showParserErrors if <code>true</code> parser errors will be shown
96
94
* @return <code>true</code>, if the file has been reloaded
97
95
* @throws DataReaderException if something went wrong reading the file
@@ -146,7 +144,7 @@ public void setMinimized(boolean minimized) {
146
144
public JTabbedPane getModelChartAndDetails () {
147
145
return modelChartAndDetailsPanel ;
148
146
}
149
-
147
+
150
148
public ModelChart getModelChart () {
151
149
return modelChart ;
152
150
}
0 commit comments