| Modifier and Type | Field and Description |
|---|---|
| private TextPos | |
| private final TextPos | |
| private final StyledTextModel | |
| private UndoableChange | |
| private UndoableChange | |
| private StyledSegment[] | |
| private final TextPos | |
| private final StyledSegment[] |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static UndoableChange | create(StyledTextModel
source model model, TextPos start text position start, TextPos end text position end)Creates an UndoableChange object. |
| public static UndoableChange | |
| public UndoableChange | |
| public UndoableChange | |
| public TextPos[] | |
| public TextPos[] | |
| public void | |
| public void | |
| public void | |
| public void | |
| public String | |
| public void |
| endAfter | back to summary |
|---|---|
| private TextPos endAfter | |
| endBefore | back to summary |
|---|---|
| private final TextPos endBefore | |
| model | back to summary |
|---|---|
| private final StyledTextModel model | |
| next | back to summary |
|---|---|
| private UndoableChange next | |
| prev | back to summary |
|---|---|
| private UndoableChange prev | |
| redo | back to summary |
|---|---|
| private StyledSegment[] redo | |
| start | back to summary |
|---|---|
| private final TextPos start | |
| undo | back to summary |
|---|---|
| private final StyledSegment[] undo | |
| UndoableChange | back to summary |
|---|---|
| private UndoableChange(StyledTextModel model, TextPos start, TextPos end, StyledSegment[] undo) | |
| create | back to summary |
|---|---|
| public static UndoableChange create(StyledTextModel model, TextPos start, TextPos end) Creates an UndoableChange object. This method might return null if an error happened during creation, for example, if the model could not export the affected area as a sequence of StyledSegments. TODO perhaps it should throw an exception which will be handled by the control, in order to provide user feedback.
| |
| createHead | back to summary |
|---|---|
| public static UndoableChange createHead() | |
| getNext | back to summary |
|---|---|
| public UndoableChange getNext() | |
| getPrev | back to summary |
|---|---|
| public UndoableChange getPrev() | |
| getSelectionAfter | back to summary |
|---|---|
| public TextPos[] getSelectionAfter() | |
| getSelectionBefore | back to summary |
|---|---|
| public TextPos[] getSelectionBefore() | |
| redo | back to summary |
|---|---|
| public void redo(StyleResolver resolver) throws IOException | |
| setEndAfter | back to summary |
|---|---|
| public void setEndAfter(TextPos p) | |
| setNext | back to summary |
|---|---|
| public void setNext(UndoableChange ch) | |
| setPrev | back to summary |
|---|---|
| public void setPrev(UndoableChange ch) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| undo | back to summary |
|---|---|
| public void undo(StyleResolver resolver) throws IOException | |