Examples of ICharacterTag


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

        f.addTag(doABC);

        for (Entry<String, ICharacterTag> entrySet : assetTags.entrySet())
        {
            ICharacterTag assetTag = entrySet.getValue();
            f.addTag(assetTag);
            f.defineSymbol(assetTag, entrySet.getKey());
        }

        return true;
View Full Code Here

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

        return new ISWFTagsRequestResult()
        {
            @Override
            public boolean addToFrame(SWFFrame frame)
            {  
                ICharacterTag symbolTag = symbolClass.getSymbol();
               
                List<ITag> symbolTags = TagSorter.sortFullGraph(Collections.singletonList((ITag)symbolTag));
               
                for (ITag tag : symbolTags)
                {
View Full Code Here

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

        final ITagContainer tagContainer = swcManager.getSWFCache().get(SWFCache.createKey(assetTagCacheKey.swc, assetTagCacheKey.swfPath));
        final SymbolClassTag symbolClassTag = getSymbolClass(tagContainer);
        if (symbolClassTag == null)
            return new AssetTagCacheValue(null);

        final ICharacterTag assetTag = symbolClassTag.getSymbol(assetTagCacheKey.qname);
        AssetTagCacheValue result = new AssetTagCacheValue(assetTag);
        getAllReferredTags(assetTag, result.referredTags);

        return result;
    }
View Full Code Here

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

        tagBuffer.writeUI16(count);

        // export symbols
        for (String symbolName : tag.getSymbolNames())
        {
            final ICharacterTag characterTag = tag.getSymbol(symbolName);
            tagBuffer.writeUI16(characterTag.getCharacterID());
            tagBuffer.writeString(symbolName);
        }

        // root class name
        if (writeRootClass)
View Full Code Here

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

    private void writeExportAssets(ExportAssetsTag tag)
    {
        tagBuffer.writeUI16(tag.size());
        for (final String name : tag.getCharacterNames())
        {
            final ICharacterTag characterTag = tag.getCharacterTagByName(name);
            tagBuffer.writeUI16(characterTag.getCharacterID());
            tagBuffer.writeString(name);
        }
    }
View Full Code Here

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

    private DefineFontNameTag readFontName() throws MalformedTagException
    {
        final int fontId = bitStream.readUI16();
        final DefineFontNameTag tag = new DefineFontNameTag();
        final ICharacterTag character = getTagById(fontId, tag.getTagType());
        final String fontName = bitStream.readString();
        final String fontCopyright = bitStream.readString();

        tag.setFontTag(character);
        tag.setFontName(fontName);
View Full Code Here

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

     */
    private DefineFontAlignZonesTag readDefineFontAlignZones() throws MalformedTagException
    {
        final int fontId = bitStream.readUI16();
        final DefineFontAlignZonesTag tag = new DefineFontAlignZonesTag();
        final ICharacterTag character = getTagById(fontId, tag.getTagType());
        if (character instanceof DefineFont3Tag)
        {
            final DefineFont3Tag fontTag = (DefineFont3Tag)character;
            bitStream.byteAlign();
            final int csmTableHint = bitStream.readUB(2);
View Full Code Here

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

    private ITag readDefineFontInfo(TagType type) throws IOException, MalformedTagException
    {
        assert type == TagType.DefineFontInfo || type == TagType.DefineFontInfo2 : "unknown tag type in readDefineFontInfo";

        final int fontId = bitStream.readUI16();
        final ICharacterTag fontTag = getTagById(fontId, type);
        final String fontName = readLengthString();
        final int reserved = bitStream.readUB(2);
        final boolean smallText = bitStream.readBit();
        final boolean shiftJIS = bitStream.readBit();
        final boolean ansi = bitStream.readBit();
View Full Code Here

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

        DefineBitsTag image = buildImage(bytes, problems);
        if (image == null)
            return null;

        ICharacterTag assetTag;
        if (scaling)
        {
            assetTag = buildSlicedSprite(image, imageInfo.widthInTwips, imageInfo.heightInTwips, tags, problems);
        }
        else if (smoothing)
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.