|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.text.View
javax.swing.text.PlainView
org.bounce.text.FoldingPlainView
org.bounce.text.SyntaxHighlightingView
org.bounce.text.xml.XMLView
public class XMLView
The XML View uses the XML scanner to determine the style (font, color) of the text that it renders.
Note: The XML Editor package is based on the JavaEditorKit example as described in the article 'Customizing a Text Editor' by Timothy Prinzing . See: http://java.sun.com/products/jfc/tsc/articles/text/editor_kit/
| Field Summary |
|---|
| Fields inherited from class org.bounce.text.FoldingPlainView |
|---|
metrics |
| Fields inherited from class javax.swing.text.View |
|---|
BadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS, Y_AXIS |
| Fields inherited from interface javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Constructor Summary | |
|---|---|
XMLView(XMLScanner scanner,
javax.swing.text.StyleContext context,
javax.swing.text.Element elem)
Construct a colorized view of xml text for the element. |
|
| Method Summary | |
|---|---|
protected boolean |
isErrorHighlighting()
|
protected void |
updateScanner(SyntaxHighlightingScanner scanner,
javax.swing.text.Document doc,
int start,
int end)
|
| Methods inherited from class org.bounce.text.SyntaxHighlightingView |
|---|
drawSelectedText, drawUnselectedText, getFontStyle, paint |
| Methods inherited from class org.bounce.text.FoldingPlainView |
|---|
calculateLongestLine, changedUpdate, damageLineRange, drawLine, getNextVisualPositionFrom, getPreferredSpan, insertUpdate, lineToRect, modelToView, nextTabStop, removeUpdate, setSize, updateDamage, updateMetrics, viewToModel |
| Methods inherited from class javax.swing.text.PlainView |
|---|
getLineBuffer, getTabSize |
| Methods inherited from class javax.swing.text.View |
|---|
append, breakView, createFragment, forwardUpdate, forwardUpdateToView, getAlignment, getAttributes, getBreakWeight, getChildAllocation, getContainer, getDocument, getElement, getEndOffset, getGraphics, getMaximumSpan, getMinimumSpan, getParent, getResizeWeight, getStartOffset, getToolTipText, getView, getViewCount, getViewFactory, getViewIndex, getViewIndex, insert, isVisible, modelToView, modelToView, preferenceChanged, remove, removeAll, replace, setParent, updateChildren, updateLayout, viewToModel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLView(XMLScanner scanner,
javax.swing.text.StyleContext context,
javax.swing.text.Element elem)
throws java.io.IOException
context - the styles used to colorize the view.elem - the element to create the view for.
java.io.IOException - input/output exception while reading document| Method Detail |
|---|
protected void updateScanner(SyntaxHighlightingScanner scanner,
javax.swing.text.Document doc,
int start,
int end)
updateScanner in class SyntaxHighlightingViewprotected boolean isErrorHighlighting()
isErrorHighlighting in class SyntaxHighlightingView
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||