/** * Constructs new StyleRange based on another StyleRange settings. * * @param styleRange style range */ public StyleRange(final StyleRange styleRange) { this( styleRange.getStartIndex(), styleRange.getLength(), styleRange.getStyle(), styleRange.getForeground(), styleRange.getBackground(), getCustomStyles(styleRange)); }