Package org.apache.flex.swf.types

Examples of org.apache.flex.swf.types.LineStyle


        {
            indent();
            out.print("<linestyle ");
            if (lineStyle instanceof LineStyle)
            {
                LineStyle ls = (LineStyle)lineStyle;
                String color = printColor(ls.getColor());
                out.print("color=\"" + color + "\" ");
                out.print("width=\"" + ls.getWidth() + "\" ");
            }

            if (lineStyle instanceof LineStyle2)
            {
                LineStyle2 lineStyle2 = (LineStyle2)lineStyle;
View Full Code Here


        {
            result = readMorphLineStyle2(tagType);
        }
        else if (tagType == TagType.DefineShape3)
        {
            LineStyle ls = new LineStyle();
            result = ls;
            ls.setWidth(bitStream.readUI16());
            ls.setColor(readRGBA());
        }
        else
        {
            LineStyle ls = new LineStyle();
            result = ls;
            ls.setWidth(bitStream.readUI16());
            ls.setColor(readRGB());
        }
        return result;
    }
View Full Code Here

        }

        if (stroke != null)
        {
          //find the shapeBounds with stroke
          LineStyle ls = createGenericLineStyle((AbstractStrokeNode)stroke);
            shapeBounds = (node == null) ? ShapeHelper.getBounds(shapeRecords, ls, (AbstractStrokeNode)stroke) : node.getBounds(shapeRecords, ls);         

            LineStyle lineStyle = createLineStyle(stroke, shapeBounds);
            lineStyles.add(lineStyle);           
        }
        else
        {
          shapeBounds = edgeBounds;
View Full Code Here

                //generate the define sprite for the stroke object with no clipping
                ShapeWithStyle swsStroke = new ShapeWithStyle(strokeStyles);

                // Consider linestyle stroke widths with bounds calculation              
                AbstractStrokeNode strokeNode = (AbstractStrokeNode) stroke;
                LineStyle ls = createGenericLineStyle(strokeNode);
                Rect shapeBounds =  node.getBounds(shapeRecords2, ls);    
               
                LineStyle lineStyle = createLineStyle(stroke, shapeBounds);
                swsStroke.getLineStyles().add(lineStyle);
               
                lineStyleIndex = 1;
                fillStyle0Index = 0;
                fillStyle1Index = 0;
View Full Code Here

       
        return ls;
    }
    protected LineStyle createLineStyle(SolidColorStrokeNode stroke)
    {
        LineStyle ls = createGenericLineStyle(stroke);
        ls.setColor(TypeHelper.splitColor(TypeHelper.colorARGB(stroke.color, stroke.alpha)));
        return ls;
    }
View Full Code Here

TOP

Related Classes of org.apache.flex.swf.types.LineStyle

Copyright © 2018 www.massapicom. 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.