Package jsyntaxpane
Class SyntaxView
java.lang.Object
javax.swing.text.View
javax.swing.text.PlainView
jsyntaxpane.SyntaxView
- All Implemented Interfaces:
SwingConstants,TabExpander
-
Field Summary
FieldsFields inherited from class javax.swing.text.View
BadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS, Y_AXISFields 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
ConstructorsConstructorDescriptionSyntaxView(Element element, Configuration config) Construct a new view using the given configuration and prefix given -
Method Summary
Modifier and TypeMethodDescriptionprotected intdrawSelectedText(Graphics graphics, int x, int y, int p0, int p1) protected intdrawUnselectedText(Graphics graphics, int x, int y, int p0, int p1) static voidSets the Rendering Hints o nthe Graphics.protected voidupdateDamage(DocumentEvent changes, Shape a, ViewFactory f) Methods inherited from class javax.swing.text.PlainView
changedUpdate, damageLineRange, drawLine, drawLine, drawSelectedText, drawUnselectedText, getLineBuffer, getPreferredSpan, getTabSize, insertUpdate, lineToRect, modelToView, nextTabStop, paint, removeUpdate, setSize, updateMetrics, viewToModelMethods inherited from class javax.swing.text.View
append, breakView, createFragment, forwardUpdate, forwardUpdateToView, getAlignment, getAttributes, getBreakWeight, getChildAllocation, getContainer, getDocument, getElement, getEndOffset, getGraphics, getMaximumSpan, getMinimumSpan, getNextVisualPositionFrom, getParent, getResizeWeight, getStartOffset, getToolTipText, getView, getViewCount, getViewFactory, getViewIndex, getViewIndex, insert, isVisible, modelToView, modelToView, preferenceChanged, remove, removeAll, replace, setParent, updateChildren, updateLayout, viewToModel
-
Field Details
-
PROPERTY_RIGHT_MARGIN_COLOR
- See Also:
-
PROPERTY_RIGHT_MARGIN_COLUMN
- See Also:
-
PROPERTY_SINGLE_COLOR_SELECT
- See Also:
-
-
Constructor Details
-
SyntaxView
Construct a new view using the given configuration and prefix given- Parameters:
element-config-
-
-
Method Details
-
drawUnselectedText
- Overrides:
drawUnselectedTextin classPlainView
-
drawSelectedText
protected int drawSelectedText(Graphics graphics, int x, int y, int p0, int p1) throws BadLocationException - Overrides:
drawSelectedTextin classPlainView- Throws:
BadLocationException
-
setRenderingHits
Sets the Rendering Hints o nthe Graphics. This is used so that any painters can set the Rendering Hits to match the view.- Parameters:
g2d-
-
updateDamage
- Overrides:
updateDamagein classPlainView
-