Skip to content

Commit 9af28e4

Browse files
committed
merge branch feature/#125/javadoc
fix javadoc comments for java 8
2 parents 01824d3 + 47b327e commit 9af28e4

36 files changed

+964
-1025
lines changed

src/main/java/com/tagtraum/perf/gcviewer/AutoCompletionComboBox.java

-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77

88
/**
99
* AutoCompletionComboBox.
10-
* <p/>
11-
* Date: Oct 6, 2005
12-
* Time: 1:16:42 PM
1310
*
1411
* @author <a href="mailto:[email protected]">Hendrik Schreiber</a>
1512
*/

src/main/java/com/tagtraum/perf/gcviewer/AutoCompletionTextField.java

-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414

1515
/**
1616
* AutoCompletionTextField.
17-
* <p/>
18-
* Date: Oct 6, 2005
19-
* Time: 9:49:21 AM
2017
*
2118
* @author <a href="mailto:[email protected]">Hendrik Schreiber</a>
2219
*/

src/main/java/com/tagtraum/perf/gcviewer/ChartPanelView.java

+11-13
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,13 @@
3636
* for layouting.
3737
*
3838
* @author <a href="mailto:[email protected]">Hendrik Schreiber</a>
39-
* <p>Date: May 5, 2005<br/>
40-
* Time: 2:14:36 PM</p>
4139
*/
4240
public class ChartPanelView {
4341

4442
public static final String EVENT_MINIMIZED = "minimized";
45-
43+
4644
private GCPreferences preferences;
47-
45+
4846
private ModelChartImpl modelChart;
4947
private ModelPanel modelPanel;
5048
private ModelDetailsPanel modelDetailsPanel;
@@ -57,27 +55,27 @@ public class ChartPanelView {
5755
private GCDocument gcDocument;
5856
private TextAreaLogHandler textAreaLogHandler;
5957
private DataReaderFacade dataReaderFacade;
60-
58+
6159
public ChartPanelView(GCDocument gcDocument, URL url) throws DataReaderException {
6260
this.gcDocument = gcDocument;
6361
this.preferences = gcDocument.getPreferences();
6462
this.modelChart = new ModelChartImpl();
6563
this.modelPanel = new ModelPanel();
6664
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,
7068
JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
71-
69+
7270
JScrollBar hScrollBar = modelDetailsScrollPane.getHorizontalScrollBar();
7371
hScrollBar.setUnitIncrement(10);
7472
JScrollBar vScrollBar = modelDetailsScrollPane.getVerticalScrollBar();
7573
vScrollBar.setUnitIncrement(10);
76-
74+
7775
this.modelChartAndDetailsPanel = new JTabbedPane();
7876
this.modelChartAndDetailsPanel.addTab(LocalisationHelper.getString("data_panel_tab_chart"), modelChart);
7977
this.modelChartAndDetailsPanel.addTab(LocalisationHelper.getString("data_panel_tab_details"), modelDetailsScrollPane);
80-
78+
8179
this.viewBar = new ViewBar(this);
8280
this.propertyChangeSupport = new SwingPropertyChangeSupport(this);
8381
this.textAreaLogHandler = new TextAreaLogHandler();
@@ -91,7 +89,7 @@ public ChartPanelView(GCDocument gcDocument, URL url) throws DataReaderException
9189
/**
9290
* Reloads the model displayed in this chart panel if it has changed. Using the parameter
9391
* the parser error dialog can be suppressed.
94-
*
92+
*
9593
* @param showParserErrors if <code>true</code> parser errors will be shown
9694
* @return <code>true</code>, if the file has been reloaded
9795
* @throws DataReaderException if something went wrong reading the file
@@ -146,7 +144,7 @@ public void setMinimized(boolean minimized) {
146144
public JTabbedPane getModelChartAndDetails() {
147145
return modelChartAndDetailsPanel;
148146
}
149-
147+
150148
public ModelChart getModelChart() {
151149
return modelChart;
152150
}

src/main/java/com/tagtraum/perf/gcviewer/DesktopPane.java

+13-16
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@
2626

2727
/**
2828
* DesktopPane is the "background" of the application after opening.
29-
* <p/>
30-
* Date: Sep 27, 2005
31-
* Time: 9:41:33 AM
3229
*
3330
* @author <a href="mailto:[email protected]">Hendrik Schreiber</a>
3431
*/
@@ -78,42 +75,42 @@ public void drop(DropTargetDropEvent e) {
7875
}
7976

8077
private ImageIcon logoIcon = new ImageIcon(GCViewerGui.class.getResource("gcviewer_background.png"));
81-
78+
8279
public void paint(Graphics g) {
8380
fillBackground(g);
84-
81+
8582
// draw logo
86-
g.drawImage(logoIcon.getImage(),
87-
getWidth()/2 - logoIcon.getIconWidth()/2,
88-
getHeight()/2 - logoIcon.getIconHeight()/2,
89-
logoIcon.getIconWidth(),
90-
logoIcon.getIconHeight(),
83+
g.drawImage(logoIcon.getImage(),
84+
getWidth()/2 - logoIcon.getIconWidth()/2,
85+
getHeight()/2 - logoIcon.getIconHeight()/2,
86+
logoIcon.getIconWidth(),
87+
logoIcon.getIconHeight(),
9188
logoIcon.getImageObserver());
92-
89+
9390
drawVersionString(g, logoIcon);
9491

9592
super.paint(g);
9693
}
9794

9895
/**
9996
* Adds version string below <code>logoImage</code>.
100-
*
97+
*
10198
* @param g
10299
*/
103100
private void drawVersionString(Graphics g, ImageIcon logoImage) {
104101
g.setColor(Color.LIGHT_GRAY);
105102
g.setFont(new Font("Serif", Font.BOLD, 12));
106-
103+
107104
// use anti aliasing to draw string
108105
Graphics2D g2d = (Graphics2D)g;
109106
Object oldAAHint = g2d.getRenderingHint(RenderingHints.KEY_ANTIALIASING);
110107
g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
111-
108+
112109
String versionString = "version: " + BuildInfoReader.getVersion() + " (" + BuildInfoReader.getBuildDate() + ")";
113-
g.drawString(versionString,
110+
g.drawString(versionString,
114111
getWidth()/2 - g.getFontMetrics().stringWidth(versionString)/2,
115112
getHeight()/2 + logoImage.getIconHeight()/2 + 25);
116-
113+
117114
g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, oldAAHint);
118115
}
119116

src/main/java/com/tagtraum/perf/gcviewer/GCDocument.java

+8-8
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@
3737
import com.tagtraum.perf.gcviewer.imp.DataReaderException;
3838

3939
/**
40+
* GCDocument.
41+
*
4042
* @author <a href="mailto:[email protected]">Hendrik Schreiber</a>
41-
* Date: May 5, 2005
42-
* Time: 10:25:16 AM
4343
*/
4444
public class GCDocument extends JInternalFrame {
4545

@@ -121,7 +121,10 @@ public void setShowModelPanel(boolean showModelPanel) {
121121
}
122122

123123
/**
124+
* Reload Models.
125+
*
124126
* @return true, if any of the files has been reloaded
127+
* @param background true if relayout should be skipped.
125128
* @throws DataReaderException if something went wrong reading the data
126129
*/
127130
public boolean reloadModels(boolean background) throws DataReaderException {
@@ -142,7 +145,7 @@ public ModelChart getModelChart() {
142145
public GCPreferences getPreferences() {
143146
return preferences;
144147
}
145-
148+
146149
public void add(final URL url) throws DataReaderException {
147150
ChartPanelView chartPanelView = new ChartPanelView(this, url);
148151
chartPanelViews.add(chartPanelView);
@@ -612,19 +615,16 @@ public void stateChanged(ChangeEvent e) {
612615
}
613616

614617
}
615-
618+
616619
/**
617-
*
618-
*
619620
* @author <a href="mailto:[email protected]">Joerg Wuethrich</a>
620-
* <p>created on: 22.07.2012</p>
621621
*/
622622
private class ResizeListener extends ComponentAdapter {
623623

624624
@Override
625625
public void componentResized(ComponentEvent e) {
626626
modelChartListFacade.resetPolygonCache();
627627
}
628-
628+
629629
}
630630
}

0 commit comments

Comments
 (0)