Oxygen XML Editor 12.2 Author API

ro.sync.ecss.changetracking
Class ChangeMarker

java.lang.Object
  extended by ContentMarker
      extended by ro.sync.ecss.changetracking.ChangeMarker

public class ChangeMarker
extends ContentMarker

This object marks a change in the Author (insert or delete).


Constructor Summary
ChangeMarker(PersistentHighlightType type)
          Constructor.
 
Method Summary
static ChangeMarker createChangeMarker(Content content, MarkerBase marker, int startOffset, int endOffset)
          Create a fixed marker with the info from another marker.
static ChangeMarker duplicate(Content content, MarkerBase marker)
          Create a fixed marker with the info from another marker.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangeMarker

public ChangeMarker(PersistentHighlightType type)
Constructor.

Parameters:
type - The persistent highlight type, one of AuthorPersistentHighlight.PersistentHighlightType#CHANGE_DELETE or AuthorPersistentHighlight.PersistentHighlightType#CHANGE_INSERT
Method Detail

createChangeMarker

public static final ChangeMarker createChangeMarker(Content content,
                                                    MarkerBase marker,
                                                    int startOffset,
                                                    int endOffset)
                                             throws javax.swing.text.BadLocationException
Create a fixed marker with the info from another marker.

Parameters:
content - The author content.
marker - The original marker.
startOffset - The start offset
endOffset - The end offset
Returns:
The new marker.
Throws:
javax.swing.text.BadLocationException - Thrown if it fails to create positions.

duplicate

public static final ChangeMarker duplicate(Content content,
                                           MarkerBase marker)
                                    throws javax.swing.text.BadLocationException
Create a fixed marker with the info from another marker.

Parameters:
content - The author content.
marker - The original marker.
Returns:
The new marker.
Throws:
javax.swing.text.BadLocationException - Thrown if it fails to create positions.

Oxygen XML Editor 12.2 Author API

© Copyright SyncRO Soft SRL 2002 - 2010.