Class OverlayImageProvider
java.lang.Object
org.eclipse.emf.compare.provider.spec.OverlayImageProvider
Utility class to externalize the retrieval of difference overlay.
-
Constructor Summary
ConstructorDescriptionOverlayImageProvider
(ResourceLocator resourceLocator) Creates a new instance with the given resource locator. -
Method Summary
Modifier and TypeMethodDescriptiongetComposedImage
(Object object, Object imageToCompose) Returns a composed image with the image of the given object and the appropriate overlay.getComposedImage
(Diff diff, Object imageToCompose) Returns a composed image with the image of the given diff the appropriate overlay.getComposedImage
(Match match, Object imageToCompose) Returns a composed image with the image of the given match the appropriate overlay.
-
Constructor Details
-
OverlayImageProvider
Creates a new instance with the given resource locator.- Parameters:
resourceLocator
- the resource locator to use to retrieve images
-
-
Method Details
-
getComposedImage
Returns a composed image with the image of the given diff the appropriate overlay.- Parameters:
diff
- the diff for which we have to find an overlay.imageToCompose
- the image of the diff to use as base.- Returns:
- a composed image with the image of the given diff the appropriate overlay.
-
getComposedImage
Returns a composed image with the image of the given match the appropriate overlay.- Parameters:
match
- the match for which we have to find an overlay.imageToCompose
- the image of the match to use as base.- Returns:
- a composed image with the image of the given match the appropriate overlay.
-
getComposedImage
Returns a composed image with the image of the given object and the appropriate overlay.- Parameters:
object
- the object for which we have to find an overlay.imageToCompose
- the image of the match to use as base.- Returns:
- a composed image with the image of the given object and the appropriate overlay.
- Since:
- 4.0
-