Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD

## org.jvnet.substance.api
Enum SubstanceConstants.ImageWatermarkKind

    java.lang.Object
      java.lang.Enum<SubstanceConstants.ImageWatermarkKind>
          org.jvnet.substance.api.SubstanceConstants.ImageWatermarkKind

All Implemented Interfaces:
  java.io.Serializable, java.lang.Comparable<SubstanceConstants.ImageWatermarkKind>

Enclosing class:
  SubstanceConstants

    public static enum SubstanceConstants.ImageWatermarkKind

extends java.lang.Enum<SubstanceConstants.ImageWatermarkKind>

Enumerates of image-based watermarks kinds.

Author:
  Kirill Grouchnikov
See Also:
  `SubstanceLookAndFeel#setImageWatermarkKind(org.jvnet.substance.utils. SubstanceConstants.ImageWatermarkKind)`, `SubstanceLookAndFeel#getImageWatermarkKind()`

Enum Constant Summary
`APP_ANCHOR` The image is anchored to the top-left corner of the application frame and not scaled.
`APP_CENTER` The image is anchored to the center of the application frame and not scaled.
`APP_TILE` The image is tiled starting from the top-left corner of the application frame and not scaled.
`SCREEN_CENTER_SCALE` The default behaviour.
`SCREEN_TILE` The image is tiled starting from the screen top-left corner and not scaled.

Method Summary
`static SubstanceConstants.ImageWatermarkKind` | `valueOf(java.lang.String name)` Returns the enum constant of this type with the specified name.
`static SubstanceConstants.ImageWatermarkKind[]` | `values()` Returns an array containing the constants of this enum type, in the order they are declared.

Methods inherited from class java.lang.Enum
`clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf`

Methods inherited from class java.lang.Object
`getClass, notify, notifyAll, wait, wait, wait`

Enum Constant Detail

### SCREEN_CENTER_SCALE

    public static final SubstanceConstants.ImageWatermarkKind SCREEN_CENTER_SCALE

  The default behaviour. The image is centered in the screen and scaled down if necessary.

### SCREEN_TILE

    public static final SubstanceConstants.ImageWatermarkKind SCREEN_TILE

  The image is tiled starting from the screen top-left corner and not scaled.

### APP_ANCHOR

    public static final SubstanceConstants.ImageWatermarkKind APP_ANCHOR

  The image is anchored to the top-left corner of the application frame and not scaled.

### APP_CENTER

    public static final SubstanceConstants.ImageWatermarkKind APP_CENTER

  The image is anchored to the center of the application frame and not scaled.

### APP_TILE

    public static final SubstanceConstants.ImageWatermarkKind APP_TILE

  The image is tiled starting from the top-left corner of the application frame and not scaled.

Method Detail

### values

    public static SubstanceConstants.ImageWatermarkKind[] values()

  Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:

      for (SubstanceConstants.ImageWatermarkKind c : SubstanceConstants.ImageWatermarkKind.values())
          System.out.println(c);

  Returns:
    an array containing the constants of this enum type, in the order they are declared

### valueOf

    public static SubstanceConstants.ImageWatermarkKind valueOf(java.lang.String name)

  Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

  Parameters:
    `name` - the name of the enum constant to be returned.
  Returns:
    the enum constant with the specified name
  Throws:
    `java.lang.IllegalArgumentException` - if this enum type has no constant with the specified name
    `java.lang.NullPointerException` - if the argument is null

Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD