private StyleRange createStyleRange(int start, int end, Styler style) { StyleRange styleRange = new StyleRange(); styleRange.start = start; styleRange.length = end - start; style.applyStyles(styleRange); return styleRange; }
private boolean isDifferentStyle(Styler style1, Styler style2) { if (style1 == null) { return style2 != null; } return !style1.equals(style2); }