com.vividsolutions.wms
Class MapImageFormatChooser

java.lang.Object
  extended by com.vividsolutions.wms.MapImageFormatChooser

public class MapImageFormatChooser
extends java.lang.Object

A Utility class to select the optimal Map Format based on some preferences.

Author:
Chris Hodgson chodgson@refractions.net

Constructor Summary
MapImageFormatChooser()
          Creates a new instance of MapImageFormatChooser.
 
Method Summary
 java.lang.String chooseFormat(java.lang.String[] formats)
           
static boolean isKnownFormat(java.lang.String format)
           
 void setPreferLossyCompression(boolean useLossy)
           
 void setTransparencyRequired(boolean transparencyRequired)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapImageFormatChooser

public MapImageFormatChooser()
Creates a new instance of MapImageFormatChooser.

Method Detail

isKnownFormat

public static boolean isKnownFormat(java.lang.String format)

setTransparencyRequired

public void setTransparencyRequired(boolean transparencyRequired)

setPreferLossyCompression

public void setPreferLossyCompression(boolean useLossy)

chooseFormat

public java.lang.String chooseFormat(java.lang.String[] formats)