Method Summary |
|
void | extractToChildren(int index, int length, Fold fold) Remove the given folds and insert them as children
of the given fold which will be put to their place.
Parameters: index - index at which the starts the area of child folds to wrap. Parameters: length - number of child folds to wrap. Parameters: fold - fold to insert at place of children. |
Fold[] | foldsToArray(int index, int count) |
public String | getDescription() Get text description that should be displayed when the fold
is collapsed instead of the text contained in the fold. |
public int | getEndOffset() Get an absolute ending offset of this fold in the associated document.
The ending offset is expected to track possible changes in the underlying
document (i.e. |
Object | getExtraInfo() |
public Fold | getFold(int index) Get child fold of this fold at the given index. |
public int | getFoldCount() Get total count of child folds contained in this fold. |
public int | getFoldIndex(Fold child) Get index of the given child fold in this fold.
The method has constant-time performance.
Parameters: child - non-null child fold of this fold but in generalit can be any non-null fold (see return value). |
public FoldHierarchy | getHierarchy() Get the code folding hierarchy for which this fold was created. |
FoldOperationImpl | getOperation() |
public Fold | getParent() Get parent fold of this fold. |
int | getRawIndex() Get the raw index of this fold in the parent. |
public int | getStartOffset() Get an absolute starting offset of this fold in the associated document.
The starting offset is expected to track possible changes in the underlying
document (i.e. |
public FoldType | getType() Get type of this fold. |
void | insertUpdate(DocumentEvent evt) |
public boolean | isCollapsed() Return whether this fold is collapsed or expanded. |
boolean | isEndDamaged() Return true if the ending guarded area is damaged by a document modification. |
boolean | isExpandNecessary() |
boolean | isRootFold() Check whether this fold is currently a part of the hierarchy.
The fold may be temporarily removed from the hierarchy because
it became blocked by another fold. |
boolean | isStartDamaged() Return true if the starting guarded area is damaged by a document modification. |
void | removeUpdate(DocumentEvent evt) |
Fold | replaceByChildren(int index) Remove the fold at the given index
and put its children at its place. |
void | setCollapsed(boolean collapsed) |
void | setDescription(String description) |
void | setEndOffset(Document doc, int endOffset) |
void | setParent(Fold parent) |
void | setRawIndex(int rawIndex) Set the raw index of this fold in the parent. |
void | setStartOffset(Document doc, int startOffset) |
public String | toString() |
void | updateRawIndex(int rawIndexDelta) Update the raw index of this fold in the parent by a given delta. |