ImageOptions abstract class
Specifies additional options to control how an image is bundled.
abstract class ImageOptions {
/**
* If <code>true</code>, the image will be flipped about the y-axis when
* {@link com.google.gwt.i18n.client.LocaleInfo#isRTL()} returns
* <code>true</code>. This is intended to be used by graphics that are
* sensitive to layout direction, such as arrows and disclosure indicators.
*/
bool flipRtl(); // default false;
/**
* Set to a positive value to override the image's intrinsic height. The
* image bundling code will scale the image to the desired height. If only
* one of <code>width</code> or <code>height</code> are set, the aspect
* ratio of the image will be maintained.
*/
int height(); // default -1;
/**
* Set to {@code true} to require the ImageResource to be downloaded as a
* separate resource at runtime. Specifically, this will disable the use of
* {@code data:} URLs or other bundling optimizations for the image. This
* can be used for infrequently-displayed images.
*/
bool preventInlining(); // default false;
/**
* This option affects the image bundling optimization to allow the image to
* be used with the {@link CssResource} {@code @sprite} rule where
* repetition of the image is desired.
*
* @see "CssResource documentation"
*/
// http://bugs.sun.com/view_bug.do?bug_id=6512707
RepeatStyle repeatStyle(); // default com.google.gwt.resources.client.ImageResource.RepeatStyle.None;
/**
* Set to a positive value to override the image's intrinsic width. The
* image bundling code will scale the image to the desired width. If only
* one of <code>width</code> or <code>height</code> are set, the aspect
* ratio of the image will be maintained.
*/
int width(); // default -1;
}
Methods
abstract bool flipRtl() #
If <code>true</code>, the image will be flipped about the y-axis when {@link com.google.gwt.i18n.client.LocaleInfo#isRTL()} returns <code>true</code>. This is intended to be used by graphics that are sensitive to layout direction, such as arrows and disclosure indicators.
abstract int height() #
Set to a positive value to override the image's intrinsic height. The image bundling code will scale the image to the desired height. If only one of <code>width</code> or <code>height</code> are set, the aspect ratio of the image will be maintained.
abstract bool preventInlining() #
Set to {@code true} to require the ImageResource to be downloaded as a separate resource at runtime. Specifically, this will disable the use of {@code data:} URLs or other bundling optimizations for the image. This can be used for infrequently-displayed images.
abstract RepeatStyle repeatStyle() #
This option affects the image bundling optimization to allow the image to be used with the {@link CssResource} {@code @sprite} rule where repetition of the image is desired.
@see "CssResource documentation"
abstract int width() #
Set to a positive value to override the image's intrinsic width. The image bundling code will scale the image to the desired width. If only one of <code>width</code> or <code>height</code> are set, the aspect ratio of the image will be maintained.