public final class BoxAnnotation extends AbstractAnnotation
Modifier and Type | Field and Description |
---|---|
static IsColor |
DEFAULT_BACKGROUND_COLOR
Default box annotation background color, rgb(102, 102, 102).
|
static String |
DEFAULT_BACKGROUND_COLOR_AS_STRING
Default box annotation background color as string, rgb(102, 102, 102).
|
static IsColor |
DEFAULT_BORDER_COLOR
Default box annotation border color, rgb(92, 92, 92).
|
static String |
DEFAULT_BORDER_COLOR_AS_STRING
Default box annotation border color as string, rgb(92, 92, 92).
|
static int |
DEFAULT_BORDER_WIDTH
Default box annotation border width, 1.
|
static String |
DEFAULT_ID
Default box annotation ID, "a-box-1".
|
Constructor and Description |
---|
BoxAnnotation()
Creates a box annotation to be added to an
AnnotationOptions instance. |
BoxAnnotation(IsChart chart)
Creates a box annotation to be added to an
AnnotationOptions instance, relating to chart instance for default. |
Modifier and Type | Method and Description |
---|---|
IsColor |
getBackgroundColor()
Returns the color of the background of annotation.
|
String |
getBackgroundColorAsString()
Returns the color of the background of annotation.
|
String |
getBorderColorAsString()
Returns the color of the border of annotation.
|
int |
getBorderWidth()
Returns the width of the border in pixels.
|
Date |
getXMaxAsDate()
Returns the right edge of the box.
|
double |
getXMaxAsDouble()
Returns the right edge of the box.
|
String |
getXMaxAsString()
Returns the right edge of the box.
|
Date |
getXMinAsDate()
Returns the left edge of the box, in units along the x axis.
|
double |
getXMinAsDouble()
Returns the left edge of the box, in units along the x axis.
|
String |
getXMinAsString()
Returns the left edge of the box, in units along the x axis.
|
String |
getXScaleID()
Returns the ID of the X scale to bind onto.
|
Date |
getYMaxAsDate()
Returns the top edge of the box in units along the y axis.
|
double |
getYMaxAsDouble()
Returns the top edge of the box in units along the y axis.
|
String |
getYMaxAsString()
Returns the top edge of the box in units along the y axis.
|
Date |
getYMinAsDate()
Returns the bottom edge of the box.
|
double |
getYMinAsDouble()
Returns the bottom edge of the box.
|
String |
getYMinAsString()
Returns the bottom edge of the box.
|
String |
getYScaleID()
Returns the ID of the Y scale to bind onto.
|
void |
setBackgroundColor(IsColor backgroundColor)
Sets the color of the background of annotation.
|
void |
setBackgroundColor(String backgroundColor)
Sets the color of the background of annotation.
|
void |
setXMax(Date max)
Sets the right edge of the box.
|
void |
setXMax(double max)
Sets the right edge of the box.
|
void |
setXMax(String max)
Sets the right edge of the box.
|
void |
setXMin(Date min)
Sets the left edge of the box, in units along the x axis.
|
void |
setXMin(double min)
Sets the left edge of the box, in units along the x axis.
|
void |
setXMin(String min)
Sets the left edge of the box, in units along the x axis.
|
void |
setXScaleID(String scaleId)
Sets the ID of the X scale to bind onto.
|
void |
setYMax(Date max)
Sets the top edge of the box in units along the y axis.
|
void |
setYMax(double max)
Sets the top edge of the box in units along the y axis.
|
void |
setYMax(String max)
Sets the top edge of the box in units along the y axis.
|
void |
setYMin(Date min)
Sets the bottom edge of the box.
|
void |
setYMin(double min)
Sets the bottom edge of the box.
|
void |
setYMin(String min)
Sets the bottom edge of the box.
|
void |
setYScaleID(String scaleId)
Sets the ID of the Y scale to bind onto.
|
getBorderColor, getClickCallback, getContextMenuCallback, getDoubleClickCallback, getDrawTime, getMouseDownCallback, getMouseEnterCallback, getMouseLeaveCallback, getMouseMoveCallback, getMouseOutCallback, getMouseOverCallback, getMouseUpCallback, getName, getType, getWheelCallback, setBorderColor, setBorderColor, setBorderWidth, setClickCallback, setContextMenuCallback, setDoubleClickCallback, setDrawTime, setMouseDownCallback, setMouseEnterCallback, setMouseLeaveCallback, setMouseMoveCallback, setMouseOutCallback, setMouseOverCallback, setMouseUpCallback, setName, setWheelCallback
getId, getPluginId, loadGlobalsPluginOptions, store, store, store, store
checkValue, empty, getArrayValue, getNativeChart, 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, setArrayValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
public static final String DEFAULT_ID
public static final IsColor DEFAULT_BACKGROUND_COLOR
public static final String DEFAULT_BACKGROUND_COLOR_AS_STRING
public static final IsColor DEFAULT_BORDER_COLOR
public static final String DEFAULT_BORDER_COLOR_AS_STRING
public static final int DEFAULT_BORDER_WIDTH
public BoxAnnotation()
AnnotationOptions
instance.public BoxAnnotation(IsChart chart)
AnnotationOptions
instance, relating to chart instance for default.chart
- chart instance related to the plugin optionspublic String getBorderColorAsString()
public int getBorderWidth()
public void setBackgroundColor(IsColor backgroundColor)
backgroundColor
- the color of the background of annotationpublic void setBackgroundColor(String backgroundColor)
backgroundColor
- the color of the background of annotationpublic String getBackgroundColorAsString()
public IsColor getBackgroundColor()
public void setXScaleID(String scaleId)
scaleId
- the ID of the X scale to bind ontopublic String getXScaleID()
public void setXMax(String max)
max
- the right edge of the boxpublic void setXMax(double max)
max
- the right edge of the boxpublic void setXMax(Date max)
max
- the right edge of the boxpublic String getXMaxAsString()
public double getXMaxAsDouble()
public Date getXMaxAsDate()
public void setXMin(String min)
min
- the left edge of the boxpublic void setXMin(double min)
min
- the left edge of the boxpublic void setXMin(Date min)
min
- the left edge of the boxpublic String getXMinAsString()
public double getXMinAsDouble()
public Date getXMinAsDate()
public void setYScaleID(String scaleId)
scaleId
- the ID of the Y scale to bind ontopublic String getYScaleID()
public void setYMax(String max)
max
- the top edge of the box in units along the y axispublic void setYMax(double max)
max
- the top edge of the box in units along the y axispublic void setYMax(Date max)
max
- the top edge of the box in units along the y axispublic String getYMaxAsString()
public double getYMaxAsDouble()
public Date getYMaxAsDate()
public void setYMin(String min)
min
- the bottom edge of the boxpublic void setYMin(double min)
min
- the bottom edge of the boxpublic void setYMin(Date min)
min
- the bottom edge of the boxpublic String getYMinAsString()
public double getYMinAsDouble()
public Date getYMinAsDate()