Examples of DashArray


Examples of com.emitrom.lienzo.client.core.types.DashArray

                context.stroke();

                context.setStrokeColor(ColorName.RED);

                context.setLineDash(new DashArray(5, 5));

                context.beginPath();

                context.moveTo(0, 5);
View Full Code Here

Examples of com.emitrom.lienzo.client.core.types.DashArray

    public final void setLineDash(double[] dashes)
    {
        if ((null != dashes) && (dashes.length > 0))
        {
            DashArray d = new DashArray();

            for (int i = 0; i < dashes.length; i++)
            {
                d.push(dashes[i]);
            }
            setLineDash(d.getJSO());
        }
    }
View Full Code Here

Examples of com.emitrom.lienzo.client.core.types.DashArray

        {
            if (attr.isDefined(Attribute.DASH_ARRAY))
            {
                if (false == LienzoGlobals.getInstance().isNativeLineDashSupported())
                {
                    DashArray dash = getDashArray();

                    if (dash != null)
                    {
                        double[] data = dash.getNormalizedArray();

                        if (data.length > 0)
                        {
                            if (setStrokeParams(context, attr, alpha))
                            {
View Full Code Here

Examples of com.emitrom.lienzo.client.core.types.DashArray

                double previousLineWidth = line.getStrokeWidth();

                line.setStrokeWidth(previousLineWidth / scale);

                DashArray previousDashes = line.getDashArray();

                if (previousDashes != null)
                {
                    double[] d = previousDashes.getNormalizedArray();

                    DashArray dashes = new DashArray();

                    for (int i = 0; i < d.length; i++)
                    {
                        dashes.push(d[i] / scale);
                    }
                    line.setDashArray(dashes);
                }
                long n1 = Math.round(min / size);
View Full Code Here

Examples of com.emitrom.lienzo.client.core.types.DashArray

        if (null != dash)
        {
            DashArrayJSO djso = dash.cast();

            return new DashArray(djso);
        }
        return new DashArray();
    }
View Full Code Here

Examples of com.emitrom.lienzo.client.core.types.DashArray

        if (attr.isDefined(Attribute.DASH_ARRAY))
        {
            if (LienzoGlobals.getInstance().isLineDashSupported())
            {
                DashArray dash = attr.getDashArray();

                if ((null != dash) && (dash.getLength() > 0))
                {
                    context.setLineDash(dash);

                    if (attr.isDefined(Attribute.DASH_OFFSET))
                    {
View Full Code Here

Examples of com.emitrom.lienzo.client.core.types.DashArray

     * @param dashes if specified, length of remaining dashes
     * @return this Line
     */
    public T setDashArray(double dash, double... dashes)
    {
        getAttributes().setDashArray(new DashArray(dash, dashes));

        return cast();
    }
View Full Code Here

Examples of com.emitrom.lienzo.client.core.types.DashArray

        if (attr.isDefined(Attribute.DASH_ARRAY))
        {
            if (LienzoGlobals.getInstance().isLineDashSupported())
            {
                DashArray dash = attr.getDashArray();

                if ((null != dash) && (dash.getLength() > 0))
                {
                    context.setLineDash(dash);

                    if (attr.isDefined(Attribute.DASH_OFFSET))
                    {
View Full Code Here

Examples of com.emitrom.lienzo.client.core.types.DashArray

     * @param dashes if specified, length of remaining dashes
     * @return this Line
     */
    public T setDashArray(double dash, double... dashes)
    {
        getAttributes().setDashArray(new DashArray(dash, dashes));

        return cast();
    }
View Full Code Here

Examples of com.emitrom.lienzo.client.core.types.DashArray

                context.stroke();

                context.setStrokeColor(ColorName.RED);

                context.setLineDash(new DashArray(5, 5));

                context.beginPath();

                context.moveTo(0, 5);
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.