xmlgraphics-commons 1.3

org.apache.xmlgraphics.image.loader.pipeline
Class ImageConversionEdge

java.lang.Object
  extended by org.apache.xmlgraphics.image.loader.pipeline.ImageConversionEdge
All Implemented Interfaces:
Edge

public class ImageConversionEdge
extends java.lang.Object
implements Edge

Represents an image conversion. The class basically wraps an ImageConverter so it can be used with Dijkstra's shortest route algorithm to build image conversion pipelines.


Constructor Summary
ImageConversionEdge(ImageConverter converter)
          Main constructor.
 
Method Summary
 Vertex getEnd()
          Returns the end vertex of the edge.
 ImageConverter getImageConverter()
          Returns the wrapped ImageConverter.
 int getPenalty()
          Returns the penalty (or distance) for this edge.
 Vertex getStart()
          Returns the start vertex of the edge.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageConversionEdge

public ImageConversionEdge(ImageConverter converter)
Main constructor.

Parameters:
converter - the image converter
Method Detail

getImageConverter

public ImageConverter getImageConverter()
Returns the wrapped ImageConverter.

Returns:
the ImageConverter

getPenalty

public int getPenalty()
Returns the penalty (or distance) for this edge.

Specified by:
getPenalty in interface Edge
Returns:
the penalty value (must be non-negative)

getStart

public Vertex getStart()
Returns the start vertex of the edge.

Specified by:
getStart in interface Edge
Returns:
the start vertex

getEnd

public Vertex getEnd()
Returns the end vertex of the edge.

Specified by:
getEnd in interface Edge
Returns:
the end vertex

xmlgraphics-commons 1.3

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.