Package 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
,com.levigo.jadice.web.shared.model.annotation.internal.JwtAnnotation
,Serializable
,org.jadice.util.base.MementoOriginator
- Direct Known Subclasses:
JWTSerializableHistoryAnnotation
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class com.levigo.jadice.annotation.TextAnnotation
bold, defaultText, editable, fontFace, fontSize, horizontalAlignment, italic, rotation, scaleText, strikethrough, text, textColor, underscored
Fields inherited from class com.levigo.jadice.annotation.RectangleAnnotation
rect, shape
Fields inherited from class com.levigo.jadice.annotation.ShapeBasedAnnotation
allowResize, fillColor, filled, iconified, linePainted, lineWidth, strokeColor, strokeResolution
Fields inherited from class com.levigo.jadice.annotation.Annotation
createdAt, createdBy, doFireAnnotationEvents, id, initializer, isModified, lastModifiedAt, lastModifiedBy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()
protected void
copyAttributesTo
(Annotation annotation) Returns entire text (new text + history pattern + secure text)Returns current history patternReturn current pattern position.void
setEntireText
(String entireText) Sets the entire text, this method should be used by the reader- / writer-implementations.void
setHistoryPattern
(String historyPattern) Set history pattern displayed as non editable text.void
setPatternPosition
(HistoryAnnotation.HistoryPatternPosition patternPosition) Set history pattern position, possible values seeHistoryAnnotation.HistoryPatternPosition
.Methods inherited from class com.levigo.jadice.annotation.TextAnnotation
getBounds, getDefaultText, getFontFace, getFontSize, getHorizontalAlignment, getMaxCharacters, getPathIterator, getRotation, getText, getTextColor, isBold, isEditable, isItalic, isScaleText, isStrikethrough, isUnderscored, setBold, setDefaultText, setEditable, setFontFace, setFontSize, setHorizontalAlignment, setItalic, setLocation, setMaxCharacters, setRotation, setScaleText, setSize, setStrikethrough, setText, setTextColor, setUnderscored, translate
Methods inherited from class com.levigo.jadice.annotation.RectangleAnnotation
getRectangle, getShape, setRectangle, update
Methods inherited from class com.levigo.jadice.annotation.ShapeBasedAnnotation
getFillColor, getLineWidth, getStrokeColor, getStrokeResolution, isAllowResize, isFilled, isIconified, isLinePainted, prepareSerialisation, setAllowResize, setFillColor, setFilled, setIconified, setLinePainted, setLineWidth, setStrokeColor, setStrokeResolution
Methods inherited from class com.levigo.jadice.annotation.Annotation
clearModified, clone, createMemento, fireAnnotationChange, getChangeHandler, getCreatedAt, getCreatedBy, getID, getInitializer, getLastModifiedAt, getLastModifiedBy, getModCount, getPermissions, getProfileId, getProperties, getType, getTypeName, initialize, isDoFireAnnotationEvents, isInitialized, isModified, restoreFrom, setChangeHandler, setCreatedBy, setCreationTimestamp, setDoFireAnnotationEvents, setID, setInitializer, setLastModifiedBy, setModified, setModifyTimestamp, setProfileId, setType, setTypeName
-
Field Details
-
secureText
-
-
Constructor Details
-
HistoryAnnotation
public HistoryAnnotation()
-
-
Method Details
-
getEntireText
Returns entire text (new text + history pattern + secure text)- Returns:
- Entire text
-
setEntireText
Sets the entire text, this method should be used by the reader- / writer-implementations.- Parameters:
entireText
-
-
copy
- Specified by:
copy
in interfacecom.levigo.jadice.web.shared.model.annotation.internal.JwtAnnotation
- Overrides:
copy
in classTextAnnotation
-
copyAttributesTo
- Overrides:
copyAttributesTo
in classTextAnnotation
-
setHistoryPattern
Set history pattern displayed as non editable text.- Parameters:
historyPattern
- History pattern to set
-
getHistoryPattern
Returns current history pattern- Returns:
- History pattern
-
getPatternPosition
Return current pattern position.- Returns:
- Pattern position
-
setPatternPosition
Set history pattern position, possible values seeHistoryAnnotation.HistoryPatternPosition
.- Parameters:
patternPosition
-
-