HImageHints

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

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

## org.havi.ui
Class HImageHints

    java.lang.Object
      org.havi.ui.HImageHints

    public class HImageHints

extends Object

The `HImageHints` object allows an application to pass hints to the system how best to tailor an image to match a (possibly) restricted `HGraphicsConfiguration`.

The parameters to the constructors are as follows, in cases where parameters are not used, then the constructor should use the default values.

### Default parameter values exposed in the constructors

Parameter | Description | Default value | Set method | Get method
--- | --- | --- | --- | ---

### Default parameter values not exposed in the constructors

Description | Default value | Set method | Get method
--- | --- | --- | ---
The image type. | `NATURAL_IMAGE` | --- | ---

Field Summary
`static int` | `BUSINESS_GRAPHICS` The image is business graphics, with strong, well-defined, blocks of solid color, etc.
`static int` | `CARTOON` The image is a cartoon, with strong, well-defined, blocks of solid color, etc.
`static int` | `LINE_ART` The image is a two-tone lineart, with colors varying between foreground and background, etc.
`static int` | `NATURAL_IMAGE` The image is a "natural" scene, with subtle gradations of color, etc.

Constructor Summary
`HImageHints()` Creates an HImageHints object.

Method Summary
`int` | `getType()` Get the expected type of the image being loaded.
`void` | `setType(int type)` Set the expected type of the image being loaded.

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

Field Detail

### NATURAL_IMAGE

    public static final int NATURAL_IMAGE

  The image is a "natural" scene, with subtle gradations of color, etc. Suitable for dithering.

  See Also:
    Constant Field Values

### CARTOON

    public static final int CARTOON

  The image is a cartoon, with strong, well-defined, blocks of solid color, etc. Not suitable for dithering, suitable for nearest color matching.

  See Also:
    Constant Field Values

### BUSINESS_GRAPHICS

    public static final int BUSINESS_GRAPHICS

  The image is business graphics, with strong, well-defined, blocks of solid color, etc. Not suitable for dithering, suitable for nearest color matching.

  See Also:
    Constant Field Values

### LINE_ART

    public static final int LINE_ART

  The image is a two-tone lineart, with colors varying between foreground and background, etc. Not suitable for dithering. Possibly suitable for color-map adjustment, etc., if applicable.

  See Also:
    Constant Field Values

Constructor Detail

### HImageHints

    public HImageHints()

  Creates an HImageHints object. See the class description for details of constructor parameters and default values.

Method Detail

### setType

    public void setType(int type)

  Set the expected type of the image being loaded.

  Parameters:
    `type` - the expected type of image

### getType

    public int getType()

  Get the expected type of the image being loaded.

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

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