|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjpov.viewer.source.Box
This class describes a colored information in the source text. It corresponds to an highlighted box with a associated information.
| Field Summary | |
static org.eclipse.swt.graphics.Color |
GREEN
The green color. |
| Constructor Summary | |
Box(JpoInputStream s)
Constructs a box from a .jpo file |
|
| Method Summary | |
java.lang.String |
getCommentText()
Returns the information associated with the box. |
int |
getIndex()
|
int |
getLength()
|
int |
getXOffset(org.eclipse.swt.custom.StyledText text)
|
int |
getYOffset(org.eclipse.swt.custom.StyledText text)
|
boolean |
highlightBox(ISourceCaseViewer text)
Tries to highlight the box in the given text. |
boolean |
in(org.eclipse.swt.custom.StyledText text,
int offset)
|
void |
save(JpoOutputStream s,
int index)
Saves the box to a .jpo file. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static org.eclipse.swt.graphics.Color GREEN
| Constructor Detail |
public Box(JpoInputStream s)
throws java.io.IOException
s - The input stream associated with the .jpo file
java.io.IOException| Method Detail |
public boolean in(org.eclipse.swt.custom.StyledText text,
int offset)
public int getXOffset(org.eclipse.swt.custom.StyledText text)
public int getYOffset(org.eclipse.swt.custom.StyledText text)
public void save(JpoOutputStream s,
int index)
throws java.io.IOException
s - The output stream of the .jpo file
java.io.IOExceptionpublic boolean highlightBox(ISourceCaseViewer text)
text - The current source code text.
true if the box is a valid box for the current and
if it corresponds to blue or red information, false
otherwisepublic java.lang.String getCommentText()
public int getLength()
public int getIndex()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||