Examples of TextRecord


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

        if (!textRecordType)
            return null;

        bitStream.readUB(3); // reserved

        final TextRecord textRecord = new TextRecord();
        textRecord.setStyleFlagsHasFont(bitStream.readBit());
        textRecord.setStyleFlagsHasColor(bitStream.readBit());
        textRecord.setStyleFlagsHasYOffset(bitStream.readBit());
        textRecord.setStyleFlagsHasXOffset(bitStream.readBit());

        if (textRecord.isStyleFlagsHasFont())
        {
            final int fontId = bitStream.readUI16();
            final ICharacterTag fontTag = getTagById(fontId, type);
            textRecord.setFontTag(fontTag);
        }

        if (textRecord.isStyleFlagsHasColor())
        {
            if (type == TagType.DefineText2)
            {
                textRecord.setTextColor(readRGBA());
            }
            else
            {
                textRecord.setTextColor(readRGB());
            }
        }

        if (textRecord.isStyleFlagsHasXOffset())
        {
            textRecord.setxOffset(bitStream.readSI16());
        }

        if (textRecord.isStyleFlagsHasYOffset())
        {
            textRecord.setyOffset(bitStream.readSI16());
        }

        if (textRecord.isStyleFlagsHasFont())
        {
            textRecord.setTextHeight(bitStream.readUI16());
        }

        textRecord.setGlyphCount(bitStream.readUI8());

        final GlyphEntry[] glyphEntries = new GlyphEntry[textRecord.getGlyphCount()];
        for (int i = 0; i < textRecord.getGlyphCount(); i++)
        {
            glyphEntries[i] = readGlyphEntry(glyphBits, advanceBits);
        }
        textRecord.setGlyphEntries(glyphEntries);

        return textRecord;
    }
View Full Code Here

Examples of org.apache.poi.hssf.record.TextRecord

        return r;
    }

    private TextRecord createTextRecord()
    {
        TextRecord r = new TextRecord();
        r.setHorizontalAlignment(TextRecord.HORIZONTAL_ALIGNMENT_CENTER);
        r.setVerticalAlignment(TextRecord.VERTICAL_ALIGNMENT_CENTER);
        r.setDisplayMode((short)1);
        r.setRgbColor(0x00000000);
        r.setX(-37);
        r.setY(-60);
        r.setWidth(0);
        r.setHeight(0);
        r.setAutoColor(true);
        r.setShowKey(false);
        r.setShowValue(false);
        r.setVertical(false);
        r.setAutoGeneratedText(true);
        r.setGenerated(true);
        r.setAutoLabelDeleted(false);
        r.setAutoBackground(true);
        r.setRotation((short)0);
        r.setShowCategoryLabelAsPercentage(false);
        r.setShowValueAsPercentage(false);
        r.setShowBubbleSizes(false);
        r.setShowLabel(false);
        r.setIndexOfColorValue((short)77);
        r.setDataLabelPlacement((short)0);
        r.setTextRotation((short)0);
        return r;
    }
View Full Code Here

Examples of org.apache.poi.hssf.record.TextRecord

        return r;
    }

    private TextRecord createAllTextRecord()
    {
        TextRecord r = new TextRecord();
        r.setHorizontalAlignment( TextRecord.HORIZONTAL_ALIGNMENT_CENTER );
        r.setVerticalAlignment( TextRecord.VERTICAL_ALIGNMENT_CENTER );
        r.setDisplayMode( TextRecord.DISPLAY_MODE_TRANSPARENT );
        r.setRgbColor( 0 );
        r.setX( -37 );
        r.setY( -60 );
        r.setWidth( 0 );
        r.setHeight( 0 );
        r.setAutoColor( true );
        r.setShowKey( false );
        r.setShowValue( true );
        r.setVertical( false );
        r.setAutoGeneratedText( true );
        r.setGenerated( true );
        r.setAutoLabelDeleted( false );
        r.setAutoBackground( true );
        r.setRotation( (short) 0 );
        r.setShowCategoryLabelAsPercentage( false );
        r.setShowValueAsPercentage( false );
        r.setShowBubbleSizes( false );
        r.setShowLabel( false );
        r.setIndexOfColorValue( (short) 77 );
        r.setDataLabelPlacement( (short) 0 );
        r.setTextRotation( (short) 0 );
        return r;
    }
View Full Code Here

