private double getEventPos(final int dimension, final double x, final double y) {
        if (dimension == Dimension.X) {
            return x;
        }

        return y;
    }
Convenience method to transfer position and size data to an element.
stroom-core-client/src/main/java/stroom/dashboard/client/flexlayout/FlexLayout.java