public abstract class AbstractAnnotation extends AbstractPluginOptions
AnnotationPlugin.ID
plugin.BoxAnnotation
or LineAnnotation
.Modifier and Type | Method and Description |
---|---|
IsColor |
getBorderColor()
Returns the color of the border of annotation.
|
String |
getBorderColorAsString()
Returns the color of the border of annotation.
|
int |
getBorderWidth()
Returns the width of the border in pixels.
|
ClickCallback |
getClickCallback()
Returns the callback called when a "click" event is occurring.
|
ContextMenuCallback |
getContextMenuCallback()
Returns the callback called when a "contextmenu" event is occurring.
|
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.
|
MouseDownCallback |
getMouseDownCallback()
Returns the callback called when a "mousedown" event is occurring.
|
MouseEnterCallback |
getMouseEnterCallback()
Returns the callback called when a "mouseenter" event is occurring.
|
MouseLeaveCallback |
getMouseLeaveCallback()
Returns the callback called when a "mouseleave" event is occurring.
|
MouseMoveCallback |
getMouseMoveCallback()
Returns the callback called when a "mousemove" event is occurring.
|
MouseOutCallback |
getMouseOutCallback()
Returns the callback called when a "mouseout" event is occurring.
|
MouseOverCallback |
getMouseOverCallback()
Returns the callback called when a "mouseover" event is occurring.
|
MouseUpCallback |
getMouseUpCallback()
Returns the callback called when a "mouseup" event is occurring.
|
String |
getName()
Returns the name of annotation.
|
AnnotationType |
getType()
Returns the type of annotation.
|
WheelCallback |
getWheelCallback()
Returns the callback called when a "wheel" event is occurring.
|
void |
setBorderColor(IsColor borderColor)
Sets the color of the border of annotation.
|
void |
setBorderColor(String borderColor)
Sets the color of the border of annotation.
|
void |
setBorderWidth(int borderWidth)
Sets the width of the border in pixels.
|
void |
setClickCallback(ClickCallback clickCallback)
Sets the callback called when a "click" event is occurring.
|
void |
setContextMenuCallback(ContextMenuCallback contextmenuCallback)
Sets the callback called when a "contextmenu" event is occurring.
|
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 |
setMouseDownCallback(MouseDownCallback mousedownCallback)
Sets the callback called when a "mousedown" event is occurring.
|
void |
setMouseEnterCallback(MouseEnterCallback mouseenterCallback)
Sets the callback called when a "mouseenter" event is occurring.
|
void |
setMouseLeaveCallback(MouseLeaveCallback mouseleaveCallback)
Sets the callback called when a "mouseleave" event is occurring.
|
void |
setMouseMoveCallback(MouseMoveCallback mousemoveCallback)
Sets the callback called when a "mousemove" event is occurring.
|
void |
setMouseOutCallback(MouseOutCallback mouseoutCallback)
Sets the callback called when a "mouseout" event is occurring.
|
void |
setMouseOverCallback(MouseOverCallback mouseoverCallback)
Sets the callback called when a "mouseover" event is occurring.
|
void |
setMouseUpCallback(MouseUpCallback mouseupCallback)
Sets the callback called when a "mouseup" event is occurring.
|
void |
setName(String name)
Sets the name of annotation.
|
void |
setWheelCallback(WheelCallback wheelCallback)
Sets the callback called when a "wheel" event is occurring.
|
getId, getPluginId, loadGlobalsPluginOptions, store, store, store, store
checkValue, empty, getArrayValue, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, keys, remove, remove, removeIfExists, setArrayValue, setArrayValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
public final AnnotationType getType()
public final void setName(String name)
name
- the name of annotationpublic final String getName()
public 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 MouseEnterCallback getMouseEnterCallback()
public final void setMouseEnterCallback(MouseEnterCallback mouseenterCallback)
mouseenterCallback
- the callback called when a "mouseenter" event is occurringpublic final MouseOverCallback getMouseOverCallback()
public final void setMouseOverCallback(MouseOverCallback mouseoverCallback)
mouseoverCallback
- the callback called when a "mouseover" event is occurringpublic final MouseLeaveCallback getMouseLeaveCallback()
public final void setMouseLeaveCallback(MouseLeaveCallback mouseleaveCallback)
mouseleaveCallback
- the callback called when a "mouseleave" event is occurringpublic final MouseOutCallback getMouseOutCallback()
public final void setMouseOutCallback(MouseOutCallback mouseoutCallback)
mouseoutCallback
- the callback called when a "mouseout" event is occurringpublic final MouseMoveCallback getMouseMoveCallback()
public final void setMouseMoveCallback(MouseMoveCallback mousemoveCallback)
mousemoveCallback
- the callback called when a "mousemove" event is occurringpublic final MouseDownCallback getMouseDownCallback()
public final void setMouseDownCallback(MouseDownCallback mousedownCallback)
mousedownCallback
- the callback called when a "mousedown" event is occurringpublic final MouseUpCallback getMouseUpCallback()
public final void setMouseUpCallback(MouseUpCallback mouseupCallback)
mouseupCallback
- the callback called when a "mouseup" 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 final ContextMenuCallback getContextMenuCallback()
public final void setContextMenuCallback(ContextMenuCallback contextmenuCallback)
contextmenuCallback
- the callback called when a "contextmenu" event is occurringpublic final WheelCallback getWheelCallback()
public final void setWheelCallback(WheelCallback wheelCallback)
wheelCallback
- the callback called when a "wheel" event is occurringpublic String getBorderColorAsString()
public int getBorderWidth()