Class CmsTranslate
- java.lang.Object
-
- org.opencms.ade.galleries.client.preview.util.CmsTranslate
-
- All Implemented Interfaces:
I_CmsTransform
public class CmsTranslate extends java.lang.Object implements I_CmsTransform
Simple translation by x/y offset.
-
-
Constructor Summary
Constructors Constructor Description CmsTranslate(double cx, double cy)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
org.opencms.ade.galleries.shared.CmsPoint
transformBack(org.opencms.ade.galleries.shared.CmsPoint point)
Applies the inverse of the transformation to a point.org.opencms.ade.galleries.shared.CmsPoint
transformForward(org.opencms.ade.galleries.shared.CmsPoint point)
Applies the transformation to a point.
-
-
-
Constructor Detail
-
CmsTranslate
public CmsTranslate(double cx, double cy)
Creates a new instance.- Parameters:
cx
- the horizontal offsetcy
- the vertical offset
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
transformBack
public org.opencms.ade.galleries.shared.CmsPoint transformBack(org.opencms.ade.galleries.shared.CmsPoint point)
Description copied from interface:I_CmsTransform
Applies the inverse of the transformation to a point.- Specified by:
transformBack
in interfaceI_CmsTransform
- Parameters:
point
- the point- Returns:
- the transformed point
- See Also:
I_CmsTransform.transformBack(org.opencms.ade.galleries.shared.CmsPoint)
-
transformForward
public org.opencms.ade.galleries.shared.CmsPoint transformForward(org.opencms.ade.galleries.shared.CmsPoint point)
Description copied from interface:I_CmsTransform
Applies the transformation to a point.- Specified by:
transformForward
in interfaceI_CmsTransform
- Parameters:
point
- the point- Returns:
- the transformed point
- See Also:
I_CmsTransform.transformForward(org.opencms.ade.galleries.shared.CmsPoint)
-
-