/** * Constructor. * <p> * Creates an empty Flash Shape with the pen starting at [0.0, 0.0]. */ public ShapeBuilder() { this(new Styles(new FillStyleArray(), new LineStyleArray())); }
/** * Constructor. * <p> * Creates an empty Flash Shape with the pen starting at [0.0, 0.0]. */ public ShapeBuilder() { this(new Styles(new FillStyleArray(), new LineStyleArray())); }
styles = new Styles(((ShapeWithStyle)shapes).getFillStyles(), ((ShapeWithStyle)shapes).getLineStyles());
fillStyleArray.add(fs); Styles styles = new Styles(fillStyleArray, lineStyleArray);
styles = new Styles(((ShapeWithStyle)shapes).getFillStyles(), ((ShapeWithStyle)shapes).getLineStyles());
private void writeShapeWithStyle(ShapeWithStyle shape, TagType tagType) { writeFillStyles(shape.getFillStyles(), tagType); writeLineStyles(shape.getLineStyles(), tagType); CurrentStyles currentStyles = new CurrentStyles(); currentStyles.styles = new Styles(shape.getFillStyles(), shape.getLineStyles()); currentStyles.numFillBits = requireUBCount(shape.getFillStyles().size()); currentStyles.numLineBits = requireUBCount(shape.getLineStyles().size()); writeShape(shape, tagType, currentStyles); }
private void writeShapeWithStyle(ShapeWithStyle shape, TagType tagType) { writeFillStyles(shape.getFillStyles(), tagType); writeLineStyles(shape.getLineStyles(), tagType); CurrentStyles currentStyles = new CurrentStyles(); currentStyles.styles = new Styles(shape.getFillStyles(), shape.getLineStyles()); currentStyles.numFillBits = requireUBCount(shape.getFillStyles().size()); currentStyles.numLineBits = requireUBCount(shape.getLineStyles().size()); writeShape(shape, tagType, currentStyles); }
private ShapeWithStyle readShapeWithStyle(TagType tagType) throws IOException, MalformedTagException { // Read styles from SWF. final FillStyleArray fillStyles = readFillStyleArray(tagType); final LineStyleArray lineStyles = readLineStyleArray(tagType); bitStream.byteAlign(); final int numFillBits = bitStream.readUB(4); final int numLineBits = bitStream.readUB(4); final Styles styles = new Styles(fillStyles, lineStyles); // Create styles context. final CurrentStyles currentStyles = new CurrentStyles(); currentStyles.styles = styles; currentStyles.numFillBits = numFillBits; currentStyles.numLineBits = numLineBits; // Create ShapeWithStyle tag. final ShapeWithStyle shapes = new ShapeWithStyle(styles); shapes.setNumFillBits(numFillBits); shapes.setNumLineBits(numLineBits); // Read ShapeRecords and passing in the style context. final List<ShapeRecord> shapeRecords = readShapeRecords(tagType, shapes, currentStyles); shapes.addShapeRecords(shapeRecords); return shapes; }
private ShapeWithStyle readShapeWithStyle(TagType tagType) throws IOException, MalformedTagException { // Read styles from SWF. final FillStyleArray fillStyles = readFillStyleArray(tagType); final LineStyleArray lineStyles = readLineStyleArray(tagType); bitStream.byteAlign(); final int numFillBits = bitStream.readUB(4); final int numLineBits = bitStream.readUB(4); final Styles styles = new Styles(fillStyles, lineStyles); // Create styles context. final CurrentStyles currentStyles = new CurrentStyles(); currentStyles.styles = styles; currentStyles.numFillBits = numFillBits; currentStyles.numLineBits = numLineBits; // Create ShapeWithStyle tag. final ShapeWithStyle shapes = new ShapeWithStyle(styles); shapes.setNumFillBits(numFillBits); shapes.setNumLineBits(numLineBits); // Read ShapeRecords and passing in the style context. final List<ShapeRecord> shapeRecords = readShapeRecords(tagType, shapes, currentStyles); shapes.addShapeRecords(shapeRecords); return shapes; }
Styles styles = new Styles(fillStyles, lineStyles);
Styles styles = new Styles(fillStyles, lineStyles);
LineStyleArray lineStyleArray = new LineStyleArray(); Styles styles = new Styles(styleArray, lineStyleArray);
LineStyleArray lineStyleArray = new LineStyleArray(); Styles styles = new Styles(styleArray, lineStyleArray);
Styles styles = new Styles(fillStyles, lineStyles); ShapeWithStyle shapeWithStyle = new ShapeWithStyle(styles); shape.setShapes(shapeWithStyle);
Styles styles = new Styles(fillStyles, lineStyles); ShapeWithStyle shapeWithStyle = new ShapeWithStyle(styles); shape.setShapes(shapeWithStyle);
final Styles newStyles = new Styles(fillStyles, lineStyles); styleChange.setNumFillBits(numFillBits); styleChange.setNumLineBits(numLineBits);
final Styles newStyles = new Styles(fillStyles, lineStyles); styleChange.setNumFillBits(numFillBits); styleChange.setNumLineBits(numLineBits);
Styles styles = new Styles(fillStyles, lineStyles); ShapeWithStyle shapeWithStyle = new ShapeWithStyle(styles); shape.setShapes(shapeWithStyle);
Styles styles = new Styles(fillStyles, lineStyles); ShapeWithStyle shapeWithStyle = new ShapeWithStyle(styles); shape.setShapes(shapeWithStyle);