|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
void |
addRegionHandler(RegionHandler rh,
Region filter)
Adds specified RegionHandler object into the parse process. |
java.lang.String |
chooseFileType(java.lang.String fname)
Chooses filetype according to the filename and first line of text |
RegionDefine |
getBackground()
Current Background Region (def:Text) |
java.lang.String |
getFileType()
Returns Currently selected file type |
RegionDefine |
getHorzCross()
Current Horizontal Rule (def:HorzCross) |
LineRegion[] |
getLineRegions(int lno)
Return parsed and colored LineRegions of requested line. |
PairMatch |
getPairMatch(int lineNo,
int pos)
Searches and creates pair match object. |
RegionDefine |
getVertCross()
Current Vertical Rule (def:VertCross) |
void |
idleJob(int time)
Tries to do some parsing job while user is doing nothing. |
void |
lineCountEvent(int newLineCount)
Informs about total lines count change. |
void |
modifyEvent(int topLine)
Informs BaseEditor object about text modification event. |
void |
modifyLineEvent(int line)
Informs about single line modification event. |
void |
removeRegionHandler(RegionHandler rh)
Removes previously added region handler. |
void |
searchGlobalPair(PairMatch pm)
Searches pair match in all available text, possibly, making additional processing. |
void |
searchLocalPair(PairMatch pm)
Searches pair match in currently visible text. |
void |
setBackParse(int backParse)
Specifies number of lines, for which parser would be able to run continual processing without highlight invalidation. |
void |
setFileType(java.lang.String typename)
Changes used file type |
void |
setRegionCompact(boolean compact)
LineRegionsSupport object preferences. |
void |
setRegionMapper(java.lang.String cls,
java.lang.String name)
Installs specified RegionMapper. |
void |
validate(int lno)
Validates current state of the editor and runs parser, if needed. |
void |
visibleTextEvent(int wStart,
int wSize)
Informs about changes in visible range of text lines. |
Method Detail |
public void setRegionCompact(boolean compact)
compact
- Creates LineRegionsSupport (false) or
LineRegionsCompactSupport (true) object to store lists of RegionDefine'spublic void setFileType(java.lang.String typename)
public java.lang.String chooseFileType(java.lang.String fname)
public java.lang.String getFileType()
public void setBackParse(int backParse)
backParse
- Number of lines. If <= 0, dropped into default
value.public void setRegionMapper(java.lang.String cls, java.lang.String name)
public void addRegionHandler(RegionHandler rh, Region filter)
filter
- If not null, handler would be activated only if
passed regions have specified filter
parent.
This allows to optimize performance and disable unnecesary JNI
context switches.public void removeRegionHandler(RegionHandler rh)
public RegionDefine getBackground()
public RegionDefine getVertCross()
public RegionDefine getHorzCross()
public PairMatch getPairMatch(int lineNo, int pos)
lineNo
- Line number, where to search paired region.pos
- Position in line, where paired region to be searched.
Paired Region is found, if it includes specified position
or ends directly at one char before line position.public void searchLocalPair(PairMatch pm)
pm
- Unmatched pair matchpublic void searchGlobalPair(PairMatch pm)
pm
- Unmatched pair matchpublic LineRegion[] getLineRegions(int lno)
public void validate(int lno)
lno
- Line number, for which validation is requested.
If this number is in the current visible window range,
the part of text is validated, which is required
for visual repaint.
If this number is equals to -1, all the text is validated.
If this number is not in visible range, optimal partial validation
is usedpublic void idleJob(int time)
time
- integer between 0 and 100, shows an abount of time,
available for this job.public void modifyEvent(int topLine)
topLine
- Topmost modified line of text.public void modifyLineEvent(int line)
line
- Modified line of text.public void visibleTextEvent(int wStart, int wSize)
wStart
- Topmost visible line of text.wSize
- Number of currently visible text lines.
This number must includes all partially visible lines.public void lineCountEvent(int newLineCount)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |