Package org.apache.flex.swf.tags

Examples of org.apache.flex.swf.tags.DefineMorphShape2Tag


        final long offset = bitStream.readUI32();

        final Shape startEdges = readShapeWithStyle(TagType.DefineMorphShape2);
        final Shape endEdges = readShape(TagType.DefineMorphShape2);

        final DefineMorphShape2Tag tag = new DefineMorphShape2Tag();
        tag.setCharacterID(characterId);
        tag.setStartBounds(startBounds);
        tag.setEndBounds(endBounds);
        tag.setOffset(offset);
        tag.setStartEdges(startEdges);
        tag.setEndEdges(endEdges);
        // new fields in MorphShape2
        tag.setStartEdgeBounds(startEdgeBounds);
        tag.setEndEdgeBounds(endEdgeBounds);
        tag.setUsesNonScalingStrokes(usesNonScalingStrokes);
        tag.setUsesScalingStrokes(usesScalingStrokes);

        return tag;
    }
View Full Code Here


        tagBuffer.writeUI16(tag.getCharacterID());
        writeRect(tag.getStartBounds());
        writeRect(tag.getEndBounds());
        if (TagType.DefineMorphShape2 == tag.getTagType())
        {
            final DefineMorphShape2Tag tag2 = (DefineMorphShape2Tag)tag;
            writeRect(tag2.getStartEdgeBounds());
            writeRect(tag2.getEndEdgeBounds());
            tagBuffer.writeUB(0, 6);
            tagBuffer.writeBit(tag2.isUsesNonScalingStrokes());
            tagBuffer.writeBit(tag2.isUsesScalingStrokes());
            tagBuffer.byteAlign();
        }
        final int sizeBeforeOffset = tagBuffer.size();

        // fields after "offset"
View Full Code Here

        out.print(" id=\"" + id(tag) + "\"");
        out.print(" startBounds=\"" + tag.getStartBounds() + "\"");
        out.print(" endBounds=\"" + tag.getEndBounds() + "\"");
        if (tag.getTagType() == TagType.DefineMorphShape2)
        {
            DefineMorphShape2Tag tag2 = (DefineMorphShape2Tag)tag;

            out.print(" startEdgeBounds=\"" + tag2.getStartEdgeBounds() + "\"");
            out.print(" endEdgeBounds=\"" + tag2.getEndEdgeBounds() + "\"");
            out.print(" usesNonScalingStrokes=\"" + tag2.isUsesNonScalingStrokes() + "\"");
            out.print(" usesScalingStrokes=\"" + tag2.isUsesScalingStrokes() + "\"");
        }
        end();

        // TODO: dump line styles and fill styles
        //        printMorphLineStyles(tag.lineStyles);
View Full Code Here

TOP

Related Classes of org.apache.flex.swf.tags.DefineMorphShape2Tag

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.