public class IconFactory extends Object
| Modifier and Type | Class and Description |
|---|---|
private static class |
IconFactory.Contenitore
The Class Contenitore.
|
| Modifier and Type | Field and Description |
|---|---|
private String |
defaultExtension
The default extension.
|
private URL |
defaultpath
The defaultpath.
|
static int |
DIM_16X16
The Constant DIM_16X16.
|
static int |
DIM_32X32
The Constant DIM_32X32.
|
static int |
DIM_48X48
The Constant DIM_48X48.
|
| Constructor and Description |
|---|
IconFactory() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultExtension()
Gets the default extension.
|
URL |
getDefaultpath()
Gets the defaultpath.
|
Icon |
getIcon(String category,
String id,
int dimension)
Gets the icon.
|
Icon |
getIcon(String category,
String id,
int dimension,
boolean force)
Gets the icon.
|
static Icon |
getIconByUrl(URL newUrl,
int dimension)
Gets the icon by url.
|
static IconFactory |
getInstance()
Gets the single instance of IconFactory.
|
static Image |
iconToImage(Icon icon) |
static Icon |
resizeIcon16x16(Icon i) |
static Icon |
resizeIcon16x16(Icon i,
int x,
int y) |
static Icon |
resizeIcon16x16(Image i) |
static Icon |
resizeIcon16x16(Image img,
int x,
int y) |
static Icon |
resizeIcon32x32(Icon i) |
static Icon |
resizeIcon32x32(Image i) |
static Icon |
resizeIcon48x48(Icon i) |
static Icon |
resizeIcon48x48(Image i) |
static Icon |
resizeIcon64x64(Icon i) |
static Icon |
resizeIcon64x64(Image i) |
void |
setDefaultExtension(String defaultExtension)
Sets the default extension.
|
void |
setDefaultpath(URL defaultpath)
Sets the defaultpath.
|
public static final int DIM_16X16
public static final int DIM_32X32
public static final int DIM_48X48
private URL defaultpath
private String defaultExtension
public final URL getDefaultpath()
public final void setDefaultpath(URL defaultpath)
defaultpath - the new defaultpathpublic final String getDefaultExtension()
public final void setDefaultExtension(String defaultExtension)
defaultExtension - the new default extensionpublic static IconFactory getInstance()
public static Icon getIconByUrl(URL newUrl, int dimension)
newUrl - the new urldimension - the dimensionpublic Icon getIcon(String category, String id, int dimension)
category - the categoryid - the iddimension - the dimensionpublic Icon getIcon(String category, String id, int dimension, boolean force)
category - the categoryid - the iddimension - the dimensionforce - the forceCopyright © 2014 www.staniscia.net. All Rights Reserved.