|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface defines the functionality used to check for and resolve conflicts in GraphDocuments concerning Style, Geometry, Layout, Rule and Image definitions.
| Method Summary | |
ElementDefinitionWrapper |
getElementDefinitionWrapper()
Returns the ElementDefinitionWrapper instance to use for
storing information about conflicts. |
int |
getGeometriesOption(boolean showConflict)
Returns the option for resolving a styles conflict |
int |
getImagesOption(boolean showConflict)
Returns the option for resolving a image conflict |
int |
getLayoutContextOption(boolean showConflict)
Returns the option for resolving a layout context conflict |
int |
getRulesOption(boolean showConflict)
Returns the option for resolving a styles conflict |
int |
getStyleNamesOption(boolean showConflict)
Returns the option for resolving a style names conflict |
int |
getStylesOption(boolean showConflict)
Returns the option for resolving a styles conflict |
boolean |
reassignLayoutContexts(ElementDefinitionUtil.RenameAttributable attributable)
Reassigns missing layout contexts to existing ones. |
boolean |
reassignMissingFonts(ElementDefinitionUtil.RenameAttributable attributable)
Reassigns missing fonts to existing ones. |
boolean |
reassignMissingRules(ElementDefinitionUtil.RenameAttributable attributable)
Reassigns missing rules to existing ones. |
boolean |
resolveConflicts(LayoutController lc,
boolean resolveLayoutConflict,
boolean resolveStylesConflict,
boolean resolveStyleNamesConflict,
boolean resolveGeometryConflict,
boolean resolveRulesConflict,
boolean resolveImageConflict)
Resolve conflicts and determine an apply option for each conflict type. |
void |
setElementDefinitionWrapper(ElementDefinitionWrapper edw)
Sets the ElementDefinitionWrapper instance that is used
to hold the information about the conflicts that occurred. |
boolean |
storeNewDefaults()
Returns true if the currently selected apply options should be used as new defaults. |
boolean |
suppressFutureConflicts()
Returns true if future conflicts of the current types should always use the default and should therefore skip an interactive selection process. |
| Method Detail |
public void setElementDefinitionWrapper(ElementDefinitionWrapper edw)
ElementDefinitionWrapper instance that is used
to hold the information about the conflicts that occurred.
edw - The instance to usepublic ElementDefinitionWrapper getElementDefinitionWrapper()
ElementDefinitionWrapper instance to use for
storing information about conflicts.
ElementDefinitionWrapper instance to use for
storing information about conflicts.
public boolean resolveConflicts(LayoutController lc,
boolean resolveLayoutConflict,
boolean resolveStylesConflict,
boolean resolveStyleNamesConflict,
boolean resolveGeometryConflict,
boolean resolveRulesConflict,
boolean resolveImageConflict)
lc - The layout controllerresolveLayoutConflict - true, to resolve the layout conflictsresolveStylesConflict - true, to resolve the styles conflictsresolveStyleNamesConflict - true, to resolve the style name conflictsresolveGeometryConflict - true, to resolve the geometry conflictsresolveRulesConflict - true, to resolve the rules conflictsresolveImageConflict - true, to resolve the image conflicts
public boolean storeNewDefaults()
public boolean suppressFutureConflicts()
public boolean reassignLayoutContexts(ElementDefinitionUtil.RenameAttributable attributable)
AttributableOnSet.getAttributesTree()
and AttributableOnSet.setAttributesTree(AttributeSet)
to retrieve and set the data.
attributable - The attributable containing the reassignment
information
public boolean reassignMissingRules(ElementDefinitionUtil.RenameAttributable attributable)
AttributableOnSet.getAttributesTree()
and AttributableOnSet.setAttributesTree(AttributeSet)
to retrieve and set the data.
attributable - The attributable containing the reassignment
information
public boolean reassignMissingFonts(ElementDefinitionUtil.RenameAttributable attributable)
AttributableOnSet.getAttributesTree()
and AttributableOnSet.setAttributesTree(AttributeSet)
to retrieve and set the data.
attributable - The attributable containing the reassignment
information
public int getRulesOption(boolean showConflict)
showConflict - true if the option was changed from default e.g. by
presenting a dialog to the user
false to use the default from preferences
public int getGeometriesOption(boolean showConflict)
showConflict - true if the option was changed from default e.g. by
presenting a dialog to the user
false to use the default from preferences
public int getImagesOption(boolean showConflict)
showConflict - true if the option was changed from default e.g. by
presenting a dialog to the user
false to use the default from preferences
public int getStylesOption(boolean showConflict)
showConflict - true if the option was changed from default e.g. by
presenting a dialog to the user
false to use the default from preferences
public int getStyleNamesOption(boolean showConflict)
showConflict - true if the option was changed from default e.g. by
presenting a dialog to the user
false to use the default from preferences
public int getLayoutContextOption(boolean showConflict)
showConflict - true if the option was changed from default e.g. by
presenting a dialog to the user
false to use the default from preferences
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||