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/
metrics
BadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS, Y_AXIS
BOTTOM, 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, paint
calculateLongestLine, changedUpdate, damageLineRange, drawLine, getNextVisualPositionFrom, getPreferredSpan, insertUpdate, lineToRect, modelToView, nextTabStop, removeUpdate, setSize, updateDamage, updateMetrics, viewToModel
getLineBuffer, getTabSize
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
public 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 SyntaxHighlightingView
protected boolean isErrorHighlighting()
isErrorHighlighting
in class SyntaxHighlightingView
Copyright © 2002-2013 Edwin Dankert. All Rights Reserved.