|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dishevelled.iconbundle.IconSize
public abstract class IconSize
Extensible typesafe enumeration of icon sizes.
To create a non-default icon size, subclass IconSize as follows:
IconSize CUSTOM_48X52 = new IconSize(48, 52) { }
and optionally override readResolve to support serialization.
| Field Summary | |
|---|---|
static IconSize |
DEFAULT_128X128
Default 128x128 icon size. |
static IconSize |
DEFAULT_16X16
Default 16x16 icon size. |
static IconSize |
DEFAULT_24X24
Default 24x24 icon size. |
static IconSize |
DEFAULT_32X32
Default 32x32 icon size. |
static IconSize |
DEFAULT_48X48
Default 48x48 icon size. |
static IconSize |
DEFAULT_64X64
Default 64x64 icon size. |
static IconSize |
DEFAULT_96X96
Default 96x96 icon size. |
static List |
VALUES
Public list of default enumeration values. |
| Constructor Summary | |
|---|---|
protected |
IconSize(int width,
int height)
Create a new icon size with the specified width and height. |
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Override equals and make it final to prevent subclasses from changing the implementation. |
int |
getHeight()
Return the icon height. |
int |
getWidth()
Return the icon width. |
int |
hashCode()
Override hashCode and make it final to prevent subclasses from changing the implementation. |
(package private) Object |
readResolve()
Override readResolve to return the proper static final enumeration values. |
String |
toString()
Return the string value of width + "x" + height. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final IconSize DEFAULT_16X16
public static final IconSize DEFAULT_24X24
public static final IconSize DEFAULT_32X32
public static final IconSize DEFAULT_48X48
public static final IconSize DEFAULT_64X64
public static final IconSize DEFAULT_96X96
public static final IconSize DEFAULT_128X128
public static final List VALUES
| Constructor Detail |
|---|
protected IconSize(int width,
int height)
width - icon widthheight - icon height| Method Detail |
|---|
public final String toString()
width + "x" + height.
toString in class Objectpublic final int getWidth()
public final int getHeight()
public final boolean equals(Object o)
equals in class Objecto - object
super.equals(o)public final int hashCode()
hashCode in class Objectsuper.hashCode()
Object readResolve()
throws ObjectStreamException
ObjectStreamException - if an error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||