Package jsyntaxpane.components
Class PairsMarker
java.lang.Object
jsyntaxpane.components.PairsMarker
- All Implemented Interfaces:
PropertyChangeListener,EventListener,CaretListener,SyntaxComponent
public class PairsMarker
extends Object
implements CaretListener, SyntaxComponent, PropertyChangeListener
This class highlights any pairs of the given language. Pairs are defined
with the Token.pairValue.
-
Nested Class Summary
Nested classes/interfaces inherited from interface jsyntaxpane.components.SyntaxComponent
SyntaxComponent.Status -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidconfig(Configuration config) Configure the component using the given properties.voiddeinstall(JEditorPane editor) Called when the component is to be removed from the editorvoidinstall(JEditorPane editor) Called to install the component on an editorvoidvoidRemove all the highlights from the editor pane.
-
Field Details
-
PROPERTY_COLOR
- See Also:
-
-
Constructor Details
-
PairsMarker
public PairsMarker()
-
-
Method Details
-
caretUpdate
- Specified by:
caretUpdatein interfaceCaretListener
-
removeMarkers
public void removeMarkers()Remove all the highlights from the editor pane. This should be called when the editorkit is removed. -
config
Description copied from interface:SyntaxComponentConfigure the component using the given properties. The keys needed for configuration will be prefixed by the given prefix- Specified by:
configin interfaceSyntaxComponent- Parameters:
config- configuration data
-
install
Description copied from interface:SyntaxComponentCalled to install the component on an editor- Specified by:
installin interfaceSyntaxComponent
-
deinstall
Description copied from interface:SyntaxComponentCalled when the component is to be removed from the editor- Specified by:
deinstallin interfaceSyntaxComponent
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener
-