public class XMLView extends SyntaxHighlightingView
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/
metricsBadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS, Y_AXISBOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST| Constructor and Description |
|---|
XMLView(XMLScanner scanner,
StyleContext context,
Element elem)
Construct a colorized view of xml text for the element.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isErrorHighlighting() |
protected void |
updateScanner(SyntaxHighlightingScanner scanner,
Document doc,
int start,
int end) |
drawSelectedText, drawUnselectedText, getFontStyle, paintcalculateLongestLine, changedUpdate, damageLineRange, drawLine, getNextVisualPositionFrom, getPreferredSpan, insertUpdate, lineToRect, modelToView, nextTabStop, removeUpdate, setSize, updateDamage, updateMetrics, viewToModelgetLineBuffer, getTabSizeappend, 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, viewToModelpublic XMLView(XMLScanner scanner, StyleContext context, Element elem) throws IOException
context - the styles used to colorize the view.elem - the element to create the view for.IOException - input/output exception while reading documentprotected void updateScanner(SyntaxHighlightingScanner scanner, Document doc, int start, int end)
updateScanner in class SyntaxHighlightingViewprotected boolean isErrorHighlighting()
isErrorHighlighting in class SyntaxHighlightingViewCopyright © 2002-2013 Edwin Dankert. All Rights Reserved.