|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.sf.colorer.editor.Outliner
| Field Summary | |
protected java.util.Vector |
outline
|
| Constructor Summary | |
Outliner(Region searchRegion)
|
|
| Method Summary | |
void |
addRegion(int lno,
java.lang.String line,
int sx,
int ex,
Region region)
Informs handler about lexical region in line. |
void |
clearLine(int lno,
java.lang.String line)
Clear line event. |
OutlineItem |
createItem(int lno,
int sx,
int curLevel,
java.lang.String itemLabel,
Region region)
|
void |
endParsing(int lno)
End of text parsing. |
void |
enterScheme(int lno,
java.lang.String line,
int sx,
int ex,
Region region,
Scheme scheme)
Informs handler about entering into specified scheme. |
Region |
getFilter()
Returns filter region, used by this handler. |
OutlineItem |
getItem(int idx)
|
boolean |
isOutlined(Region region)
|
int |
itemCount()
|
void |
leaveScheme(int lno,
java.lang.String line,
int sx,
int ex,
Region region,
Scheme scheme)
Informs handler about leaveing specified scheme. |
void |
startParsing(int lno)
Start of text parsing. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.Vector outline
| Constructor Detail |
public Outliner(Region searchRegion)
| Method Detail |
public OutlineItem getItem(int idx)
public int itemCount()
public Region getFilter()
RegionHandler
getFilter in interface RegionHandlerpublic boolean isOutlined(Region region)
public OutlineItem createItem(int lno,
int sx,
int curLevel,
java.lang.String itemLabel,
Region region)
public void startParsing(int lno)
RegionHandler
startParsing in interface RegionHandlerlno - Start line numberpublic void endParsing(int lno)
RegionHandler
endParsing in interface RegionHandlerlno - End line number
public void clearLine(int lno,
java.lang.String line)
RegionHandler
clearLine in interface RegionHandlerlno - Line number
public void addRegion(int lno,
java.lang.String line,
int sx,
int ex,
Region region)
RegionHandler
addRegion in interface RegionHandlerlno - Current line numbersx - Start X position of region in lineex - End X position of region in lineregion - Region information
public void enterScheme(int lno,
java.lang.String line,
int sx,
int ex,
Region region,
Scheme scheme)
RegionHandlerregion is used to specify
scheme background region information.
If text is parsed not from the first line, this method is called
with fake parameters to compensate required scheme structure.
enterScheme in interface RegionHandlerlno - Current line numbersx - Start X position of region in lineex - End X position of region in lineregion - Scheme Region information (background)scheme - Additional Scheme information
public void leaveScheme(int lno,
java.lang.String line,
int sx,
int ex,
Region region,
Scheme scheme)
RegionHandlerregion is used to specify
scheme background region information.
If text parse process ends, but current schemes stack is not balanced
(this can happends because of bad balanced structure of source text,
or partial text parse) this method is not called for unbalanced
levels.
leaveScheme in interface RegionHandlerlno - Current line numbersx - Start X position of region in lineex - End X position of region in lineregion - Scheme Region information (background)scheme - Additional Scheme information
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||