|
||||||||||
| 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 java.util.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(java.lang.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. |
java.lang.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 java.util.List VALUES
| Constructor Detail |
|---|
protected IconSize(int width,
int height)
width - icon widthheight - icon height| Method Detail |
|---|
public final java.lang.String toString()
width + "x" + height.
toString in class java.lang.Objectpublic final int getWidth()
public final int getHeight()
public final boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - object
super.equals(o)public final int hashCode()
hashCode in class java.lang.Objectsuper.hashCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||