public class BoundaryTransformMediator extends Object implements TransformMediator
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.Constructor and Description |
---|
BoundaryTransformMediator() |
BoundaryTransformMediator(Bounds bounds) |
Modifier and Type | Method and Description |
---|---|
com.ait.lienzo.client.core.types.Transform |
adjust(com.ait.lienzo.client.core.types.Transform transform,
Bounds visibleBounds)
Adjusts a
Transform to mediate transformations. |
void |
setBounds(Bounds bounds) |
public BoundaryTransformMediator()
public BoundaryTransformMediator(Bounds bounds)
public void setBounds(Bounds bounds)
public com.ait.lienzo.client.core.types.Transform adjust(com.ait.lienzo.client.core.types.Transform transform, Bounds visibleBounds)
TransformMediator
Transform
to mediate transformations.adjust
in interface TransformMediator
transform
- The proposed Transform to be applied to the Viewport.visibleBounds
- Bounds
of the visible portion of the Viewport.Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.