com.levigo.jadice.annotation
Class HistoryAnnotation
java.lang.Object
com.levigo.jadice.annotation.Annotation
com.levigo.jadice.annotation.ShapeBasedAnnotation
com.levigo.jadice.annotation.RectangleAnnotation
com.levigo.jadice.annotation.TextAnnotation
com.levigo.jadice.annotation.HistoryAnnotation
- All Implemented Interfaces:
- PermissionsProvider<Annotation>, PropertiesProvider, MementoOriginator, Cloneable
public class HistoryAnnotation
- extends TextAnnotation
Field Summary |
protected String |
secureText
Due to technical reasons the field modifier of the secure text content is protected. |
Fields inherited from class com.levigo.jadice.annotation.TextAnnotation |
bold, defaultText, editable, fontFace, fontSize, italic, scaleText, strikethrough, text, textColor, underscored |
Methods inherited from class com.levigo.jadice.annotation.TextAnnotation |
getDefaultText, getFont, getFontFace, getFontSize, getMaxCharacters, getText, getTextColor, isBold, isEditable, isItalic, isScaleText, isStrikethrough, isUnderscored, setBold, setDefaultText, setEditable, setFontFace, setFontSize, setItalic, setMaxCharacters, setScaleText, setStrikethrough, setText, setTextColor, setUnderscored |
Methods inherited from class com.levigo.jadice.annotation.ShapeBasedAnnotation |
createColorWithAlpha, getFillColor, getLineWidth, getStrokeColor, getStrokeResolution, isAllowResize, isFilled, isIconified, isLinePainted, setAllowResize, setFillColor, setFilled, setIconified, setLinePainted, setLineWidth, setStrokeColor, setStrokeResolution |
Methods inherited from class com.levigo.jadice.annotation.Annotation |
clearModified, createMemento, fireAnnotationChange, getChangeHandler, getCreatedAt, getCreatedBy, getID, getInitializer, getLastModifiedAt, getLastModifiedBy, getModCount, getPermissions, getProperties, getType, initialize, isDoFireAnnotationEvents, isInitialized, isModified, restoreFrom, setChangeHandler, setCreatedBy, setCreationTimestamp, setDoFireAnnotationEvents, setID, setInitializer, setLastModifiedBy, setModified, setModifyTimestamp, setType |
secureText
protected String secureText
- Due to technical reasons the field modifier of the secure text content is protected. It is
strongly recommended not to change the
secureText
field in any
direct way using the protected field access.
HistoryAnnotation
public HistoryAnnotation()
getEntireText
public String getEntireText()
- Returns entire text (new text + history pattern + secure text)
- Returns:
- Entire text
setEntireText
public void setEntireText(String entireText)
- Sets the entire text, this method should be used by the reader- / writer-implementations.
- Parameters:
entireText
-
clone
public HistoryAnnotation clone()
- Overrides:
clone
in class TextAnnotation
- See Also:
Object.clone()
copyAttributesTo
protected void copyAttributesTo(Annotation annotation)
- Description copied from class:
Annotation
- Copy annotation type related attributes to new annotation.
- Overrides:
copyAttributesTo
in class TextAnnotation
- Parameters:
annotation
- Annotation to set attributes
setHistoryPattern
public void setHistoryPattern(String historyPattern)
- Set history pattern displayed as non editable text.
- Parameters:
historyPattern
- History pattern to set
getHistoryPattern
public String getHistoryPattern()
- Returns current history pattern
- Returns:
- History pattern
getPatternPosition
public HistoryAnnotation.HistoryPatternPosition getPatternPosition()
- Return current pattern position.
- Returns:
- Pattern position
setPatternPosition
public void setPatternPosition(HistoryAnnotation.HistoryPatternPosition patternPosition)
- Set history pattern position, possible values see
HistoryAnnotation.HistoryPatternPosition
.
- Parameters:
patternPosition
-
Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.