public class MapImageFormatChooser
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String[][] |
IMAGE_FORMATS |
| Constructor and Description |
|---|
MapImageFormatChooser()
Creates a new instance of MapImageFormatChooser.
|
MapImageFormatChooser(java.lang.String wmsVersion)
Creates a new instance of MapImageFormatChooser.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
chooseFormat(java.lang.String[] formats)
Returns a format String from the Array of available formats which best
matches the requirements and preferences specified.
|
static boolean |
isKnownFormat(java.lang.String format)
Returns true if the specified format is known by the MapFormatChooser, false
otherwise.
|
void |
setPreferLossyCompression(boolean useLossy)
Sets whether lossy compression is preferred over non-lossy compression.
|
void |
setTransparencyRequired(boolean transparencyRequired)
Sets whether tranparency is required in the image format.
|
public MapImageFormatChooser()
public MapImageFormatChooser(java.lang.String wmsVersion)
public static boolean isKnownFormat(java.lang.String format)
format - the format which is in questionpublic void setTransparencyRequired(boolean transparencyRequired)
transparencyRequired - true if the image format chosen needs to support
transparencypublic void setPreferLossyCompression(boolean useLossy)
useLossy - true if lossy compression is preferrablepublic java.lang.String chooseFormat(java.lang.String[] formats)
formats - the array of available formats to choose from