Examples of org.apache.poi.hssf.record.TextRecord

        return r;
    }

    private TextRecord createUnknownTextRecord()
    {
        TextRecord r = new TextRecord();
        r.setHorizontalAlignment( TextRecord.HORIZONTAL_ALIGNMENT_CENTER );
        r.setVerticalAlignment( TextRecord.VERTICAL_ALIGNMENT_CENTER );
        r.setDisplayMode( TextRecord.DISPLAY_MODE_TRANSPARENT );
        r.setRgbColor( 0 );
        r.setX( -37 );
        r.setY( -60 );
        r.setWidth( 0 );
        r.setHeight( 0 );
        r.setAutoColor( true );
        r.setShowKey( false );
        r.setShowValue( false );
        r.setVertical( false );
        r.setAutoGeneratedText( true );
        r.setGenerated( true );
        r.setAutoLabelDeleted( false );
        r.setAutoBackground( true );
        r.setRotation( (short) 0 );
        r.setShowCategoryLabelAsPercentage( false );
        r.setShowValueAsPercentage( false );
        r.setShowBubbleSizes( false );
        r.setShowLabel( false );
        r.setIndexOfColorValue( (short) 77 );
        r.setDataLabelPlacement( (short) 11088 );
        r.setTextRotation( (short) 0 );
        return r;
    }
View Full Code Here

Examples of org.apache.poi.hssf.record.TextRecord

        return r;
    }

    private TextRecord createUnknownTextRecord()
    {
        TextRecord r = new TextRecord();
        r.setHorizontalAlignment( TextRecord.HORIZONTAL_ALIGNMENT_CENTER );
        r.setVerticalAlignment( TextRecord.VERTICAL_ALIGNMENT_CENTER );
        r.setDisplayMode( TextRecord.DISPLAY_MODE_TRANSPARENT );
        r.setRgbColor( 0 );
        r.setX( -37 );
        r.setY( -60 );
        r.setWidth( 0 );
        r.setHeight( 0 );
        r.setAutoColor( true );
        r.setShowKey( false );
        r.setShowValue( false );
        r.setVertical( false );
        r.setAutoGeneratedText( true );
        r.setGenerated( true );
        r.setAutoLabelDeleted( false );
        r.setAutoBackground( true );
        r.setRotation( (short) 0 );
        r.setShowCategoryLabelAsPercentage( false );
        r.setShowValueAsPercentage( false );
        r.setShowBubbleSizes( false );
        r.setShowLabel( false );
        r.setIndexOfColorValue( (short) 77 );
        r.setDataLabelPlacement( (short) 11088 );
        r.setTextRotation( (short) 0 );
        return r;
    }
View Full Code Here

Examples of org.apache.poi.hssf.record.TextRecord

        return r;
    }

    private TextRecord createTextRecord()
    {
        TextRecord r = new TextRecord();
        r.setHorizontalAlignment(TextRecord.HORIZONTAL_ALIGNMENT_CENTER);
        r.setVerticalAlignment(TextRecord.VERTICAL_ALIGNMENT_CENTER);
        r.setDisplayMode((short)1);
        r.setRgbColor(0x00000000);
        r.setX(-37);
        r.setY(-60);
        r.setWidth(0);
        r.setHeight(0);
        r.setAutoColor(true);
        r.setShowKey(false);
        r.setShowValue(false);
        r.setVertical(false);
        r.setAutoGeneratedText(true);
        r.setGenerated(true);
        r.setAutoLabelDeleted(false);
        r.setAutoBackground(true);
        r.setRotation((short)0);
        r.setShowCategoryLabelAsPercentage(false);
        r.setShowValueAsPercentage(false);
        r.setShowBubbleSizes(false);
        r.setShowLabel(false);
        r.setIndexOfColorValue((short)77);
        r.setDataLabelPlacement((short)0);
        r.setTextRotation((short)0);
        return r;
    }
View Full Code Here

Examples of org.apache.poi.hssf.record.TextRecord

        return r;
    }

    private TextRecord createAllTextRecord()
    {
        TextRecord r = new TextRecord();
        r.setHorizontalAlignment( TextRecord.HORIZONTAL_ALIGNMENT_CENTER );
        r.setVerticalAlignment( TextRecord.VERTICAL_ALIGNMENT_CENTER );
        r.setDisplayMode( TextRecord.DISPLAY_MODE_TRANSPARENT );
        r.setRgbColor( 0 );
        r.setX( -37 );
        r.setY( -60 );
        r.setWidth( 0 );
        r.setHeight( 0 );
        r.setAutoColor( true );
        r.setShowKey( false );
        r.setShowValue( true );
        r.setVertical( false );
        r.setAutoGeneratedText( true );
        r.setGenerated( true );
        r.setAutoLabelDeleted( false );
        r.setAutoBackground( true );
        r.setRotation( (short) 0 );
        r.setShowCategoryLabelAsPercentage( false );
        r.setShowValueAsPercentage( false );
        r.setShowBubbleSizes( false );
        r.setShowLabel( false );
        r.setIndexOfColorValue( (short) 77 );
        r.setDataLabelPlacement( (short) 0 );
        r.setTextRotation( (short) 0 );
        return r;
    }
