public static enum ImageCell.ScaleMode extends java.lang.Enum<ImageCell.ScaleMode>
Enum Constant and Description |
---|
FILL
The image is scaled to the minimum size required to cover the entire cell.
|
FIT
The image is scaled to the maximum size that fits into the cell.
|
NONE
The image is displayed in its original size.
|
STRETCH
The image is scaled to the exact bounds of the cell.
|
Modifier and Type | Method and Description |
---|---|
static ImageCell.ScaleMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ImageCell.ScaleMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ImageCell.ScaleMode NONE
public static final ImageCell.ScaleMode FIT
public static final ImageCell.ScaleMode FILL
public static final ImageCell.ScaleMode STRETCH
public static ImageCell.ScaleMode[] values()
for (ImageCell.ScaleMode c : ImageCell.ScaleMode.values()) System.out.println(c);
public static ImageCell.ScaleMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
Copyright (c) EclipseSource and others 2002, 2016.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0