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 TypeMethodDescriptionvoid
void
config
(Configuration config) Configure the component using the given properties.void
deinstall
(JEditorPane editor) Called when the component is to be removed from the editorvoid
install
(JEditorPane editor) Called to install the component on an editorvoid
void
Remove all the highlights from the editor pane.
-
Field Details
-
PROPERTY_COLOR
- See Also:
-
-
Constructor Details
-
PairsMarker
public PairsMarker()
-
-
Method Details
-
caretUpdate
- Specified by:
caretUpdate
in 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:SyntaxComponent
Configure the component using the given properties. The keys needed for configuration will be prefixed by the given prefix- Specified by:
config
in interfaceSyntaxComponent
- Parameters:
config
- configuration data
-
install
Description copied from interface:SyntaxComponent
Called to install the component on an editor- Specified by:
install
in interfaceSyntaxComponent
- Parameters:
editor
-
-
deinstall
Description copied from interface:SyntaxComponent
Called when the component is to be removed from the editor- Specified by:
deinstall
in interfaceSyntaxComponent
- Parameters:
editor
-
-
propertyChange
- Specified by:
propertyChange
in interfacePropertyChangeListener
-