public class SoftWrapImpl extends java.lang.Object implements SoftWrap
SoftWrap implementation that is built around TextChangeImpl.| Constructor and Description |
|---|
SoftWrapImpl(TextChangeImpl change,
int indentInColumns,
int indentInPixels) |
| Modifier and Type | Method and Description |
|---|---|
void |
advance(int diff) |
boolean |
equals(java.lang.Object o) |
TextChangeImpl |
getChange() |
char [] |
getChars()
Allows to get change text as a char array.
|
int |
getEnd() |
int |
getIndentInColumns() |
int |
getIndentInPixels() |
int |
getStart() |
java.lang.CharSequence |
getText()
Allows to retrieve text that is directly affected by the change encapsulated by the current object.
|
int |
hashCode() |
java.lang.String |
toString() |
public SoftWrapImpl(TextChangeImpl change, int indentInColumns, int indentInPixels)
public int getStart()
getStart in interface TextChangepublic int getEnd()
getEnd in interface TextChangepublic java.lang.CharSequence getText()
TextChangegetText in interface TextChangepublic char [] getChars()
TextChangeTextChange.getText() result.
Generally speaking, this method is introduced just as a step toward existing high-performance services that work in terms
of char arrays. Resulting array is instantiated on-demand via CharArrayUtil.fromSequence(CharSequence), hence, it
doesn't hit memory if, for example, CharSequenceBackedByArray is used as initial change text.getChars in interface TextChangepublic int getIndentInColumns()
getIndentInColumns in interface SoftWrappublic int getIndentInPixels()
getIndentInPixels in interface SoftWrappublic TextChangeImpl getChange()
public void advance(int diff)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object