public final class IconSize
extends org.freedesktop.bindings.Constant
Image
constructor that takes a Stock
image identifier and one of these constants to specify the size you want.
We're rather deliberately not indicated the pixel dimensions associated with each IconSize constant, as this is the sort of thing that can evolve over time - and be theme dependant.
In some sense you don't need this; when working with Stock items in conjunction with Buttons or Menus, the images will be arranged to be the appropriate size automatically.
Modifier and Type | Field and Description |
---|---|
static IconSize |
BUTTON
The standard size used for icons on Buttons.
|
static IconSize |
DIALOG |
static IconSize |
DND |
static IconSize |
LARGE_TOOLBAR
The size used for icons appearing in large (some would call this
normal) size Toolbars.
|
static IconSize |
MENU
The standard size used for icons appearing on Menus.
|
static IconSize |
SMALL_TOOLBAR
The size used when Toolbars are being rendered in their smaller
incarnation.
|
public static final IconSize BUTTON
Button.setImage(Image)
for setting an image of arbitrary size.public static final IconSize DIALOG
public static final IconSize DND
public static final IconSize LARGE_TOOLBAR
public static final IconSize MENU
ImageMenuItem
.public static final IconSize SMALL_TOOLBAR