Class JSyntaxView
java.lang.Object
javax.swing.text.View
javax.swing.text.PlainView
net.thevpc.jeep.editor.JSyntaxView
- All Implemented Interfaces:
SwingConstants, TabExpander
-
Field Summary
FieldsFields inherited from class View
BadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS, Y_AXISFields inherited from interface 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
ConstructorsConstructorDescriptionJSyntaxView(Element element, JSyntaxStyleManager styles) 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 PlainView
changedUpdate, damageLineRange, drawLine, drawLine, drawSelectedText, drawUnselectedText, getLineBuffer, getPreferredSpan, getTabSize, insertUpdate, lineToRect, modelToView, nextTabStop, paint, removeUpdate, setSize, updateMetrics, viewToModelMethods inherited from class 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_TEXTAA
- See Also:
-
-
Constructor Details
-
JSyntaxView
Construct a new view using the given configuration and prefix given- Parameters:
element- // * @param config // * @param prefix
-
-
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
-
updateDamage
- Overrides:
updateDamagein classPlainView
-
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-
-