Class Overlay
java.lang.Object
is.galia.operation.overlay.Overlay
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfreeze()Makes the instance unmodifiable.intgetInset()getResultingSize(Size fullSize) booleanSimpler but less-accurate counterpart ofOperation.hasEffect(Size, OperationList).booleanhasEffect(Size fullSize, OperationList opList) Context-aware counterpart toOperation.hasEffect().voidsetInset(int inset) voidsetPosition(Position position) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface is.galia.operation.Operation
getResultingSize, toMap, validate
-
Constructor Details
-
Overlay
-
-
Method Details
-
freeze
public void freeze()Description copied from interface:OperationMakes the instance unmodifiable. When frozen, mutation methods should throw anIllegalStateExceptionand getters should return immutable values, if possible. (But they should do that anyway.) -
getInset
public int getInset() -
getPosition
-
getResultingSize
-
hasEffect
public boolean hasEffect()Description copied from interface:OperationSimpler but less-accurate counterpart ofOperation.hasEffect(Size, OperationList). -
hasEffect
Description copied from interface:OperationContext-aware counterpart toOperation.hasEffect(). For example, a scale operation specifying a scale to 300×200, when the given operation list contains a crop of 300×200, would returnfalse.- Specified by:
hasEffectin interfaceOperation- Parameters:
fullSize- Full size of the source image.opList- Operation list of which the operation may or may not be a member.- Returns:
- Whether applying the operation in the context of the given full size and operation list would result in a changed image.
-
setInset
public void setInset(int inset) - Parameters:
inset- Inset to set.- Throws:
IllegalStateException- if the instance is frozen.
-
setPosition
- Parameters:
position- Position to set.- Throws:
IllegalStateException- if the instance is frozen.
-