Package org.apache.flex.swf.types

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


            {
                flexFontInfo = new FlexFontInfo(((DefineFont4Tag)symbolTag).isFontFlagsBold(), ((DefineFont4Tag)symbolTag).isFontFlagsItalic());               
            }
        }

        Rect swfSize = swf.getFrameSize();
        if (swfSize != null)
        {
            swfWidth =  swfSize.getWidth() / ISWFConstants.TWIPS_PER_PIXEL;
            swfHeight = swfSize.getHeight() / ISWFConstants.TWIPS_PER_PIXEL;
        }
        else
        {
            result = false;
        }
View Full Code Here


    private DefineScalingGridTag readDefineScalingGrid() throws MalformedTagException
    {
        final int characterId = bitStream.readUI16();
        final ICharacterTag character = getTagById(characterId,
                TagType.DefineScalingGrid);
        final Rect splitter = readRect();

        return new DefineScalingGridTag(character, splitter);
    }
View Full Code Here

    private Rect readRect()
    {
        bitStream.byteAlign();
        final int nbits = bitStream.readUB(5);
        final Rect rect = new Rect(
                bitStream.readSB(nbits),
                bitStream.readSB(nbits),
                bitStream.readSB(nbits),
                bitStream.readSB(nbits));
        bitStream.byteAlign();
View Full Code Here

     */
    public DefineMorphShapeTag readDefineMorphShape() throws IOException, MalformedTagException
    {

        final int characterId = bitStream.readUI16();
        final Rect startBounds = readRect();
        final Rect endBounds = readRect();
        final long offset = bitStream.readUI32();

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

View Full Code Here

     * @see SWFWriter#writeDefineMorphShape2
     */
    public DefineMorphShape2Tag readDefineMorphShape2() throws IOException, MalformedTagException
    {
        final int characterId = bitStream.readUI16();
        final Rect startBounds = readRect();
        final Rect endBounds = readRect();
        final Rect startEdgeBounds = readRect();
        final Rect endEdgeBounds = readRect();
        bitStream.readUB(6); // Reserved
        final boolean usesNonScalingStrokes = bitStream.readBit();
        final boolean usesScalingStrokes = bitStream.readBit();
        // 8 bits already. No need to align.
        final long offset = bitStream.readUI32();
View Full Code Here

    private DefineTextTag readDefineText(TagType tagType) throws IOException, MalformedTagException
    {
        assert tagType == TagType.DefineText || tagType == TagType.DefineText2;

        final int characterId = bitStream.readUI16();
        final Rect textBounds = readRect();
        final Matrix textMatrix = readMatrix();
        final int glyphBits = bitStream.readUI8();
        final int advanceBits = bitStream.readUI8();
        final ArrayList<TextRecord> textRecords = new ArrayList<TextRecord>();
View Full Code Here

            y1 = y1 - stroke;
            x2 = x2 + stroke;
            y2 = y2 + stroke;
        }

      return new Rect(x1, x2, y1, y2);
    }
View Full Code Here

            y1 = y1 - stroke;
            x2 = x2 + stroke;
            y2 = y2 + stroke;
        }
        return new Rect(x1, x2, y1, y2);
    }
View Full Code Here

    }

    protected void writeCompressibleHeader()
    {
        // Frame size
        final Rect rect = swf.getFrameSize();
        tagBuffer.reset();
        writeRect(rect);
        outputBuffer.write(tagBuffer.getBytes(), 0, tagBuffer.size());

        // Frame rate
View Full Code Here

    {
        int xMin = (int)(minX * ISWFConstants.TWIPS_PER_PIXEL);
        int yMin = (int)(minY * ISWFConstants.TWIPS_PER_PIXEL);
        int xMax = (int)(maxX * ISWFConstants.TWIPS_PER_PIXEL);
        int yMax = (int)(maxY * ISWFConstants.TWIPS_PER_PIXEL);
        Rect rect = new Rect(xMin, xMax, yMin, yMax);
       
        return rect;
    }
View Full Code Here

TOP

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

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.