|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectutils.StockIcon
public class StockIcon
This class provides easy access to the icons in use by the program. The icons can be system stock icons or the program's stock icons
| Field Summary | |
|---|---|
static int |
ICON_ABOUT
|
static int |
ICON_CANCEL
|
static int |
ICON_CLEAR
|
static int |
ICON_CLOSE
|
static int |
ICON_FULLSCREEN
|
static int |
ICON_GO_BACK
|
static int |
ICON_GO_DOWN
|
static int |
ICON_GO_FORWARD
|
static int |
ICON_GO_UP
|
static int |
ICON_HELP
|
static int |
ICON_OK
|
static int |
ICON_OPEN
|
static int |
ICON_PREFERENCES
|
static int |
ICON_PRINT
|
static int |
ICON_PRINT_PREVIEW
|
static int |
ICON_QUIT
|
static int |
ICON_REDO
|
static int |
ICON_SAVE
|
static int |
ICON_SAVE_AS
|
static int |
ICON_UNDO
|
static int |
SIZE_LARGE_TOOLBAR
The size of a large toolbar or button icon |
static int |
SIZE_MENU
The size of a menu icon |
static int |
SIZE_SMALL_TOOLBAR
The size of a small tollbar or button icon |
| Constructor Summary | |
|---|---|
StockIcon()
|
|
| Method Summary | |
|---|---|
static org.eclipse.swt.graphics.ImageData |
getIcon(int icon,
int size,
boolean allowOSStockIcon)
Returns the matching stock image for the given constant image icon, which should be one of the icon constants specified in class StockIcon, the given constant image size,
which should be one of the icon size constants specified in
class StockIcon. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int SIZE_MENU
public static final int SIZE_SMALL_TOOLBAR
public static final int SIZE_LARGE_TOOLBAR
public static final int ICON_HELP
public static final int ICON_ABOUT
public static final int ICON_OPEN
public static final int ICON_PREFERENCES
public static final int ICON_QUIT
public static final int ICON_FULLSCREEN
public static final int ICON_UNDO
public static final int ICON_REDO
public static final int ICON_CLEAR
public static final int ICON_SAVE
public static final int ICON_SAVE_AS
public static final int ICON_PRINT_PREVIEW
public static final int ICON_PRINT
public static final int ICON_CLOSE
public static final int ICON_CANCEL
public static final int ICON_OK
public static final int ICON_GO_UP
public static final int ICON_GO_BACK
public static final int ICON_GO_FORWARD
public static final int ICON_GO_DOWN
| Constructor Detail |
|---|
public StockIcon()
| Method Detail |
|---|
public static org.eclipse.swt.graphics.ImageData getIcon(int icon,
int size,
boolean allowOSStockIcon)
StockIcon, the given constant image size,
which should be one of the icon size constants specified in
class StockIcon.
This image should not be free'd because it could be that was
allocated by the system, not the application.
If the allowOSStockIcon flag is set to true then the method tries to search for a matching system stock icon before returning the local stock icons folder
icon - the StockIcon icon constantsize - the StockIcon icon size constantallowOSStockIcon - whether to search for a matching system stock icon before returning the local stock icon
null if match is not foundicon size constants use:,
SIZE_MENU,
SIZE_SMALL_TOOLBAR,
SIZE_LARGE_TOOLBAR
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||