|
IBM Rational Software Modeler Release 6.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.xtools.common.core.internal.util.EnumeratedType
com.ibm.xtools.presentation.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.
com.ibm.xtools.uml.diagram.internal.ui.image.CopyToImageUtil
,
Serialized FormField Summary | |
static ImageFileFormat |
BMP
supported format Windows Bitmap format (BMP). |
static ImageFileFormat |
GIF
supported format Graphics Interchange Format (GIF). |
static int |
IMAGE_SVG
|
static ImageFileFormat |
JPEG
supported format Joint Photographic Experts Group format (JPEG and JPG). |
static ImageFileFormat |
JPG
|
static ImageFileFormat |
SVG
supported format Scalable Vector Graphics (SVG). |
static ImageFileFormat[] |
VALUES
The list of values for this enumerated type. |
Constructor Summary | |
protected |
ImageFileFormat(String name,
int ordinal)
Constructs a new type with the specified name and ordinal. |
Method Summary | |
static ImageFileFormat |
getDefaultImageFormat()
Retrieves the default image format. |
protected 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(String imageFormat)
Resolve the selected image format to an enumerated type. |
Methods inherited from class com.ibm.xtools.common.core.internal.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 int IMAGE_SVG
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[] VALUES
Constructor Detail |
protected ImageFileFormat(String name, int ordinal)
name
- The name of the new type.ordinal
- The ordinal for the new type.Method Detail |
protected List getValues()
EnumeratedType.getValues()
public static ImageFileFormat getDefaultImageFormat()
public static ImageFileFormat resolveImageFormat(int ordinal)
ordinal
- the selected format in the pulldown
public static ImageFileFormat resolveImageFormat(String imageFormat)
imageFormat
- the selected format.
|
IBM Rational Software Modeler Release 6.0 |
||||||||||
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. and others 2004. All rights reserved.