Package jsyntaxpane.components
Class PairsMarker
- java.lang.Object
-
- jsyntaxpane.components.PairsMarker
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener,java.util.EventListener,javax.swing.event.CaretListener,SyntaxComponent
public class PairsMarker extends java.lang.Object implements javax.swing.event.CaretListener, SyntaxComponent, java.beans.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 Modifier and Type Field Description static java.lang.StringPROPERTY_COLOR
-
Constructor Summary
Constructors Constructor Description PairsMarker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcaretUpdate(javax.swing.event.CaretEvent e)voidconfig(Configuration config)Configure the component using the given properties.voiddeinstall(javax.swing.JEditorPane editor)Called when the component is to be removed from the editorvoidinstall(javax.swing.JEditorPane editor)Called to install the component on an editorvoidpropertyChange(java.beans.PropertyChangeEvent evt)voidremoveMarkers()Remove all the highlights from the editor pane.
-
-
-
Field Detail
-
PROPERTY_COLOR
public static final java.lang.String PROPERTY_COLOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
caretUpdate
public void caretUpdate(javax.swing.event.CaretEvent e)
- Specified by:
caretUpdatein interfacejavax.swing.event.CaretListener
-
removeMarkers
public void removeMarkers()
Remove all the highlights from the editor pane. This should be called when the editorkit is removed.
-
config
public void config(Configuration 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
public void install(javax.swing.JEditorPane editor)
Description copied from interface:SyntaxComponentCalled to install the component on an editor- Specified by:
installin interfaceSyntaxComponent
-
deinstall
public void deinstall(javax.swing.JEditorPane editor)
Description copied from interface:SyntaxComponentCalled when the component is to be removed from the editor- Specified by:
deinstallin interfaceSyntaxComponent
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent evt)
- Specified by:
propertyChangein interfacejava.beans.PropertyChangeListener
-
-