Examples of StyleChangeRecord


Examples of flash.swf.types.StyleChangeRecord

        if (r == null)
          continue;

        if (r instanceof StyleChangeRecord)
        {
          StyleChangeRecord scr = (StyleChangeRecord)r;
          x = scr.moveDeltaX;
          y = scr.moveDeltaY;
          if (firstMove)
          {
            x1 = x;
View Full Code Here

Examples of flash.swf.types.StyleChangeRecord

      {
        indent();
        ShapeRecord shape = (ShapeRecord)it.next();
        if (shape instanceof StyleChangeRecord)
        {
          StyleChangeRecord styleChange = (StyleChangeRecord)shape;
          out.print("<styleChange ");
          if (styleChange.stateMoveTo)
          {
            out.print("dx='" + styleChange.moveDeltaX + "' dy='" + styleChange.moveDeltaY + "' ");
          }
View Full Code Here

Examples of flash.swf.types.StyleChangeRecord

      {
        indent();
        ShapeRecord shape = (ShapeRecord)it.next();
        if (shape instanceof StyleChangeRecord)
        {
          StyleChangeRecord styleChange = (StyleChangeRecord)shape;
          out.print("SSCR" + styleChange.nMoveBits() + "\t");
          if (styleChange.stateMoveTo)
          {
            out.print(styleChange.moveDeltaX + "\t" + styleChange.moveDeltaY);
           
            if (startX == 0 && startY == 0)
View Full Code Here

Examples of flash.swf.types.StyleChangeRecord

     * @return list of ShapeRecords representing the rectangle.
     */
    public static List<ShapeRecord> implicitClosepath(double startX, double startY, double endX, double endY)
    {
        List<ShapeRecord> shapeRecords = new ArrayList<ShapeRecord>();
        StyleChangeRecord scr = move(startX, startY);
        scr.setLinestyle(0);
        shapeRecords.add(scr);
        shapeRecords.addAll(straightEdge(startX, startY, endX, endY));
        return shapeRecords;
    }
View Full Code Here

Examples of flash.swf.types.StyleChangeRecord

        if (shapeRecords != null && shapeRecords.size() > 0)
        {
            ShapeRecord firstRecord = shapeRecords.get(0);
            if (firstRecord instanceof StyleChangeRecord)
            {
                StyleChangeRecord scr = (StyleChangeRecord)firstRecord;

                if (fillStyle0Index > 0)
                    scr.setFillStyle0(fillStyle0Index);

                if (fillStyle1Index > 0)
                    scr.setFillStyle1(fillStyle1Index);

                if (lineStyleIndex > 0)
                    scr.setLinestyle(lineStyleIndex);
            }
        }
    }
View Full Code Here

Examples of flash.swf.types.StyleChangeRecord

            for (int i = 0; i < shapeRecords.size(); i++)
            {
                ShapeRecord record = shapeRecords.get(i);
                if (record instanceof StyleChangeRecord)
                {
                    StyleChangeRecord scr = (StyleChangeRecord)record;

                    if (fillStyle0Index > 0)
                        scr.setFillStyle0(fillStyle0Index);

                    if (fillStyle1Index > 0)
                        scr.setFillStyle1(fillStyle1Index);

                    if ((!scr.stateLineStyle) && (lineStyleIndex > 0))
                        scr.setLinestyle(lineStyleIndex);
                   
                }
            }
        }
    }
View Full Code Here

Examples of flash.swf.types.StyleChangeRecord

            for (int i = 0; i < shapeRecords.size(); i++)
            {
                ShapeRecord record = shapeRecords.get(i);
                if (record instanceof StyleChangeRecord)
                {
                    StyleChangeRecord old_scr = (StyleChangeRecord) record;
                    StyleChangeRecord new_scr =  new StyleChangeRecord();

                    if (fillStyle0Index > 0)
                        new_scr.setFillStyle0(fillStyle0Index);

                    if (fillStyle1Index > 0)
                        new_scr.setFillStyle1(fillStyle1Index);

                    if ((!old_scr.stateLineStyle) && (lineStyleIndex > 0))
                        new_scr.setLinestyle(lineStyleIndex);
                    else
                        new_scr.setLinestyle(old_scr.linestyle);
                   
                    if (old_scr.stateMoveTo)
                        new_scr.setMove(old_scr.moveDeltaX, old_scr.moveDeltaY);
                   
                    shapeRecords.set(i, new_scr);
                   
                }
            }
View Full Code Here

Examples of flash.swf.types.StyleChangeRecord

        y *= TWIPS_PER_PIXEL;

        int moveX = (int)x;
        int moveY = (int)y;

        StyleChangeRecord scr = new StyleChangeRecord();
       
        scr.setMove(moveX, moveY);

        return scr;
    }
View Full Code Here

Examples of flash.swf.types.StyleChangeRecord

            if (r == null)
                continue;

            if (r instanceof StyleChangeRecord)
            {
                StyleChangeRecord scr = (StyleChangeRecord)r;
                x = scr.moveDeltaX;
                y = scr.moveDeltaY;
                if (firstMove)
                {
                    x1 = x;
View Full Code Here

Examples of flash.swf.types.StyleChangeRecord

        for(int i=0; i<records.size(); i++)
        {
            record = records.get(i);
            if (record instanceof StyleChangeRecord)
            {
                StyleChangeRecord scr = (StyleChangeRecord)record;
                coordinates[i][0] = scr.moveDeltaX;
                coordinates[i][1] = scr.moveDeltaY;
            }
            else if (record instanceof StraightEdgeRecord)
            {
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.