Class OverlayObjectMask
An implementation of
Overlay that draws an ObjectMask on an image.- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionOverlayObjectMask(ObjectMask object, int id) Creates with a particularObjectMaskand identifier. -
Method Summary
Modifier and TypeMethodDescriptionbox(DrawOverlay overlayWriter, Dimensions dimensions) A bounding-box around the overlay.createObject(Dimensions dimensionsEntireImage, BinaryValuesByte binaryValuesOut) Derives an object-mask representation of the overlay to be drawn withoverlayWriter.booleanTheObjectMaskto draw.inthashCode()
-
Constructor Details
-
OverlayObjectMask
Creates with a particularObjectMaskand identifier.- Parameters:
object- the object-mask.id- the identifier.
-
-
Method Details
-
box
Description copied from class:OverlayA bounding-box around the overlay. -
createObject
public ObjectWithProperties createObject(Dimensions dimensionsEntireImage, BinaryValuesByte binaryValuesOut) throws CreateException Description copied from class:OverlayDerives an object-mask representation of the overlay to be drawn withoverlayWriter.- Specified by:
createObjectin classOverlay- Parameters:
dimensionsEntireImage- how large the image is onto which the overlay will be drawn.binaryValuesOut- what constitutes on and off pixels in the produced object-mask.- Returns:
- the created object-mask with associated properties.
- Throws:
CreateException- if the object cannot be created successfully.
-
equals
-
hashCode
public int hashCode() -
getObject
TheObjectMaskto draw.
-