Class ImageRepresentation
- java.lang.Object
-
- org.apache.xmlgraphics.image.loader.pipeline.ImageRepresentation
-
- All Implemented Interfaces:
java.lang.Comparable,Vertex
public class ImageRepresentation extends java.lang.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(java.lang.Object obj)booleanequals(java.lang.Object obj)ImageFlavorgetFlavor()Returns the image flavor.inthashCode()java.lang.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
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
compareTo
public int compareTo(java.lang.Object obj)
- Specified by:
compareToin interfacejava.lang.Comparable
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-