Package tv.porst.swfretools.parser.structures

Examples of tv.porst.swfretools.parser.structures.Rect


   * @throws SWFParserException Thrown if parsing the tag failed.
   */
  public static DefineTextTag parse(final RecordHeader header, final SWFBinaryParser parser) throws SWFParserException {

    final UINT16 characterId = parseUINT16(parser, 0x00006, "DefineText::CharacterId");
    final Rect textBounds = RectParser.parse(parser, "DefineText::TextBounds");
    final Matrix textMatrix = MatrixParser.parse(parser, "DefineText::TextMatrix");
    final UINT8 glyphBits = parseUINT8(parser, 0x00006, "DefineText::GlyphBits");
    final UINT8 advanceBits = parseUINT8(parser, 0x00006, "DefineText::AdvanceBits");

    final List<TextRecord> textRecords = new ArrayList<TextRecord>();
View Full Code Here


   * @throws SWFParserException Thrown if parsing the tag failed.
   */
  public static DefineEditTextTag parse(final RecordHeader header, final SWFBinaryParser parser) throws SWFParserException {

    final UINT16 characterId = parseUINT16(parser, 0x00006, "DefineEditText::CharacterId");
    final Rect bounds = RectParser.parse(parser, "DefineEditText::Bounds");
    final Flag hasText = parseFlag(parser, 0x00006, "DefineEditText::HasText");
    final Flag wordWrap = parseFlag(parser, 0x00006, "DefineEditText::WordWrap");
    final Flag multiline = parseFlag(parser, 0x00006, "DefineEditText::Multiline");
    final Flag password = parseFlag(parser, 0x00006, "DefineEditText::Password");
    final Flag readOnly = parseFlag(parser, 0x00006, "DefineEditText::ReadOnly");
View Full Code Here

   * @throws SWFParserException Thrown if parsing the tag failed.
   */
  public static DefineShape3Tag parse(final RecordHeader header, final SWFBinaryParser parser) throws SWFParserException {

    final UINT16 shapeId = parseUINT16(parser, 0x00006, "DefineShape3::ShapeID");
    final Rect shapeBounds = RectParser.parse(parser, "DefineShape3::ShapeBounds");
    final ShapeWithStyle3 shapes = ShapeWithStyle3Parser.parse(parser, "DefineShape3::Shapes");

    return new DefineShape3Tag(header, shapeId, shapeBounds, shapes);
  }
View Full Code Here

   * @throws SWFParserException Thrown if parsing the tag failed.
   */
  public static DefineShape2Tag parse(final RecordHeader header, final SWFBinaryParser parser) throws SWFParserException {

    final UINT16 shapeId = parseUINT16(parser, 0x00006, "DefineShape2::ShapeID");
    final Rect shapeBounds = RectParser.parse(parser, "DefineShape2::ShapeBounds");
    final ShapeWithStyle shapes = ShapeWithStyleParser.parse(parser, "DefineShape2::Shapes");

    return new DefineShape2Tag(header, shapeId, shapeBounds, shapes);
  }
View Full Code Here

   * @throws SWFParserException Thrown if parsing the tag failed.
   */
  public static DefineMorphShape2Tag parse(final RecordHeader header, final SWFBinaryParser parser) throws SWFParserException {

    final UINT16 characterId = parseUINT16(parser, 0x00006, "DefineMorphShape2::CharacterId");
    final Rect startBounds = RectParser.parse(parser, "DefineMorphShape2::StartBounds");
    final Rect endBounds = RectParser.parse(parser, "DefineMorphShape2::EndBounds");
    final Rect startEdgeBounds = RectParser.parse(parser, "DefineMorphShape2::StartEdgeBounds");
    final Rect endEdgeBounds = RectParser.parse(parser, "DefineMorphShape2::EndEdgeBounds");
    final UBits reserved = parseUBits(parser, 6, 0x00006, "DefineMorphShape::Reserved");
    final Flag useNonScalingStrokes = parseFlag(parser, 0x00006, "DefineMorphShape2::UseNonScalingStrokes");
    final Flag useScalingStrokes = parseFlag(parser, 0x00006, "DefineMorphShape2::UseScalingStrokes");
    final UINT32 offset = parseUINT32(parser, 0x00006, "DefineMorphShape2::Offset");
    final MorphFillStyleArray morphFillStyles = MorphFillStyleArrayParser.parse(parser, "DefineMorphShape::MorphFillStyleArray");
View Full Code Here

   * @throws SWFParserException Thrown if parsing the tag failed.
   */
  public static DefineText2Tag parse(final RecordHeader header, final SWFBinaryParser parser) throws SWFParserException {

    final UINT16 characterId = parseUINT16(parser, 0x00006, "DefineText2::CharacterId");
    final Rect textBounds = RectParser.parse(parser, "DefineText2::TextBounds");
    final Matrix textMatrix = MatrixParser.parse(parser, "DefineText2::TextMatrix");
    final UINT8 glyphBits = parseUINT8(parser, 0x00006, "DefineText2::GlyphBits");
    final UINT8 advanceBits = parseUINT8(parser, 0x00006, "DefineText2::AdvanceBits");

    final List<TextRecord2> textRecords = new ArrayList<TextRecord2>();
View Full Code Here

   * @throws SWFParserException Thrown if parsing the tag failed.
   */
  public static DefineMorphShapeTag parse(final RecordHeader header, final SWFBinaryParser parser) throws SWFParserException {

    final UINT16 characterId = parseUINT16(parser, 0x00006, "DefineMorphShape::CharacterId");
    final Rect startBounds = RectParser.parse(parser, "DefineMorphShape::StartBounds");
    final Rect endBounds = RectParser.parse(parser, "DefineMorphShape::EndBounds");
    final UINT32 offset = parseUINT32(parser, 0x00006, "DefineMorphShape::Offset");
    final MorphFillStyleArray morphFillStyles = MorphFillStyleArrayParser.parse(parser, "DefineMorphShape::MorphFillStyles");
    final MorphLineStyleArray morphLineStyles = MorphLineStyleArrayParser.parse(parser, "DefineMorphShape::MorphLineStyles");
    final Shape startEdges = ShapeParser.parse(parser, "DefineMorphShape::StartEdges");
    final Shape endEdges = ShapeParser.parse(parser, "DefineMorphShape::EndEdges");
View Full Code Here

   * @throws SWFParserException Thrown if parsing the tag failed.
   */
  public static DefineShapeTag parse(final RecordHeader header, final SWFBinaryParser parser) throws SWFParserException {

    final UINT16 shapeId = parseUINT16(parser, 0x00006, "DefineShape::ShapeID");
    final Rect shapeBounds = RectParser.parse(parser, "DefineShape::ShapeBounds");
    final ShapeWithStyle shapes = ShapeWithStyleParser.parse(parser, "DefineShape::Shapes");

    return new DefineShapeTag(header, shapeId, shapeBounds, shapes);
  }
View Full Code Here

   */
  public static DefineShape4Tag parse(final RecordHeader header, final SWFBinaryParser parser) throws SWFParserException {

    final UINT16 shapeId = parseUINT16(parser, 0x00006, "DefineShape4::ShapeID");

    final Rect shapeBounds = RectParser.parse(parser, "DefineShape4::ShapeBounds");
    final Rect edgeBounds = RectParser.parse(parser, "DefineShape4::EdgeBounds");
    final UBits reserved = parseUBits(parser, 5, 0x00006, "DefineShape4::Reserved");
    final Flag usesFillWindingRule = parseFlag(parser, 0x00006, "DefineShape4::UsesFillWindingRule");
    final Flag usesNonScalingStrokes = parseFlag(parser, 0x00006, "DefineShape4::UsesNonScalingStrokes");
    final Flag usesScalingStrokes = parseFlag(parser, 0x00006, "DefineShape4::UsesScalingStrokes");
    final ShapeWithStyle4 shapes = ShapeWithStyle4Parser.parse(parser, "DefineShape4::Shapes");
View Full Code Here

   * @throws SWFParserException Thrown if parsing the tag failed.
   */
  public static DefineScalingGridTag parse(final RecordHeader header, final SWFBinaryParser parser) throws SWFParserException {

    final UINT16 characterId = parseUINT16(parser, 0x00006, "DefineScalingGrid::CharacterId");
    final Rect splitter = RectParser.parse(parser, "DefineScalingGrid::Splitter");

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

TOP

Related Classes of tv.porst.swfretools.parser.structures.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.