|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--wugle.expressionui.ExpressionViewHighlighter
Field Summary | |
protected java.awt.Color |
hilightedColor
|
protected java.awt.Font |
hilightedFont
|
protected int |
LEFT
|
protected java.lang.String |
LEFT_PAREN
|
protected java.awt.Color |
normalColor
|
protected java.awt.Font |
normalFont
|
protected int |
RIGHT
|
protected java.lang.String |
RIGHT_PAREN
|
Constructor Summary | |
ExpressionViewHighlighter()
|
|
ExpressionViewHighlighter(java.awt.Color hilightedColor)
Constructor takes a color to be used for highlighting the text |
Method Summary | |
protected int |
getIndex(int startIdx,
int direction)
Searches left or right from the start pos looking for either a left or right parenthesis respectively. |
int |
getIndex(int startIdx,
int direction,
java.lang.String targetString)
Searches left or right from the start pos looking for the targetString |
protected void |
highLightView(java.lang.String expressionString,
int buttonIdx)
This method gets the left and right indexes(inclusive) for the expression selected and highlights the JComponets between them |
void |
itemStateChanged(java.awt.event.ItemEvent e)
ItemListener interface method |
void |
registerView(ExpressionSelection expressionGroup,
java.util.List expressionList)
Registers the class as an item listener for the button group and also takes a referece to the list of JComponents. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected final int LEFT
protected final int RIGHT
protected final java.lang.String LEFT_PAREN
protected final java.lang.String RIGHT_PAREN
protected java.awt.Font normalFont
protected java.awt.Font hilightedFont
protected java.awt.Color normalColor
protected java.awt.Color hilightedColor
Constructor Detail |
public ExpressionViewHighlighter()
public ExpressionViewHighlighter(java.awt.Color hilightedColor)
Method Detail |
public void registerView(ExpressionSelection expressionGroup, java.util.List expressionList)
public void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged
in interface java.awt.event.ItemListener
protected void highLightView(java.lang.String expressionString, int buttonIdx)
protected int getIndex(int startIdx, int direction)
public int getIndex(int startIdx, int direction, java.lang.String targetString)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |