public class InstructionAnnotation extends RectangleAnnotation
URIInstruction
and TargetStringInstruction
are supported. For other instructions with special fields a custom converter
needs to be implemented.Modifier and Type | Field and Description |
---|---|
protected InstructionChain |
instructionChain
A chain that holds the instructions for the annotation
|
shape
allowResize, fillColor, filled, iconified, linePainted, lineWidth, strokeColor, strokeResolution
createdAt, createdBy, doFireAnnotationEvents, id, initializer, isModified, lastModifiedAt, lastModifiedBy
Constructor and Description |
---|
InstructionAnnotation() |
Modifier and Type | Method and Description |
---|---|
InstructionAnnotation |
clone() |
protected void |
copyAttributesTo(Annotation annotation)
Copy annotation type related attributes to new annotation.
|
InstructionChain |
getInstructionChain()
Retrieves the instruction chain.
|
void |
setInstructionChain(InstructionChain instructionChain)
Set the instruction chain.
|
void |
setInstructions(Instruction... instructions)
Creates a new
InstructionChain with the given instructions |
getBounds, getRectangle, getShape, setLocation, setRectangle, setSize, translate
createColorWithAlpha, getFillColor, getLineWidth, getStrokeColor, getStrokeResolution, isAllowResize, isFilled, isIconified, isLinePainted, setAllowResize, setFillColor, setFilled, setIconified, setLinePainted, setLineWidth, setStrokeColor, setStrokeResolution
clearModified, createMemento, fireAnnotationChange, getChangeHandler, getCreatedAt, getCreatedBy, getID, getInitializer, getLastModifiedAt, getLastModifiedBy, getModCount, getPermissions, getProperties, getType, initialize, isDoFireAnnotationEvents, isInitialized, isLoadedAnnotation, isModified, restoreFrom, setChangeHandler, setCreatedBy, setCreationTimestamp, setDoFireAnnotationEvents, setID, setInitializer, setLastModifiedBy, setModified, setModifyTimestamp, setType
protected InstructionChain instructionChain
protected void copyAttributesTo(Annotation annotation)
Annotation
copyAttributesTo
in class RectangleAnnotation
annotation
- Annotation to set attributespublic InstructionAnnotation clone()
clone
in class RectangleAnnotation
Object.clone()
public void setInstructions(Instruction... instructions)
InstructionChain
with the given instructionsinstructions
- The instructions for the InstructionChain.public InstructionChain getInstructionChain()
FrozenList
of Instruction
s.public void setInstructionChain(InstructionChain instructionChain)
Copyright © 2024 levigo holding gmbh. All rights reserved.