Class BoundaryTransformMediator

  • All Implemented Interfaces:
    org.uberfire.ext.wires.core.grids.client.widget.layer.pinning.TransformMediator

    public class BoundaryTransformMediator
    extends Object
    implements org.uberfire.ext.wires.core.grids.client.widget.layer.pinning.TransformMediator
    A TransformMediator that prevents transformations from being applied such that the "visible bounds" (i.e. the visible portion of the Viewport) would extend beyond the boundary of a notional rectangular region. This particular implementation uses a "dynamic bounds" from the underlying GridWidget
    • Constructor Detail

      • BoundaryTransformMediator

        public BoundaryTransformMediator​(org.uberfire.ext.wires.core.grids.client.widget.grid.GridWidget gridWidget)
    • Method Detail

      • adjust

        public com.ait.lienzo.client.core.types.Transform adjust​(com.ait.lienzo.client.core.types.Transform transform,
                                                                 org.uberfire.ext.wires.core.grids.client.model.Bounds visibleBounds)
        Specified by:
        adjust in interface org.uberfire.ext.wires.core.grids.client.widget.layer.pinning.TransformMediator