View Full Code Here

Examples of org.apache.poi.hssf.record.TextRecord

    return r;
  }

  private TextRecord createTextRecord()
  {
    TextRecord r = new TextRecord();
    r.setHorizontalAlignment(TextRecord.HORIZONTAL_ALIGNMENT_CENTER);
    r.setVerticalAlignment(TextRecord.VERTICAL_ALIGNMENT_CENTER);
    r.setDisplayMode((short)1);
    r.setRgbColor(0x00000000);
    r.setX(-37);
    r.setY(-60);
    r.setWidth(0);
    r.setHeight(0);
    r.setAutoColor(true);
    r.setShowKey(false);
    r.setShowValue(false);
    r.setVertical(false);
    r.setAutoGeneratedText(true);
    r.setGenerated(true);
    r.setAutoLabelDeleted(false);
    r.setAutoBackground(true);
    r.setRotation((short)0);
    r.setShowCategoryLabelAsPercentage(false);
    r.setShowValueAsPercentage(false);
    r.setShowBubbleSizes(false);
    r.setShowLabel(false);
    r.setIndexOfColorValue((short)77);
    r.setDataLabelPlacement((short)0);
    r.setTextRotation((short)0);
    return r;
  }
View Full Code Here

Examples of org.apache.poi.hssf.record.TextRecord

    return r;
  }

  private TextRecord createAllTextRecord()
  {
    TextRecord r = new TextRecord();
    r.setHorizontalAlignment( TextRecord.HORIZONTAL_ALIGNMENT_CENTER );
    r.setVerticalAlignment( TextRecord.VERTICAL_ALIGNMENT_CENTER );
    r.setDisplayMode( TextRecord.DISPLAY_MODE_TRANSPARENT );
    r.setRgbColor( 0 );
    r.setX( -37 );
    r.setY( -60 );
    r.setWidth( 0 );
    r.setHeight( 0 );
    r.setAutoColor( true );
    r.setShowKey( false );
    r.setShowValue( true );
    r.setVertical( false );
    r.setAutoGeneratedText( true );
    r.setGenerated( true );
    r.setAutoLabelDeleted( false );
    r.setAutoBackground( true );
    r.setRotation( (short) 0 );
    r.setShowCategoryLabelAsPercentage( false );
    r.setShowValueAsPercentage( false );
    r.setShowBubbleSizes( false );
    r.setShowLabel( false );
    r.setIndexOfColorValue( (short) 77 );
    r.setDataLabelPlacement( (short) 0 );
    r.setTextRotation( (short) 0 );
    return r;
  }
View Full Code Here

Examples of org.apache.poi.hssf.record.TextRecord

    return r;
  }

  private TextRecord createUnknownTextRecord()
  {
    TextRecord r = new TextRecord();
    r.setHorizontalAlignment( TextRecord.HORIZONTAL_ALIGNMENT_CENTER );
    r.setVerticalAlignment( TextRecord.VERTICAL_ALIGNMENT_CENTER );
    r.setDisplayMode( TextRecord.DISPLAY_MODE_TRANSPARENT );
    r.setRgbColor( 0 );
    r.setX( -37 );
    r.setY( -60 );
    r.setWidth( 0 );
    r.setHeight( 0 );
    r.setAutoColor( true );
    r.setShowKey( false );
    r.setShowValue( false );
    r.setVertical( false );
    r.setAutoGeneratedText( true );
    r.setGenerated( true );
    r.setAutoLabelDeleted( false );
    r.setAutoBackground( true );
    r.setRotation( (short) 0 );
    r.setShowCategoryLabelAsPercentage( false );
    r.setShowValueAsPercentage( false );
    r.setShowBubbleSizes( false );
    r.setShowLabel( false );
    r.setIndexOfColorValue( (short) 77 );
    r.setDataLabelPlacement( (short) 11088 );
    r.setTextRotation( (short) 0 );
    return r;
  }
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.