final Styles styleContext) if (fillStyle0 != null && !styleContext.getFillStyles().contains(fillStyle0)) if (fillStyle1 != null && !styleContext.getFillStyles().contains(fillStyle1)) if (lineStyle != null && !styleContext.getLineStyles().contains(lineStyle))
/** * Get all the character tags referred by this ShapeWithStyle type. A * ShapeWithStyle type can refer to a character in two ways: * <ol> * <li>ShapeWithStyle > FillStyles::Bitmap</li> * <li>ShapeWithStyle > ShapeRecord(StyleChangeRecord) > FillStyle0/1 > * Bitmap</li> * </ol> */ @Override public Iterable<ICharacterTag> getReferences() { return CharacterIterableFactory.collect( styles.getReferences(), CharacterIterableFactory.filterAndCollect(shapeRecords)); } }
styles = new Styles(((ShapeWithStyle)shapes).getFillStyles(), ((ShapeWithStyle)shapes).getLineStyles()); (styles.getFillStyles().indexOf(styleChange.getFillstyle0()) + 1) + "\" "); (styles.getFillStyles().indexOf(styleChange.getFillstyle1()) + 1) + "\" "); (styles.getFillStyles().indexOf(styleChange.getLinestyle()) + 1) + "\" "); printFillStyles(styleChange.getStyles().getFillStyles()); printLineStyles(styleChange.getStyles().getLineStyles()); indent--; indent();
/** * 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())); }
/** * Get line styles. * * @return line styles */ public LineStyleArray getLineStyles() { return styles.getLineStyles(); }
/** * Get fill styles. * * @return fill styles */ public FillStyleArray getFillStyles() { return styles.getFillStyles(); }
styles = new Styles(((ShapeWithStyle)shapes).getFillStyles(), ((ShapeWithStyle)shapes).getLineStyles()); (styles.getFillStyles().indexOf(styleChange.getFillstyle0()) + 1) + "\" "); (styles.getFillStyles().indexOf(styleChange.getFillstyle1()) + 1) + "\" "); (styles.getLineStyles().indexOf(styleChange.getLinestyle()) + 1) + "\" "); printFillStyles(styleChange.getStyles().getFillStyles()); printLineStyles(styleChange.getStyles().getLineStyles()); indent--; indent();
/** * 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())); }
/** * Get line styles. * * @return line styles */ public LineStyleArray getLineStyles() { return styles.getLineStyles(); }
/** * Get fill styles. * * @return fill styles */ public FillStyleArray getFillStyles() { return styles.getFillStyles(); }
final IFillStyle fillStyle0; if (indexFillStyle0 > 0 && !ignoreStyle) fillStyle0 = currentStyles.styles.getFillStyles().get(indexFillStyle0 - 1); else fillStyle0 = null; fillStyle1 = currentStyles.styles.getFillStyles().get(indexFillStyle1 - 1); else fillStyle1 = null; lineStyle = currentStyles.styles.getLineStyles().get(indexLineStyle - 1); else lineStyle = null; final Styles newStyles = new Styles(fillStyles, lineStyles); styleChange.setNumFillBits(numFillBits); styleChange.setNumLineBits(numLineBits);
final Styles styleContext) if (fillStyle0 != null && !styleContext.getFillStyles().contains(fillStyle0)) if (fillStyle1 != null && !styleContext.getFillStyles().contains(fillStyle1)) if (lineStyle != null && !styleContext.getLineStyles().contains(lineStyle))
fillStyleArray.add(fs); Styles styles = new Styles(fillStyleArray, lineStyleArray);
old_scrLineStyleIndex = styleContext.getLineStyles().indexOf(old_scr.getLinestyle());
private void addEdgesWithFill(Styles styles, ShapeWithStyle shapeWithStyle, int[][] coords, int left, int right) { StyleChangeRecord scr = new StyleChangeRecord(); if ((left != 0) || (right != 0)) { IFillStyle fillStyle0 = null; if (left > 0) { fillStyle0 = styles.getFillStyles().get(left - 1); } IFillStyle fillStyle1 = null; if (right > 0) { fillStyle1 = styles.getFillStyles().get(right - 1); } scr.setDefinedStyles(fillStyle0, fillStyle1, null, styles); } shapeWithStyle.addShapeRecord(scr); for (int i = 0; i < coords.length; ++i) { shapeWithStyle.addShapeRecord(new StraightEdgeRecord(coords[i][0], coords[i][1])); } }
/** * Get all the character tags referred by this ShapeWithStyle type. A * ShapeWithStyle type can refer to a character in two ways: * <ol> * <li>ShapeWithStyle > FillStyles::Bitmap</li> * <li>ShapeWithStyle > ShapeRecord(StyleChangeRecord) > FillStyle0/1 > * Bitmap</li> * </ol> */ @Override public Iterable<ICharacterTag> getReferences() { return CharacterIterableFactory.collect( styles.getReferences(), CharacterIterableFactory.filterAndCollect(shapeRecords)); } }
final IFillStyle fillStyle0; if (indexFillStyle0 > 0 && !ignoreStyle) fillStyle0 = currentStyles.styles.getFillStyles().get(indexFillStyle0 - 1); else fillStyle0 = null; fillStyle1 = currentStyles.styles.getFillStyles().get(indexFillStyle1 - 1); else fillStyle1 = null; lineStyle = currentStyles.styles.getLineStyles().get(indexLineStyle - 1); else lineStyle = null; final Styles newStyles = new Styles(fillStyles, lineStyles); styleChange.setNumFillBits(numFillBits); styleChange.setNumLineBits(numLineBits);
this.fillStyle0 = styleContext.getFillStyles().get(fillStyle0Index - 1); this.fillStyle1 = styleContext.getFillStyles().get(fillStyle1Index - 1); this.lineStyle = styleContext.getLineStyles().get(lineStyleIndex - 1);
fillStyleArray.add(fs); Styles styles = new Styles(fillStyleArray, lineStyleArray);
old_scrLineStyleIndex = styleContext.getLineStyles().indexOf(old_scr.getLinestyle());