jsyntaxpane.components
public class PairsMarker extends java.lang.Object implements javax.swing.event.CaretListener, SyntaxComponent, java.beans.PropertyChangeListener
SyntaxComponent.Status
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROPERTY_COLOR |
Constructor and Description |
---|
PairsMarker() |
Modifier and Type | Method and Description |
---|---|
void |
caretUpdate(javax.swing.event.CaretEvent e) |
void |
config(Configuration config)
Configure the component using the given properties.
|
void |
deinstall(javax.swing.JEditorPane editor)
Called when the component is to be removed from the editor
|
void |
install(javax.swing.JEditorPane editor)
Called to install the component on an editor
|
void |
propertyChange(java.beans.PropertyChangeEvent evt) |
void |
removeMarkers()
Remove all the highlights from the editor pane.
|
public static final java.lang.String PROPERTY_COLOR
public void caretUpdate(javax.swing.event.CaretEvent e)
caretUpdate
in interface javax.swing.event.CaretListener
public void removeMarkers()
public void config(Configuration config)
SyntaxComponent
config
in interface SyntaxComponent
config
- configuration datapublic void install(javax.swing.JEditorPane editor)
SyntaxComponent
install
in interface SyntaxComponent
public void deinstall(javax.swing.JEditorPane editor)
SyntaxComponent
deinstall
in interface SyntaxComponent
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener