|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.gmf.runtime.common.core.util.EnumeratedType
org.eclipse.gmf.runtime.diagram.ui.image.ImageFileFormat
An enumeration of image formats supported by the copy diagram to image
file utility class CopyToImageUtil.
We use this enumeration rather than int as in SWT.IMAGE_GIF to enforce strict supported format type checking.
| Field Summary | |
static ImageFileFormat |
BMP
supported format Windows Bitmap format (BMP). |
static ImageFileFormat |
GIF
supported format Graphics Interchange Format (GIF). |
static ImageFileFormat |
JPEG
supported format Joint Photographic Experts Group format (JPEG). |
static ImageFileFormat |
JPG
supported format Joint Photographic Experts Group format (JPG). |
static ImageFileFormat |
PNG
supported format PNG. |
static ImageFileFormat |
SVG
supported format Scalable Vector Graphics (SVG). |
static ImageFileFormat[] |
VALUES
The list of values for this enumerated type. |
| Method Summary | |
static ImageFileFormat |
getDefaultImageFormat()
Retrieves the default image format. |
protected java.util.List |
getValues()
Retrieves the list of constants for this enumerated type. |
static ImageFileFormat |
resolveImageFormat(int ordinal)
resolve the selected image format to an enumerated type. |
static ImageFileFormat |
resolveImageFormat(java.lang.String imageFormat)
Resolve the selected image format to an enumerated type. |
| Methods inherited from class org.eclipse.gmf.runtime.common.core.util.EnumeratedType |
equals, getName, getOrdinal, hashCode, readResolve, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final ImageFileFormat GIF
public static final ImageFileFormat JPEG
public static final ImageFileFormat JPG
public static final ImageFileFormat BMP
public static final ImageFileFormat SVG
public static final ImageFileFormat PNG
public static final ImageFileFormat[] VALUES
| Method Detail |
protected java.util.List getValues()
getValues in class EnumeratedTypeEnumeratedType.getValues()public static ImageFileFormat getDefaultImageFormat()
public static ImageFileFormat resolveImageFormat(int ordinal)
ordinal - the selected format in the pulldown
public static ImageFileFormat resolveImageFormat(java.lang.String imageFormat)
imageFormat - the selected format.
|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.