info.magnolia.imaging
Class OutputFormat

java.lang.Object
  extended by info.magnolia.imaging.OutputFormat
All Implemented Interfaces:
Cloneable

public class OutputFormat
extends Object
implements Cloneable

A simple bean holding image formatName output configuration. This is used to get the appropriate ImageWriter and applied to its underlying javax.imageio.ImageWriteParam. It's also exposing a simpler API, making it easier to configure through a tree/gui.

Version:
$Id$

Constructor Summary
OutputFormat()
           
OutputFormat(String formatName, boolean progressive, int quality, String compressionType)
           
OutputFormat(String formatName, boolean progressive, int quality, String compressionType, boolean dynamicFormatType)
          Deprecated. since 2.1, implement ImageGenerator.getOutputFormat(ParameterProvider) instead
 
Method Summary
 void applyTo(ImageWriteParam param)
           
 OutputFormat clone()
           
 String getCompressionType()
           
 boolean getDynamicFormatType()
          Deprecated. since 2.1, implement ImageGenerator.getOutputFormat(ParameterProvider) instead
 String getFormatName()
           
 int getQuality()
           
 boolean isProgressive()
           
 void setCompressionType(String compressionType)
           
 void setDynamicFormatType(boolean dynamicFormatType)
          Deprecated. since 2.1, implement ImageGenerator.getOutputFormat(ParameterProvider) instead
 void setFormatName(String formatName)
           
 void setProgressive(boolean progressive)
           
 void setQuality(int quality)
           
 boolean supportsTransparency()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputFormat

public OutputFormat()

OutputFormat

public OutputFormat(String formatName,
                    boolean progressive,
                    int quality,
                    String compressionType)

OutputFormat

public OutputFormat(String formatName,
                    boolean progressive,
                    int quality,
                    String compressionType,
                    boolean dynamicFormatType)
Deprecated. since 2.1, implement ImageGenerator.getOutputFormat(ParameterProvider) instead

Method Detail

applyTo

public void applyTo(ImageWriteParam param)

supportsTransparency

public boolean supportsTransparency()

getFormatName

public String getFormatName()

setFormatName

public void setFormatName(String formatName)

isProgressive

public boolean isProgressive()

setProgressive

public void setProgressive(boolean progressive)

getQuality

public int getQuality()

setQuality

public void setQuality(int quality)

getCompressionType

public String getCompressionType()

setCompressionType

public void setCompressionType(String compressionType)

getDynamicFormatType

public boolean getDynamicFormatType()
Deprecated. since 2.1, implement ImageGenerator.getOutputFormat(ParameterProvider) instead


setDynamicFormatType

public void setDynamicFormatType(boolean dynamicFormatType)
Deprecated. since 2.1, implement ImageGenerator.getOutputFormat(ParameterProvider) instead


clone

public OutputFormat clone()
                   throws CloneNotSupportedException
Overrides:
clone in class Object
Throws:
CloneNotSupportedException


Copyright © 2014 Magnolia International Ltd.. All Rights Reserved.