(String inTableNamePlusOptions)
| 1134 | } |
| 1135 | |
| 1136 | public void run(String inTableNamePlusOptions) { |
| 1137 | boolean useAutoAstroDataUpdate = false; |
| 1138 | String inTableName = ""; |
| 1139 | String[] inOptions = inTableNamePlusOptions.split(","); |
| 1140 | if (inOptions.length > 0) inTableName = inOptions[0]; |
| 1141 | if (inOptions.length > 1) useAutoAstroDataUpdate = true; |
| 1142 | Locale.setDefault(IJU.locale); |
| 1143 | //SET DEFAULT SYSTEM LOOK AND FEEL |
| 1144 | UIHelper.setLookAndFeel(); |
| 1145 | if (IJ.isWindows()) { |
| 1146 | JLabel testlabel = new JLabel("test"); |
| 1147 | p11 = testlabel.getFont(); |
| 1148 | String winFont = p11.getFontName(); |
| 1149 | p8 = new Font(winFont, Font.PLAIN, 8); |
| 1150 | p9 = new Font(winFont, Font.PLAIN, 9); |
| 1151 | p10 = new Font(winFont, Font.PLAIN, 10); |
| 1152 | p11 = new Font(winFont, Font.PLAIN, 11); |
| 1153 | p12 = new Font(winFont, Font.PLAIN, 12); |
| 1154 | b11 = new Font(winFont, Font.BOLD, 11); |
| 1155 | b12 = new Font(winFont, Font.BOLD, 12); |
| 1156 | b14 = new Font(winFont, Font.BOLD, 14); |
| 1157 | } else if (IJ.isLinux()) { |
| 1158 | p8 = new Font(fontName, Font.PLAIN, 8); |
| 1159 | p9 = new Font(fontName, Font.PLAIN, 8); |
| 1160 | p10 = new Font(fontName, Font.PLAIN, 9); |
| 1161 | p11 = new Font(fontName, Font.PLAIN, 10); |
| 1162 | p12 = new Font(fontName, Font.PLAIN, 11); |
| 1163 | b11 = new Font(fontName, Font.BOLD, 10); |
| 1164 | b12 = new Font(fontName, Font.BOLD, 11); |
| 1165 | b14 = new Font(fontName, Font.BOLD, 13); |
| 1166 | } |
| 1167 | else { |
| 1168 | p8 = new Font(fontName, Font.PLAIN, 8); |
| 1169 | p9 = new Font(fontName, Font.PLAIN, 8); |
| 1170 | p10 = new Font(fontName, Font.PLAIN, 9); |
| 1171 | p11 = new Font(fontName, Font.PLAIN, 10); |
| 1172 | p12 = new Font(fontName, Font.PLAIN, 11); |
| 1173 | b11 = new Font(fontName, Font.BOLD, 10); |
| 1174 | b12 = new Font(fontName, Font.BOLD, 11); |
| 1175 | b14 = new Font(fontName, Font.BOLD, 13); |
| 1176 | } |
| 1177 | dataSectionBorder = BorderFactory.createTitledBorder(BorderFactory.createLineBorder(mainBorderColor, 1), "Data ()", TitledBorder.LEFT, TitledBorder.TOP, b12, Color.DARK_GRAY); |
| 1178 | plotAutoMode = Prefs.get("plot.automode", plotAutoMode); |
| 1179 | panelsUpdating = false; |
| 1180 | if (plotAutoMode) { |
| 1181 | updatePlot(updateAllFits()); |
| 1182 | plotAutoMode = false; |
| 1183 | Prefs.set("plot.automode", false); |
| 1184 | return; |
| 1185 | } |
| 1186 | |
| 1187 | if (mainFrame == null || !mainFrame.isVisible()) { |
| 1188 | if (mainFrame != null) { |
| 1189 | mainFrame.dispose(); |
| 1190 | subFrame.dispose(); |
| 1191 | refStarFrame.dispose(); |
| 1192 | mainFrame = null; |
| 1193 | subFrame = null; |
nothing calls this directly
no test coverage detected