@JsonData
public abstract class DiffGroup
extends java.lang.Object
implements java.io.Serializable
DiffGroup
describes a set of subsequent Modification
s in a document. It is characterized
by the fact the the elements in front of and after the DiffGroup
are equal. Furthermore there are
no equal elements inside the range of a DiffGroup
.Modification
s in this group.
For a detailed description refer to the DiffGroup.GroupType
enumeration.DiffGroup
have no modifications at all. These groups always have the type
DiffGroup.GroupType.Sync
and are a hint to faster sync back to equal elements after a modification.Modifier and Type | Class and Description |
---|---|
static class |
DiffGroup.GroupType
Defines the type of a
DiffGroup and thus how to interpret the content of the affected
elements lists. |
Constructor and Description |
---|
DiffGroup() |
Modifier and Type | Method and Description |
---|---|
abstract java.util.List<com.inet.pdfc.model.PagedElement> |
getAddedElements()
Returns a list of elements which are added of have a new value in the SECOND document.
|
abstract com.inet.pdfc.generator.model.IDiffGroupBounds |
getBoundingElements()
Returns the elements which define the bounds of the group in the element flow
of the first and second document.
|
abstract java.awt.Rectangle |
getBounds(boolean first)
Returns the overall outline of all affected elements of this group in one of the documents.
|
DifferencePages |
getDifferencePages(boolean first)
Return the difference pageNumbers or null if no elements exist for this document
|
abstract int |
getDifferencesCount()
Returns the number modifications in this group.
|
abstract java.util.List<Modification> |
getModifications()
Returns the list of modifications contained in this group.
|
abstract java.util.List<com.inet.pdfc.model.PagedElement> |
getRemovedElements()
Returns a list of elements which are removed of have a modified value in the FIRST document.
|
abstract DiffGroup.GroupType |
getType()
Returns the type of differences in this group.
|
abstract boolean |
isVisible()
Returns whether this differences group contains at least one visible
Modification |
public abstract java.util.List<com.inet.pdfc.model.PagedElement> getRemovedElements()
null
public abstract java.util.List<com.inet.pdfc.model.PagedElement> getAddedElements()
null
public abstract java.awt.Rectangle getBounds(boolean first)
first
- true
for the first document, false
public abstract int getDifferencesCount()
public abstract com.inet.pdfc.generator.model.IDiffGroupBounds getBoundingElements()
null
although the elements in the
bounds instance may all be null
public abstract DiffGroup.GroupType getType()
Modification
s in this group.null
DiffGroup.GroupType
public abstract java.util.List<Modification> getModifications()
null
for sync groupspublic DifferencePages getDifferencePages(boolean first)
first
- true
for the first document, false
public abstract boolean isVisible()
Modification
true
if there is at least one visible Modification
, hence falseCopyright © 2010-2022 by i-net software GmbH