Class ImageOverlay
java.lang.Object
is.galia.operation.overlay.Overlay
is.galia.operation.overlay.ImageOverlay
- All Implemented Interfaces:
Operation
Encapsulates an image overlaid on top of another image.
Instances should be obtained from the OverlayFactory.
-
Constructor Summary
ConstructorsConstructorDescriptionImageOverlay(URI uri, Position position, int inset) Constructor for images that reside on a web server. -
Method Summary
Modifier and TypeMethodDescriptiongetURI()For reading the image, clients should useopenStream()instead.voidtoMap(Size fullSize, ScaleConstraint scaleConstraint) toString()Methods inherited from class is.galia.operation.overlay.Overlay
freeze, getInset, getPosition, getResultingSize, hasEffect, hasEffect, setInset, setPosition
-
Constructor Details
-
ImageOverlay
-
-
Method Details
-
getURI
For reading the image, clients should useopenStream()instead.- Returns:
- URI of the image.
-
openStream
- Returns:
- Stream from which the image can be read.
- Throws:
IOException
-
setURI
- Parameters:
uri- Image URI, which may be a file URI.- Throws:
IllegalStateException- If the instance is frozen.
-
toMap
-
toString
-