public class Tools extends Object
Constructor and Description |
---|
Tools() |
Modifier and Type | Method and Description |
---|---|
static String |
humanReadable(long bytes)
convert some long bytes into a human readable number
|
static ImageIcon |
loadImageIcon(String path)
Returns an ImageIcon, or null if the path was invalid.
|
static ImageIcon |
loadImageIcon(URI format)
Returns an ImageIcon, or null if the path was invalid.
|
static ImageIcon |
scaleIcon(ImageIcon icon,
int w,
int h)
Scale an icon.
|
public static String humanReadable(long bytes)
bytes
- public static ImageIcon loadImageIcon(URI format)
format
- the format of the corresponding filepublic static ImageIcon loadImageIcon(String path)
path
- the path to the iconCopyright © 2014. All rights reserved.