Class ImageConversionEdge
- java.lang.Object
-
- org.apache.xmlgraphics.image.loader.pipeline.ImageConversionEdge
-
-
Field Summary
Fields Modifier and Type Field Description private ImageConverterconverterprivate intpenaltyprivate ImageRepresentationsourceprivate ImageRepresentationtarget
-
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 VertexgetEnd()Returns the end vertex of the edge.ImageConvertergetImageConverter()Returns the wrapped ImageConverter.intgetPenalty()Returns the penalty (or distance) for this edge.VertexgetStart()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:
getPenaltyin interfaceEdge- Returns:
- the penalty value (must be non-negative)
-
getStart
public Vertex getStart()
Returns the start vertex of the edge.
-
-