public class RevisionOptions
extends java.lang.Object
implements java.lang.Cloneable
To learn more, visit the Converting to Fixed-page Format documentation article.
| Modifier and Type | Method and Description |
|---|---|
int |
getCommentColor()
Allows to specify the color to be used for comments.
|
int |
getDeletedTextColor()
Allows to specify the color to be used for deleted content
RevisionType.DELETION. |
int |
getDeletedTextEffect()
Allows to specify the effect to be applied to the deleted content
RevisionType.DELETION. |
int |
getInsertedTextColor()
Allows to specify the color to be used for inserted content
RevisionType.INSERTION. |
int |
getInsertedTextEffect()
Allows to specify the effect to be applied to the inserted content
RevisionType.INSERTION. |
int |
getMeasurementUnit()
Allows to specify the measurement units for revision comments.
|
int |
getMovedFromTextColor()
Allows to specify the color to be used for areas where content was moved from
RevisionType.MOVING. |
int |
getMovedFromTextEffect()
Allows to specify the effect to be applied to the areas where content was moved from
RevisionType.MOVING. |
int |
getMovedToTextColor()
Allows to specify the color to be used for areas where content was moved to
RevisionType.MOVING. |
int |
getMovedToTextEffect()
Allows to specify the effect to be applied to the areas where content was moved to
RevisionType.MOVING. |
int |
getRevisedPropertiesColor()
Allows to specify the color to be used for content with changes of formatting properties
RevisionType.FORMAT_CHANGE Default value is RevisionColor.NO_HIGHLIGHT. |
int |
getRevisedPropertiesEffect()
Allows to specify the effect for content areas with changes of formatting properties
RevisionType.FORMAT_CHANGE Default value is RevisionTextEffect.NONE
RevisionTextEffect.HIDDEN is not allowed and will cause IllegalArgumentException. |
int |
getRevisionBarsColor()
Allows to specify the color to be used for side bars that identify document lines containing revised information.
|
int |
getRevisionBarsPosition()
Gets rendering position of revision bars.
|
float |
getRevisionBarsWidth()
Gets width of revision bars, points.
|
int |
getShowInBalloons()
Allows to specify whether the revisions are rendered in the balloons.
|
boolean |
getShowOriginalRevision()
Allows to specify whether the original text should be shown instead of revised one.
|
boolean |
getShowRevisionBars()
Allows to specify whether revision bars should be rendered near lines containing revised content.
|
boolean |
getShowRevisionMarks()
Allow to specify whether revision text should be marked with special formatting markup.
|
protected java.lang.Object |
memberwiseClone() |
void |
setCommentColor(int value)
Allows to specify the color to be used for comments.
|
void |
setDeletedTextColor(int value)
Allows to specify the color to be used for deleted content
RevisionType.DELETION. |
void |
setDeletedTextEffect(int value)
Allows to specify the effect to be applied to the deleted content
RevisionType.DELETION. |
void |
setInsertedTextColor(int value)
Allows to specify the color to be used for inserted content
RevisionType.INSERTION. |
void |
setInsertedTextEffect(int value)
Allows to specify the effect to be applied to the inserted content
RevisionType.INSERTION. |
void |
setMeasurementUnit(int value)
Allows to specify the measurement units for revision comments.
|
void |
setMovedFromTextColor(int value)
Allows to specify the color to be used for areas where content was moved from
RevisionType.MOVING. |
void |
setMovedFromTextEffect(int value)
Allows to specify the effect to be applied to the areas where content was moved from
RevisionType.MOVING. |
void |
setMovedToTextColor(int value)
Allows to specify the color to be used for areas where content was moved to
RevisionType.MOVING. |
void |
setMovedToTextEffect(int value)
Allows to specify the effect to be applied to the areas where content was moved to
RevisionType.MOVING. |
void |
setRevisedPropertiesColor(int value)
Allows to specify the color to be used for content with changes of formatting properties
RevisionType.FORMAT_CHANGE Default value is RevisionColor.NO_HIGHLIGHT. |
void |
setRevisedPropertiesEffect(int value)
Allows to specify the effect for content areas with changes of formatting properties
RevisionType.FORMAT_CHANGE Default value is RevisionTextEffect.NONE
RevisionTextEffect.HIDDEN is not allowed and will cause IllegalArgumentException. |
void |
setRevisionBarsColor(int value)
Allows to specify the color to be used for side bars that identify document lines containing revised information.
|
void |
setRevisionBarsPosition(int value)
Sets rendering position of revision bars.
|
void |
setRevisionBarsWidth(float value)
Sets width of revision bars, points.
|
void |
setShowInBalloons(int value)
Allows to specify whether the revisions are rendered in the balloons.
|
void |
setShowOriginalRevision(boolean value)
Allows to specify whether the original text should be shown instead of revised one.
|
void |
setShowRevisionBars(boolean value)
Allows to specify whether revision bars should be rendered near lines containing revised content.
|
void |
setShowRevisionMarks(boolean value)
Allow to specify whether revision text should be marked with special formatting markup.
|
public boolean getShowRevisionMarks()
boolean value.public void setShowRevisionMarks(boolean value)
value - The corresponding boolean value.public boolean getShowRevisionBars()
boolean value.public void setShowRevisionBars(boolean value)
value - The corresponding boolean value.public boolean getShowOriginalRevision()
boolean value.public void setShowOriginalRevision(boolean value)
value - The corresponding boolean value.public int getInsertedTextColor()
RevisionType.INSERTION. Default value is RevisionColor.BY_AUTHOR.int value. The returned value is one of RevisionColor constants.public void setInsertedTextColor(int value)
RevisionType.INSERTION. Default value is RevisionColor.BY_AUTHOR.value - The corresponding int value. The value must be one of RevisionColor constants.public int getInsertedTextEffect()
RevisionType.INSERTION. Default value is RevisionTextEffect.UNDERLINE.
Values of RevisionTextEffect.HIDDEN and RevisionTextEffect.DOUBLE_STRIKE_THROUGH are not allowed and will cause IllegalArgumentException.int value. The returned value is one of RevisionTextEffect constants.public void setInsertedTextEffect(int value)
RevisionType.INSERTION. Default value is RevisionTextEffect.UNDERLINE.
Values of RevisionTextEffect.HIDDEN and RevisionTextEffect.DOUBLE_STRIKE_THROUGH are not allowed and will cause IllegalArgumentException.value - The corresponding int value. The value must be one of RevisionTextEffect constants.public int getDeletedTextColor()
RevisionType.DELETION. Default value is RevisionColor.BY_AUTHOR.int value. The returned value is one of RevisionColor constants.public void setDeletedTextColor(int value)
RevisionType.DELETION. Default value is RevisionColor.BY_AUTHOR.value - The corresponding int value. The value must be one of RevisionColor constants.public int getDeletedTextEffect()
RevisionType.DELETION. Default value is RevisionTextEffect.STRIKE_THROUGHint value. The returned value is one of RevisionTextEffect constants.public void setDeletedTextEffect(int value)
RevisionType.DELETION. Default value is RevisionTextEffect.STRIKE_THROUGHvalue - The corresponding int value. The value must be one of RevisionTextEffect constants.public int getMovedFromTextColor()
RevisionType.MOVING. Default value is RevisionColor.BY_AUTHOR.int value. The returned value is one of RevisionColor constants.public void setMovedFromTextColor(int value)
RevisionType.MOVING. Default value is RevisionColor.BY_AUTHOR.value - The corresponding int value. The value must be one of RevisionColor constants.public int getMovedFromTextEffect()
RevisionType.MOVING. Default value is RevisionTextEffect.DOUBLE_STRIKE_THROUGHint value. The returned value is one of RevisionTextEffect constants.public void setMovedFromTextEffect(int value)
RevisionType.MOVING. Default value is RevisionTextEffect.DOUBLE_STRIKE_THROUGHvalue - The corresponding int value. The value must be one of RevisionTextEffect constants.public int getMovedToTextColor()
RevisionType.MOVING. Default value is RevisionColor.BY_AUTHOR.int value. The returned value is one of RevisionColor constants.public void setMovedToTextColor(int value)
RevisionType.MOVING. Default value is RevisionColor.BY_AUTHOR.value - The corresponding int value. The value must be one of RevisionColor constants.public int getMovedToTextEffect()
RevisionType.MOVING. Default value is RevisionTextEffect.DOUBLE_UNDERLINE
Values of RevisionTextEffect.HIDDEN and RevisionTextEffect.DOUBLE_STRIKE_THROUGH are not allowed and will cause IllegalArgumentException.int value. The returned value is one of RevisionTextEffect constants.public void setMovedToTextEffect(int value)
RevisionType.MOVING. Default value is RevisionTextEffect.DOUBLE_UNDERLINE
Values of RevisionTextEffect.HIDDEN and RevisionTextEffect.DOUBLE_STRIKE_THROUGH are not allowed and will cause IllegalArgumentException.value - The corresponding int value. The value must be one of RevisionTextEffect constants.public int getRevisedPropertiesColor()
RevisionType.FORMAT_CHANGE Default value is RevisionColor.NO_HIGHLIGHT.int value. The returned value is one of RevisionColor constants.public void setRevisedPropertiesColor(int value)
RevisionType.FORMAT_CHANGE Default value is RevisionColor.NO_HIGHLIGHT.value - The corresponding int value. The value must be one of RevisionColor constants.public int getRevisedPropertiesEffect()
RevisionType.FORMAT_CHANGE Default value is RevisionTextEffect.NONE
RevisionTextEffect.HIDDEN is not allowed and will cause IllegalArgumentException.int value. The returned value is one of RevisionTextEffect constants.public void setRevisedPropertiesEffect(int value)
RevisionType.FORMAT_CHANGE Default value is RevisionTextEffect.NONE
RevisionTextEffect.HIDDEN is not allowed and will cause IllegalArgumentException.value - The corresponding int value. The value must be one of RevisionTextEffect constants.public int getRevisionBarsColor()
RevisionColor.RED.
Setting this property to RevisionColor.BY_AUTHOR or RevisionColor.NO_HIGHLIGHT values will result in hiding revision bars from the layout.int value. The returned value is one of RevisionColor constants.public void setRevisionBarsColor(int value)
RevisionColor.RED.
Setting this property to RevisionColor.BY_AUTHOR or RevisionColor.NO_HIGHLIGHT values will result in hiding revision bars from the layout.value - The corresponding int value. The value must be one of RevisionColor constants.public float getRevisionBarsWidth()
public void setRevisionBarsWidth(float value)
value - Width of revision bars, points.public int getRevisionBarsPosition()
HorizontalAlignment.OUTSIDE.
Values of HorizontalAlignment.CENTER and HorizontalAlignment.INSIDE are not allowed and will cause IllegalArgumentException.HorizontalAlignment constants.public void setRevisionBarsPosition(int value)
HorizontalAlignment.OUTSIDE.
Values of HorizontalAlignment.CENTER and HorizontalAlignment.INSIDE are not allowed and will cause IllegalArgumentException.value - Rendering position of revision bars. The value must be one of HorizontalAlignment constants.public int getCommentColor()
RevisionColor.RED.
If set this property to RevisionColor.BY_AUTHOR or RevisionColor.NO_HIGHLIGHT values, as the result this property will be set to default color.int value. The returned value is one of RevisionColor constants.public void setCommentColor(int value)
RevisionColor.RED.
If set this property to RevisionColor.BY_AUTHOR or RevisionColor.NO_HIGHLIGHT values, as the result this property will be set to default color.value - The corresponding int value. The value must be one of RevisionColor constants.public int getShowInBalloons()
ShowInBalloons.NONE.
Note that revisions are not rendered in balloons for CommentDisplayMode.SHOW_IN_ANNOTATIONS.int value. The returned value is one of ShowInBalloons constants.public void setShowInBalloons(int value)
ShowInBalloons.NONE.
Note that revisions are not rendered in balloons for CommentDisplayMode.SHOW_IN_ANNOTATIONS.value - The corresponding int value. The value must be one of ShowInBalloons constants.public int getMeasurementUnit()
MeasurementUnits.CENTIMETERSint value. The returned value is one of MeasurementUnits constants.public void setMeasurementUnit(int value)
MeasurementUnits.CENTIMETERSvalue - The corresponding int value. The value must be one of MeasurementUnits constants.protected java.lang.Object memberwiseClone()