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_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 a new java script object setting the default value of plugin.
|
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 |
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.
|
NativeObject |
getObject()
Returns the java script object of this options.
|
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 |
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
checkValue, getArrayValue, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, 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 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 IsColor DEFAULT_BORDER_COLOR
GwtMaterialColor.GREY_DARKEN_2
.public static final boolean DEFAULT_FIRE_EVENT_ON_CLEAR_SELECTION
public DatasetsItemsSelectorOptions()
public 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 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
public NativeObject getObject()