Oxygen XML Editor 14.1 Author API

ro.sync.ecss.changetracking
Class ChangeMarker

java.lang.Object
  extended by ro.sync.ecss.markers.MarkerBase
      extended by ro.sync.ecss.markers.ContentMarker
          extended by ro.sync.ecss.changetracking.ChangeMarker
All Implemented Interfaces:
java.lang.Comparable<ro.sync.ecss.markers.MarkerBase>, AuthorPersistentHighlight, AuthorPersistentHighlightConstants, ro.sync.ecss.markers.MarkerConstants

public class ChangeMarker
extends ro.sync.ecss.markers.ContentMarker

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


Nested Class Summary
 
Nested classes/interfaces inherited from interface ro.sync.ecss.extensions.api.highlights.AuthorPersistentHighlight
AuthorPersistentHighlight.PersistentHighlightType
 
Field Summary
 
Fields inherited from interface ro.sync.ecss.markers.MarkerConstants
ALL_MARKERS_PI, COMMENT_MARKER_PI_END, COMMENT_MARKER_PI_START, CONTENT, CUSTOM_MARKER_PI_END, CUSTOM_MARKER_PI_START, DATE_FORMAT, DELETE_MARKER_PI, DELETE_MARKER_SPECIAL_PI, DISPLAY_DATE_FORMAT, END_ATTRIBUTE, ID_NAME_ATTRIBUTE, INSERT_MARKER_PI_END, INSERT_MARKER_PI_START, INSERT_MARKER_SPECIAL_PI, OXY_OPTIONS_PI, START_ATTRIBUTE, TRACK_CHANGES_STATE_ATTRIBUTE, TRACK_CHANGES_STATE_ON
 
Fields inherited from interface ro.sync.ecss.extensions.api.highlights.AuthorPersistentHighlightConstants
AUTHOR_NAME_ATTRIBUTE, COMMENT_ATTRIBUTE, MODIFICATION_TIME
 
Constructor Summary
ChangeMarker(AuthorPersistentHighlight.PersistentHighlightType type)
          Constructor.
 
Method Summary
static ChangeMarker createChangeMarker(Content content, AuthorPersistentHighlight.PersistentHighlightType markerType, int startOffset, int endOffset)
          Create a fixed marker with the info from another marker.
static ChangeMarker createChangeMarker(Content content, ro.sync.ecss.markers.MarkerBase marker, int startOffset, int endOffset)
          Create a fixed marker with the info from another marker.
static ChangeMarker duplicate(Content content, ro.sync.ecss.markers.MarkerBase marker)
          Create a fixed marker with the info from another marker.
 
Methods inherited from class ro.sync.ecss.markers.ContentMarker
getEndMark, getEndOffset, getStartMark, getStartOffset, setEndMark, setStartMark
 
Methods inherited from class ro.sync.ecss.markers.MarkerBase
compareTo, containsOffset, getAuthor, getAuthorComment, getClonedProperties, getDescription, getFormattedModififcationTime, getModificationTime, getProperties, getSerializationUniqueID, getTimestamp, getType, setAuthor, setAuthorComment, setModTime, setProperty, setSerializationUniqueID, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChangeMarker

public ChangeMarker(AuthorPersistentHighlight.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,
                                                    ro.sync.ecss.markers.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.

createChangeMarker

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

Parameters:
content - The author content.
markerType - The marker type
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,
                                           ro.sync.ecss.markers.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 14.1 Author API

© Copyright SyncRO Soft SRL 2002 - 2012. All rights reserved.