Examples of mTranslate()


Examples of org.w3c.dom.svg.SVGMatrix.mTranslate()

    private void updateCursor(final int deltaX, final int deltaY) {
        // Translate the cursor pointer.
        final int translateX = clampDelta(0, _displayWidth, _cursorX, deltaX);
        final int translateY = clampDelta(0, _displayHeight, _cursorY, deltaY);
        final SVGMatrix transform = _cursor.getMatrixTrait("transform");
        transform.mTranslate(translateX, translateY);
        _cursor.setMatrixTrait("transform", transform);

        // Update cursor position Text
        _cursorX = MathUtilities.clamp(0, _cursorX + translateX, _displayWidth);
        _cursorY =
View Full Code Here

Examples of org.w3c.dom.svg.SVGMatrix.mTranslate()

        _spiralElement.setFloatTrait("fill-opacity", 0.9f);

        // Do some transformations on the path.
        final SVGMatrix transform = _spiralElement.getMatrixTrait("transform");
        if (_displayHeight > _displayWidth) {
            transform.mTranslate(Util.convertDefaultValue(110, true), 0);
        } else {
            transform.mTranslate(0, Util.convertDefaultValue(-110, true));
        }

        _spiralElement.setMatrixTrait("transform", transform);
View Full Code Here

Examples of org.w3c.dom.svg.SVGMatrix.mTranslate()

        // Do some transformations on the path.
        final SVGMatrix transform = _spiralElement.getMatrixTrait("transform");
        if (_displayHeight > _displayWidth) {
            transform.mTranslate(Util.convertDefaultValue(110, true), 0);
        } else {
            transform.mTranslate(0, Util.convertDefaultValue(-110, true));
        }

        _spiralElement.setMatrixTrait("transform", transform);

        // Create an image element.
View Full Code Here

Examples of org.w3c.dom.svg.SVGMatrix.mTranslate()

                    false));

            final SVGMatrix transform =
                    _spiralElement.getMatrixTrait("transform");
            if (_displayHeight > _displayWidth) {
                transform.mTranslate(Util.convertDefaultValue(-70, true), Util
                        .convertDefaultValue(40, false));
            } else {
                transform.mTranslate(Util.convertDefaultValue(60, true), Util
                        .convertDefaultValue(-50, false));
            }
View Full Code Here

Examples of org.w3c.dom.svg.SVGMatrix.mTranslate()

                    _spiralElement.getMatrixTrait("transform");
            if (_displayHeight > _displayWidth) {
                transform.mTranslate(Util.convertDefaultValue(-70, true), Util
                        .convertDefaultValue(40, false));
            } else {
                transform.mTranslate(Util.convertDefaultValue(60, true), Util
                        .convertDefaultValue(-50, false));
            }

            _spiralElement.setMatrixTrait("transform", transform);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.