Class ImageRepresentation
- java.lang.Object
-
- org.apache.xmlgraphics.image.loader.pipeline.ImageRepresentation
-
- All Implemented Interfaces:
Comparable,Vertex
public class ImageRepresentation extends Object implements Vertex
This class represents a combination of MIME type and an image flavor. It is used in conjunction with Dijkstra's algorithm to find and construct a conversion pipeline for images.
-
-
Constructor Summary
Constructors Constructor Description ImageRepresentation(ImageFlavor flavor)Main constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Object obj)booleanequals(Object obj)ImageFlavorgetFlavor()Returns the image flavor.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
ImageRepresentation
public ImageRepresentation(ImageFlavor flavor)
Main constructor- Parameters:
flavor- the image flavor
-
-
Method Detail
-
getFlavor
public ImageFlavor getFlavor()
Returns the image flavor.- Returns:
- the image flavor
-
compareTo
public int compareTo(Object obj)
- Specified by:
compareToin interfaceComparable
-
-