Skip to content

Commit be3609e

Browse files
committed
New icon for the batcher plugin.
1 parent da47cdc commit be3609e

5 files changed

Lines changed: 18 additions & 7 deletions

File tree

src/main/java/fiji/plugin/trackmate/batcher/BatcherUtils.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
* it under the terms of the GNU General Public License as
99
* published by the Free Software Foundation, either version 3 of the
1010
* License, or (at your option) any later version.
11-
*
11+
*
1212
* This program is distributed in the hope that it will be useful,
1313
* but WITHOUT ANY WARRANTY; without even the implied warranty of
1414
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1515
* GNU General Public License for more details.
16-
*
16+
*
1717
* You should have received a copy of the GNU General Public
1818
* License along with this program. If not, see
1919
* <http://www.gnu.org/licenses/gpl-3.0.html>.
@@ -31,11 +31,18 @@
3131
import java.util.stream.Collectors;
3232
import java.util.stream.Stream;
3333

34+
import javax.swing.ImageIcon;
35+
36+
import fiji.plugin.trackmate.batcher.ui.BatcherPanel;
3437
import loci.formats.ImageReader;
3538

3639
public class BatcherUtils
3740
{
3841

42+
public static final ImageIcon BATCHER_ICON_64 = new ImageIcon( BatcherPanel.class.getResource( "/images/TrackMate-Batcher-icon-64px.png" ) );
43+
44+
public static final ImageIcon BATCHER_ICON = new ImageIcon( BatcherPanel.class.getResource( "/images/TrackMate-Batcher-icon.png" ) );
45+
3946
public static final Set< Path > collectRegularFiles( final List< String > list )
4047
{
4148
final Set< Path > paths = new LinkedHashSet<>();

src/main/java/fiji/plugin/trackmate/batcher/ui/BatcherController.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,21 @@
88
* it under the terms of the GNU General Public License as
99
* published by the Free Software Foundation, either version 3 of the
1010
* License, or (at your option) any later version.
11-
*
11+
*
1212
* This program is distributed in the hope that it will be useful,
1313
* but WITHOUT ANY WARRANTY; without even the implied warranty of
1414
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1515
* GNU General Public License for more details.
16-
*
16+
*
1717
* You should have received a copy of the GNU General Public
1818
* License along with this program. If not, see
1919
* <http://www.gnu.org/licenses/gpl-3.0.html>.
2020
* #L%
2121
*/
2222
package fiji.plugin.trackmate.batcher.ui;
2323

24+
import static fiji.plugin.trackmate.batcher.BatcherUtils.BATCHER_ICON;
25+
2426
import java.awt.event.WindowAdapter;
2527
import java.nio.file.Path;
2628
import java.util.List;
@@ -39,7 +41,6 @@
3941
import fiji.plugin.trackmate.batcher.BatcherUtils;
4042
import fiji.plugin.trackmate.batcher.RunParamModel;
4143
import fiji.plugin.trackmate.batcher.TrackMateBatcher;
42-
import fiji.plugin.trackmate.gui.Icons;
4344
import fiji.plugin.trackmate.gui.displaysettings.DisplaySettings;
4445
import fiji.plugin.trackmate.gui.wizard.descriptors.StartDialogDescriptor;
4546
import fiji.plugin.trackmate.util.EverythingDisablerAndReenabler;
@@ -162,7 +163,7 @@ public void windowClosing( final java.awt.event.WindowEvent e )
162163
cancel( "User closed the batcher window." );
163164
}
164165
} );
165-
frame.setIconImage( Icons.TRACKMATE_ICON.getImage() );
166+
frame.setIconImage( BATCHER_ICON.getImage() );
166167
frame.getContentPane().add( gui );
167168
frame.pack();
168169
frame.setLocationRelativeTo( null );

src/main/java/fiji/plugin/trackmate/batcher/ui/BatcherPanel.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
*/
2222
package fiji.plugin.trackmate.batcher.ui;
2323

24+
import static fiji.plugin.trackmate.batcher.BatcherUtils.BATCHER_ICON;
25+
2426
import java.awt.BorderLayout;
2527
import java.awt.Color;
2628
import java.awt.Component;
@@ -40,6 +42,7 @@
4042

4143
import fiji.plugin.trackmate.Logger;
4244
import fiji.plugin.trackmate.gui.Fonts;
45+
import fiji.plugin.trackmate.gui.GuiUtils;
4346
import fiji.plugin.trackmate.gui.Icons;
4447
import fiji.plugin.trackmate.gui.components.LogPanel;
4548

@@ -62,7 +65,7 @@ public BatcherPanel( final BatcherModel model )
6265
final JLabel lblTitle = new JLabel( "<html><center>TrackMate Batcher <small>v"
6366
+ VersionUtils.getVersion( BatcherPanel.class )
6467
+ "</small></center></html>" );
65-
lblTitle.setIcon( Icons.TRACKMATE_ICON_16x16 );
68+
lblTitle.setIcon( GuiUtils.scaleImage( BATCHER_ICON, 32, 32 ) );
6669
lblTitle.setFont( Fonts.BIG_FONT );
6770
add( lblTitle, BorderLayout.NORTH );
6871

7.31 KB
Loading
44 KB
Loading

0 commit comments

Comments
 (0)