public abstract class AbstractAnnotation extends AbstractNode
AnnotationPlugin.ID
plugin.Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ADJUST_SCALE_RANGE
Default annotation adjust scale range, true.
|
static boolean |
DEFAULT_DISPLAY
Default annotation display, true.
|
Modifier and Type | Method and Description |
---|---|
AdjustScaleRangeCallback |
getAdjustScaleRangeCallback()
Returns the callback called to set whether the scale range should be adjusted if this annotation is out of range.
|
IsColor |
getBorderColor()
Returns the color of the border of annotation.
|
default String |
getBorderColorAsString()
Returns the color of the border of annotation.
|
ColorCallback<AnnotationContext> |
getBorderColorCallback()
Returns the callback called to set the color of the border of annotation.
|
List<Integer> |
getBorderDash()
Returns the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern.
|
BorderDashCallback<AnnotationContext> |
getBorderDashCallback()
Returns the callback called to set the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which
describe the pattern.
|
double |
getBorderDashOffset()
Returns the line dash pattern offset.
|
BorderDashOffsetCallback<AnnotationContext> |
getBorderDashOffsetCallback()
Returns the callback called to set the line dash pattern offset.
|
int |
getBorderWidth()
Returns the width of the border in pixels.
|
WidthCallback<AnnotationContext> |
getBorderWidthCallback()
Returns the callback called to set the width of the border in pixels.
|
ClickCallback |
getClickCallback()
Returns the callback called when a "click" event is occurring.
|
DisplayCallback<AnnotationContext> |
getDisplayCallback()
Returns the callback called to set whether the annotation should be displayed.
|
DoubleClickCallback |
getDoubleClickCallback()
Returns the callback called when a "dblclick" event is occurring.
|
DrawTime |
getDrawTime()
Returns the draw time which defines when the annotations are drawn.
|
DrawTimeCallback |
getDrawTimeCallback()
Returns the callback called to set the draw time which defines when the annotations are drawn.
|
EnterCallback |
getEnterCallback()
Returns the callback called when a "enter" event is occurring.
|
AnnotationId |
getId()
Returns the id of annotation.
|
LeaveCallback |
getLeaveCallback()
Returns the callback called when a "leave" event is occurring.
|
AnnotationType |
getType()
Returns the type of annotation.
|
boolean |
isAdjustScaleRange()
Returns
true whether the scale range should be adjusted if this annotation is out of range. |
boolean |
isDisplay()
Returns
true whether the annotation should be displayed. |
void |
setAdjustScaleRange(AdjustScaleRangeCallback adjustScaleRangeCallback)
Sets the callback to set whether the scale range should be adjusted if this annotation is out of range.
|
void |
setAdjustScaleRange(boolean display)
Sets
true whether the scale range should be adjusted if this annotation is out of range. |
void |
setAdjustScaleRange(NativeCallback adjustScaleRangeCallback)
Sets the callback to set whether the scale range should be adjusted if this annotation is out of range.
|
void |
setBorderColor(ColorCallback<AnnotationContext> borderColorCallback)
Sets the callback to set the color of the border of annotation.
|
void |
setBorderColor(IsColor borderColor)
Sets the color of the border of annotation.
|
void |
setBorderColor(NativeCallback borderColorCallback)
Sets the callback to set the color of the border of annotation.
|
void |
setBorderColor(String borderColor)
Sets the color of the border of annotation.
|
void |
setBorderDash(BorderDashCallback<AnnotationContext> borderDashCallback)
Sets the callback to set the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the
pattern.
|
void |
setBorderDash(int... borderDash)
Sets the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern.
|
void |
setBorderDash(NativeCallback borderDashCallback)
Sets the callback to set the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the
pattern.
|
void |
setBorderDashOffset(BorderDashOffsetCallback<AnnotationContext> borderDashOffsetCallback)
Sets the callback to set the line dash pattern offset.
|
void |
setBorderDashOffset(double borderDashOffset)
Sets the line dash pattern offset.
|
void |
setBorderDashOffset(NativeCallback borderDashOffsetCallback)
Sets the callback to set the line dash pattern offset.
|
void |
setBorderWidth(int borderWidth)
Sets the width of the border in pixels.
|
void |
setBorderWidth(NativeCallback borderWidthCallback)
Sets the callback to set the color of the width of the border in pixels.
|
void |
setBorderWidth(WidthCallback<AnnotationContext> borderWidthCallback)
Sets the callback to set the color of the width of the border in pixels.
|
void |
setClickCallback(ClickCallback clickCallback)
Sets the callback called when a "click" event is occurring.
|
void |
setDisplay(boolean display)
Sets
true whether the annotation should be displayed. |
void |
setDisplay(DisplayCallback<AnnotationContext> displayCallback)
Sets the callback to set whether the annotation should be displayed.
|
void |
setDisplay(NativeCallback displayCallback)
Sets the callback to set whether the annotation should be displayed.
|
void |
setDoubleClickCallback(DoubleClickCallback dblclickCallback)
Sets the callback called when a "dblclick" event is occurring.
|
void |
setDrawTime(DrawTime drawTime)
Sets the draw time which defines when the annotations are drawn.
|
void |
setDrawTime(DrawTimeCallback drawTimeCallback)
Sets the callback to set the draw time which defines when the annotations are drawn.
|
void |
setDrawTime(NativeCallback drawTimeCallback)
Sets the callback to set the draw time which defines when the annotations are drawn.
|
void |
setEnterCallback(EnterCallback enterCallback)
Sets the callback called when a "enter" event is occurring.
|
void |
setLeaveCallback(LeaveCallback leaveCallback)
Sets the callback called when a "leave" event is occurring.
|
checkAndAddToParent, getChildKey, getParentNode, getRootNode, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setElementAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent
checkDefaultValuesArgument, empty, getArrayValue, getElement, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setElement, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
public static final boolean DEFAULT_DISPLAY
public static final boolean DEFAULT_ADJUST_SCALE_RANGE
public final AnnotationId getId()
public final AnnotationType getType()
public final void setDisplay(boolean display)
true
whether the annotation should be displayed.display
- true
whether the annotation should be displayedpublic final boolean isDisplay()
true
whether the annotation should be displayed.true
whether the annotation should be displayedpublic final void setAdjustScaleRange(boolean display)
true
whether the scale range should be adjusted if this annotation is out of range.display
- true
whether the scale range should be adjusted if this annotation is out of rangepublic final boolean isAdjustScaleRange()
true
whether the scale range should be adjusted if this annotation is out of range.true
whether the scale range should be adjusted if this annotation is out of rangepublic final void setDrawTime(DrawTime drawTime)
drawTime
- the draw time which defines when the annotations are drawnpublic final DrawTime getDrawTime()
public final void setBorderColor(IsColor borderColor)
borderColor
- the color of the border of annotationpublic final void setBorderColor(String borderColor)
borderColor
- the color of the border of annotationpublic final IsColor getBorderColor()
public final void setBorderWidth(int borderWidth)
borderWidth
- the width of the border in pixels.public final void setBorderDash(int... borderDash)
borderDash
- the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern.public final List<Integer> getBorderDash()
public final void setBorderDashOffset(double borderDashOffset)
borderDashOffset
- the line dash pattern offset.public final double getBorderDashOffset()
public final DrawTimeCallback getDrawTimeCallback()
public final void setDrawTime(DrawTimeCallback drawTimeCallback)
drawTimeCallback
- to set the draw time which defines when the annotations are drawnpublic final void setDrawTime(NativeCallback drawTimeCallback)
drawTimeCallback
- to set the draw time which defines when the annotations are drawnpublic final DisplayCallback<AnnotationContext> getDisplayCallback()
public final void setDisplay(DisplayCallback<AnnotationContext> displayCallback)
displayCallback
- to set whether the annotation should be displayedpublic final void setDisplay(NativeCallback displayCallback)
displayCallback
- to set whether the annotation should be displayedpublic final ColorCallback<AnnotationContext> getBorderColorCallback()
public final void setBorderColor(ColorCallback<AnnotationContext> borderColorCallback)
borderColorCallback
- to set the color of the border of annotationpublic final void setBorderColor(NativeCallback borderColorCallback)
borderColorCallback
- to set the color of the border of annotationpublic final WidthCallback<AnnotationContext> getBorderWidthCallback()
public final void setBorderWidth(WidthCallback<AnnotationContext> borderWidthCallback)
borderWidthCallback
- to set the width of the border in pixelspublic final void setBorderWidth(NativeCallback borderWidthCallback)
borderWidthCallback
- to set the width of the border in pixelspublic final BorderDashCallback<AnnotationContext> getBorderDashCallback()
public final void setBorderDash(BorderDashCallback<AnnotationContext> borderDashCallback)
borderDashCallback
- to set the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe
the patternpublic final void setBorderDash(NativeCallback borderDashCallback)
borderDashCallback
- to set the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe
the patternpublic final BorderDashOffsetCallback<AnnotationContext> getBorderDashOffsetCallback()
public final void setBorderDashOffset(BorderDashOffsetCallback<AnnotationContext> borderDashOffsetCallback)
borderDashOffsetCallback
- to set the line dash pattern offsetpublic final void setBorderDashOffset(NativeCallback borderDashOffsetCallback)
borderDashOffsetCallback
- to set the line dash pattern offsetpublic final AdjustScaleRangeCallback getAdjustScaleRangeCallback()
public final void setAdjustScaleRange(AdjustScaleRangeCallback adjustScaleRangeCallback)
adjustScaleRangeCallback
- to set whether the scale range should be adjusted if this annotation is out of rangepublic final void setAdjustScaleRange(NativeCallback adjustScaleRangeCallback)
adjustScaleRangeCallback
- to set whether the scale range should be adjusted if this annotation is out of rangepublic final EnterCallback getEnterCallback()
public final void setEnterCallback(EnterCallback enterCallback)
enterCallback
- the callback called when a "enter" event is occurringpublic final LeaveCallback getLeaveCallback()
public final void setLeaveCallback(LeaveCallback leaveCallback)
leaveCallback
- the callback called when a "leave" event is occurringpublic final ClickCallback getClickCallback()
public final void setClickCallback(ClickCallback clickCallback)
clickCallback
- the callback called when a "click" event is occurringpublic final DoubleClickCallback getDoubleClickCallback()
public final void setDoubleClickCallback(DoubleClickCallback dblclickCallback)
dblclickCallback
- the callback called when a "dblclick" event is occurringpublic String getBorderColorAsString()
public int getBorderWidth()