/** * @generated * @param jcas JCas to which this Feature Structure belongs * @param begin offset to the begin spot in the SofA * @param end offset to the end spot in the SofA */ public Style(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
aside.addToIndexes(); final Style bold = new Style(jCas); bold.setDecoration(UimaTypesUtils.toArray(jCas, Arrays.asList("bold"))); bold.setBegin(77 - 2); bold.setEnd(82 - 2); bold.addToIndexes(); final Style italics = new Style(jCas); italics.setDecoration(UimaTypesUtils.toArray(jCas, Arrays.asList("italics"))); italics.setBegin(94 - 2); italics.setEnd(110 - 2); italics.addToIndexes();
a.setDepth(depth); a.addToIndexes(); Style s = new Style(jCas); s.setBegin(cursor); cursor += Integer.valueOf(i).toString().length(); s.setEnd(cursor); s.setDepth(depth); s.addToIndexes(); Figure f = new Figure(jCas); f.setBegin(cursor); Style em = new Style(jCas); em.setBegin(cursor); em.setDepth(depth); cursor += "only".length(); em.setEnd(cursor); em.addToIndexes();
/** * Create a Style * * @param jCas the jCas * @param styleName the style name * @return the Style */ private Style createStyle(final JCas jCas, final String styleName) { final Style style = new Style(jCas); style.setDecoration(UimaTypesUtils.toArray(jCas, Collections.singleton(styleName))); return style; }
final String color = s.getColor(); final StringArray decorations = s.getDecoration(); final String font = s.getFont();
/** * Internal - constructor used by generator * * @generated * @param addr low level Feature Structure reference * @param type the type of this Feature Structure */ public Style(int addr, TOP_Type type) { super(addr, type); readObject(); }
/** * Create a Style * * @param jCas the jCas * @param styleName the style name * @return the Style */ private Style createStyle(final JCas jCas, final String styleName) { final Style style = new Style(jCas); style.setDecoration(UimaTypesUtils.toArray(jCas, Collections.singleton(styleName))); return style; }
/** * Internal - constructor used by generator * * @generated * @param addr low level Feature Structure reference * @param type the type of this Feature Structure */ public Style(int addr, TOP_Type type) { super(addr, type); readObject(); }
/** * @generated * @param jcas JCas to which this Feature Structure belongs * @param begin offset to the begin spot in the SofA * @param end offset to the end spot in the SofA */ public Style(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
/** * @generated * @param jcas JCas to which this Feature Structure belongs */ public Style(JCas jcas) { super(jcas); readObject(); }
/** * @generated * @param jcas JCas to which this Feature Structure belongs */ public Style(JCas jcas) { super(jcas); readObject(); }