Class ImageConversionEdge
- java.lang.Object
-
- org.apache.xmlgraphics.image.loader.pipeline.ImageConversionEdge
-
-
Field Summary
Fields Modifier and Type Field Description private ImageConverter
converter
private int
penalty
private ImageRepresentation
source
private ImageRepresentation
target
-
Constructor Summary
Constructors Constructor Description ImageConversionEdge(ImageConverter converter, Penalty penalty)
Main constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Field Detail
-
source
private ImageRepresentation source
-
target
private ImageRepresentation target
-
converter
private ImageConverter converter
-
penalty
private int penalty
-
-
Constructor Detail
-
ImageConversionEdge
public ImageConversionEdge(ImageConverter converter, Penalty penalty)
Main constructor.- Parameters:
converter
- the image converterpenalty
- the penalty for this edge
-
-
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 interfaceEdge
- Returns:
- the penalty value (must be non-negative)
-
getStart
public Vertex getStart()
Returns the start vertex of the edge.
-
-