Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit dc68c31

Browse files
committed
Reinstate gui.Utils as it is still used by SNT
1 parent 50c0286 commit dc68c31

File tree

1 file changed

+72
-0
lines changed

1 file changed

+72
-0
lines changed

src/main/java/sholl/gui/Utils.java

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
/*
2+
* #%L
3+
* Sholl_Analysis plugin for ImageJ
4+
* %%
5+
* Copyright (C) 2016 Tiago Ferreira
6+
* %%
7+
* This program is free software: you can redistribute it and/or modify
8+
* it under the terms of the GNU General Public License as
9+
* published by the Free Software Foundation, either version 3 of the
10+
* License, or (at your option) any later version.
11+
*
12+
* This program is distributed in the hope that it will be useful,
13+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
* GNU General Public License for more details.
16+
*
17+
* You should have received a copy of the GNU General Public
18+
* License along with this program. If not, see
19+
* <http://www.gnu.org/licenses/gpl-3.0.html>.
20+
* #L%
21+
*/
22+
package sholl.gui;
23+
24+
import java.awt.Color;
25+
import java.awt.GraphicsEnvironment;
26+
27+
import javax.swing.JMenuItem;
28+
29+
@Deprecated
30+
public class Utils {
31+
32+
private Utils() {
33+
}
34+
35+
@Deprecated
36+
public static final void improveRecording() {
37+
EnhancedGenericDialog.improveRecording();
38+
}
39+
40+
@Deprecated
41+
public static Color getDisabledComponentColor() {
42+
return EnhancedGenericDialog.getDisabledComponentColor();
43+
}
44+
45+
@Deprecated
46+
public static JMenuItem menuItemTrigerringURL(final String label, final String URL) {
47+
return EnhancedGenericDialog.menuItemTrigerringURL(label, URL);
48+
}
49+
50+
@Deprecated
51+
public static JMenuItem menuItemTriggeringResources() {
52+
return EnhancedGenericDialog.menuItemTriggeringResources();
53+
}
54+
55+
/**
56+
* @return {@code true} if running on an headless environment
57+
*/
58+
public static boolean isHeadless() {
59+
return GraphicsEnvironment.isHeadless();
60+
}
61+
62+
@Deprecated
63+
public final static Color infoColor() {
64+
return EnhancedGenericDialog.infoColor();
65+
}
66+
67+
@Deprecated
68+
public final static Color warningColor() {
69+
return EnhancedGenericDialog.warningColor();
70+
}
71+
72+
}

0 commit comments

Comments
 (0)