|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.writersforge.catalan.layout.Markup
Helper class to manage markup spans. The start and end indices determine exactly which text characters in a longer string the style applies to.
| Constructor Summary | |
Markup()
Creates a new instance of Markup |
|
Markup(FontStyle style,
int start,
int end)
Creates a new instance of Markup with set values. |
|
| Method Summary | |
int |
getEnd()
Getter for property end, the index of the last text character in the style span. |
int |
getStart()
Getter for property start, the index of the first text character in the style span. |
FontStyle |
getStyle()
Getter for property style, the font for this markup section. |
void |
setEnd(int end)
Setter for property end, the index of the last text character in the style span. |
void |
setStart(int start)
Setter for property start, the index of the first text character in the style span. |
void |
setStyle(FontStyle style)
Setter for property style, the font for this markup section. |
java.lang.String |
toString()
Creates a String version of this object |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Markup()
public Markup(FontStyle style,
int start,
int end)
style - markup stylestart - starting index of markup along the textend - ending index of markup along the text| Method Detail |
public FontStyle getStyle()
public void setStyle(FontStyle style)
style - New value of property style.public int getStart()
public void setStart(int start)
start - New value of property start.public int getEnd()
public void setEnd(int end)
end - New value of property end.public java.lang.String toString()
Object.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||