public final class DatasetsItemsSelectorOptions extends AbstractPluginOptions
DatasetsItemsSelector.ID
plugin.Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_ALPHA
Default alpha of selecting/selection colors, 0.3.
|
static String |
DEFAULT_AXIS_ID
Default X axis id,
Scales.DEFAULT_X_AXIS_ID . |
static IsColor |
DEFAULT_BORDER_COLOR
Default border color for area,
GwtMaterialColor.GREY_DARKEN_2 . |
static int |
DEFAULT_BORDER_DASH_OFFSET
Default border dash offset of selection area, 0.
|
static int |
DEFAULT_BORDER_WIDTH
Default border width of selection area, 0.
|
static IsColor |
DEFAULT_COLOR
Default color for area,
GwtMaterialColor.ORANGE_LIGHTEN_3 , alpha 0.3. |
static boolean |
DEFAULT_FIRE_EVENT_ON_CLEAR_SELECTION
Default flag if fire event after clear selection, false.
|
Constructor and Description |
---|
DatasetsItemsSelectorOptions()
Builds the object with new java script object setting the default value of plugin.
The global plugin options is used, if exists, as defaults values. |
DatasetsItemsSelectorOptions(IsChart chart)
Builds the object with a chart instance in order to get the right defaults.
If the plugin options have not been set by chart type, it will use the global. |
Modifier and Type | Method and Description |
---|---|
IsColor |
getBorderColor()
Returns the color.
|
String |
getBorderColorAsString()
Returns the color.
|
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.
|
int |
getBorderDashOffset()
Returns the line dash pattern offset or "phase".
|
int |
getBorderWidth()
Returns the border width of the selection.
|
ClearSelection |
getClearSelection()
Returns the clear selection element.
|
IsColor |
getColor()
Returns the color.
|
String |
getColorAsString()
Returns the color.
|
String |
getXAxisID()
Returns the ID of the x axis to plot this dataset on.
|
boolean |
isFireEventOnClearSelection()
Returns
true if it will fire event after clear of selection, otherwise false . |
void |
setBorderColor(IsColor color)
Sets the color.
|
void |
setBorderColor(String color)
Sets the color.
|
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 |
setBorderDashOffset(int borderDashOffset)
Sets the line dash pattern offset or "phase".
|
void |
setBorderWidth(int borderWidth)
Sets the border width of the selection.
|
void |
setColor(IsColor color)
Sets the color.
|
void |
setColor(String color)
Sets the color.
|
void |
setFireEventOnClearSelection(boolean fireEvent)
Sets
true if it will fire event after clear of selection, otherwise false . |
void |
setXAxisID(String xAxisID)
Sets the ID of the x axis to plot this dataset on.
|
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 double DEFAULT_ALPHA
public static final IsColor DEFAULT_COLOR
GwtMaterialColor.ORANGE_LIGHTEN_3
, alpha 0.3.public static final String DEFAULT_AXIS_ID
Scales.DEFAULT_X_AXIS_ID
.public static final int DEFAULT_BORDER_WIDTH
public static final int DEFAULT_BORDER_DASH_OFFSET
public static final IsColor DEFAULT_BORDER_COLOR
GwtMaterialColor.GREY_DARKEN_2
.public static final boolean DEFAULT_FIRE_EVENT_ON_CLEAR_SELECTION
public DatasetsItemsSelectorOptions()
public DatasetsItemsSelectorOptions(IsChart chart)
chart
- chart instance related to the plugin optionspublic ClearSelection getClearSelection()
public void setXAxisID(String xAxisID)
xAxisID
- the ID of the x axis to plot this dataset on. If not specified, this defaults to the ID of the first found x axis.public String getXAxisID()
public String getColorAsString()
public IsColor getColor()
public void setColor(String color)
color
- the color.public void setColor(IsColor color)
color
- the color.public void setBorderDash(int... borderDash)
borderDash
- the line dash pattern used when stroking linespublic List<Integer> getBorderDash()
public void setBorderDashOffset(int borderDashOffset)
borderDashOffset
- the line dash pattern offset or "phase".public int getBorderDashOffset()
public void setBorderWidth(int borderWidth)
borderWidth
- the border width of the selection.public int getBorderWidth()
public String getBorderColorAsString()
public IsColor getBorderColor()
public void setBorderColor(String color)
color
- the color.public void setBorderColor(IsColor color)
color
- the color.public void setFireEventOnClearSelection(boolean fireEvent)
true
if it will fire event after clear of selection, otherwise false
.fireEvent
- true
if it will fire event after clear of selection, otherwise false
public boolean isFireEventOnClearSelection()
true
if it will fire event after clear of selection, otherwise false
.true
if it will fire event after clear of selection, otherwise false