addRegion(R region) Add the supplied DocumentRegion to the manager.
public void
changeRegion(R region, Lambda<Object, R> cmd) Apply the given command to the specified region to change it.
Parameters: region - the region to find and change Parameters: cmd - command that mutates the region.
public void
clearRegions() Tells the manager to remove all regions.
getMaximumSize() the maximum number of regions that can be stored in this manager.
public R
getRegionAt(OpenDefinitionsDocument odd, int offset) Returns the region in this manager at the given offset, or null if one does not exist.
public R
getRegionOverlapping(OpenDefinitionsDocument odd, int startOffset, int endOffset) Get the DocumentRegion that is stored in this RegionsTreePanel overlapping the area for the given document,
or null if it doesn't exist.
Apply the given command to the specified region to change it.
Parameters: region - the region to find and change Parameters: cmd - command that mutates the region.
Returns the region in this manager at the given offset, or null if one does not exist.
Parameters: odd - the document Parameters: offset - the offset in the document the DocumentRegion at the given line number, or null if it does not exist.
Get the DocumentRegion that is stored in this RegionsTreePanel overlapping the area for the given document,
or null if it doesn't exist.
Parameters: odd - the document Parameters: startOffset - the start offset Parameters: endOffset - the end offset the DocumentRegion or null
Set the maximum number of regions that can be stored in this manager.
If the maximum capacity has been reached and another region is added, the region at the end farther
away from the insertion location will be discarded.
Parameters: size - maximum number of regions, or 0 if no maximum