public static class ResultModel.ChangeInfo
extends java.lang.Object
Constructor and Description |
---|
ChangeInfo(ResultModel source,
java.util.Map<DiffGroup,java.util.Set<Modification>> visibilityChanged)
Creates an event for a change in the visibility of some
Modification s |
ChangeInfo(ResultModel.STATE_CHANGE_TYPE type,
ResultModel source,
com.inet.pdfc.generator.message.PageReadDone doneChunk,
com.inet.pdfc.generator.message.ProgressState progress)
Creates the event object
|
ChangeInfo(ResultModel source,
java.util.Map<java.lang.String,VisibilitySetting> settingChanges,
com.inet.pdfc.generator.message.ProgressState progress)
Generates an info for a change in the filter
|
ChangeInfo(ResultModel source,
com.inet.pdfc.generator.message.ProgressState progress)
Generates an info for a change in the filter
|
ChangeInfo(ResultModel.STATE_CHANGE_TYPE type,
java.util.List<? extends DiffGroup> newDiffs,
ResultModel source,
com.inet.pdfc.generator.message.ProgressState progress)
Creates the event object
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,VisibilitySetting> |
getChangedSettings()
Returns the map of changes settings.
|
int |
getEndL()
The end page in the first document
|
int |
getEndR()
The end page in the second document
|
float |
getProgress()
Returns the overall progress of the comparison and export in percent
|
ResultModel |
getSource()
Returns the source data model
|
int |
getStartL()
The start page in the first document
|
int |
getStartR()
The start page in the second document
|
ResultModel.STATE_CHANGE_TYPE |
getType()
The type of change
|
java.util.Map<DiffGroup,java.util.Set<Modification>> |
getVisibilityChanges()
Returns a map of all
Modification s where the visibility was changed. |
boolean |
isAffected(int pageNr,
boolean first)
Check whether a certain page was affected by this Change.
|
public ChangeInfo(ResultModel source, java.util.Map<DiffGroup,java.util.Set<Modification>> visibilityChanged)
Modification
ssource
- the source data model, must not be null
visibilityChanged
- a map of the affected DiffGroup
s and Modification
s. Each Modification
listed here
was update in it's visibilitypublic ChangeInfo(ResultModel.STATE_CHANGE_TYPE type, ResultModel source, com.inet.pdfc.generator.message.PageReadDone doneChunk, com.inet.pdfc.generator.message.ProgressState progress)
type
- the type of update, must not be null
source
- the source data model, must not be null
doneChunk
- the chunk created when a page can be comparedprogress
- the overall progress of the comparison and export in percentpublic ChangeInfo(ResultModel source, java.util.Map<java.lang.String,VisibilitySetting> settingChanges, com.inet.pdfc.generator.message.ProgressState progress)
source
- the source data model, must not be null
settingChanges
- the map of changed settingsprogress
- the overall progress of the comparison and export in percentpublic ChangeInfo(ResultModel source, com.inet.pdfc.generator.message.ProgressState progress)
source
- the source data model, must not be null
progress
- the overall progress of the comparison and export in percentpublic ChangeInfo(ResultModel.STATE_CHANGE_TYPE type, java.util.List<? extends DiffGroup> newDiffs, ResultModel source, com.inet.pdfc.generator.message.ProgressState progress)
type
- the type of update, must not be null
newDiffs
- the list of new differencessource
- the source data model, must not be null
progress
- the overall progress of the comparison and export in percentpublic java.util.Map<java.lang.String,VisibilitySetting> getChangedSettings()
ResultModel.STATE_CHANGE_TYPE.FILTER_CHANGE
but never null
public java.util.Map<DiffGroup,java.util.Set<Modification>> getVisibilityChanges()
Modification
s where the visibility was changed. Only relevant in case the type if ResultModel.STATE_CHANGE_TYPE.VISIBILITY_CHANGE
Modification
s where the visibility was changed, will be null
if the type is not ResultModel.STATE_CHANGE_TYPE.VISIBILITY_CHANGE
public int getStartL()
public int getStartR()
public int getEndL()
public int getEndR()
public ResultModel.STATE_CHANGE_TYPE getType()
public ResultModel getSource()
public boolean isAffected(int pageNr, boolean first)
pageNr
- the number of the page, 0-based.first
- true for the first document, false for the second.public float getProgress()
Copyright © 2010-2022 by i-net software GmbH