public final class SelectionCleaner extends NativeObjectContainer
DatasetsItemsSelector.ID
plugin configuration element in order to have in the the chart a clickable element to clear the selection.Modifier and Type | Field and Description |
---|---|
static Align |
DEFAULT_ALIGN
Default selection cleaner box alignment,
Align.RIGHT . |
static boolean |
DEFAULT_DISPLAY
Default flag if selection cleaner must be showed in the chart, value is false.
|
static String |
DEFAULT_LABEL
Default label for selection cleaner element, value is "Reset selection".
|
static int |
DEFAULT_MARGIN
Default margin from canvas for selection cleaner element, value is 2.
|
static int |
DEFAULT_PADDING
Default padding for selection cleaner element, value is 4.
|
static Position |
DEFAULT_POSITION
Default selection cleaner box position,
Position.BOTTOM . |
static Render |
DEFAULT_RENDER
Default selection cleaner rendering,
Render.IMAGE_LABEL . |
static int |
DEFAULT_SPACING
Default spacing between label and image for selection cleaner element, value is 3.
|
static boolean |
DEFAULT_USE_SELECTION_STYLE
Default flag if selection cleaner will use selection area style, value is false.
|
Modifier and Type | Method and Description |
---|---|
Align |
getAlign()
Returns the selection cleaner align.
|
IsColor |
getColor()
Returns the the selection cleaner label font color.
|
String |
getColorAsString()
Returns the the selection cleaner label font color.
|
IsFont |
getFont()
Returns the the font object.
|
Img |
getImage()
Returns the selection cleaner image.
|
String |
getLabel()
Returns the selection cleaner label.
|
int |
getMargin()
Returns the margin from canvas border.
|
int |
getPadding()
Returns the padding of selection cleaner element.
|
Position |
getPosition()
Returns the selection cleaner label position.
|
Render |
getRender()
Returns the selection cleaner render.
|
int |
getSpacing()
Returns the spacing between label and image for selection cleaner element.
|
boolean |
isDisplay()
Returns
true if clear of selection label will be applied in the chart, otherwise false . |
boolean |
isUseSelectionStyle()
Returns
true if selection cleaner element will apply style of selection area, otherwise false . |
void |
setAlign(Align align)
Sets the selection cleaner align.
|
void |
setColor(IsColor color)
Set the selection cleaner label font color.
|
void |
setColor(String color)
Sets the selection cleaner label font color.
|
void |
setDisplay(boolean display)
Sets
true if clear of selection label will e applied in the chart, otherwise false . |
void |
setImage(Img image)
Sets the selection cleaner image.
|
void |
setLabel(String label)
Sets the selection cleaner label.
|
void |
setMargin(int margin)
Sets the margin from canvas border.
|
void |
setPadding(int padding)
Sets the padding of selection cleaner element.
|
void |
setPosition(Position position)
Sets the selection cleaner label position.
|
void |
setRender(Render render)
Sets the selection cleaner render.
|
void |
setSpacing(int spacing)
Sets the spacing between label and image for selection cleaner element.
|
void |
setUseSelectionStyle(boolean useSelectionStyle)
Sets
true if clear of selection label will e applied in the chart, otherwise false . |
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 String DEFAULT_LABEL
public static final int DEFAULT_MARGIN
public static final int DEFAULT_PADDING
public static final int DEFAULT_SPACING
public static final boolean DEFAULT_USE_SELECTION_STYLE
public static final Align DEFAULT_ALIGN
Align.RIGHT
.public static final Render DEFAULT_RENDER
Render.IMAGE_LABEL
.public static final Position DEFAULT_POSITION
Position.BOTTOM
.public IsFont getFont()
public void setDisplay(boolean display)
true
if clear of selection label will e applied in the chart, otherwise false
.display
- true
if clear of selection label will e applied in the chart, otherwise false
public boolean isDisplay()
true
if clear of selection label will be applied in the chart, otherwise false
.true
if clear of selection label will be applied in the chart, otherwise false
public void setLabel(String label)
label
- the selection cleaner labelpublic String getLabel()
public String getColorAsString()
public IsColor getColor()
public void setColor(String color)
color
- the selection cleaner label font color.public void setColor(IsColor color)
color
- the selection cleaner label font color.public void setAlign(Align align)
align
- the selection cleaner alignpublic Align getAlign()
public void setRender(Render render)
render
- the selection cleaner renderpublic Render getRender()
public void setPosition(Position position)
position
- the selection cleaner label positionpublic Position getPosition()
public void setImage(Img image)
image
- the selection cleaner imagepublic Img getImage()
null
if not setpublic void setMargin(int margin)
margin
- margin from canvas borderpublic int getMargin()
public void setPadding(int padding)
padding
- padding of selection cleaner elementpublic int getPadding()
public void setSpacing(int spacing)
spacing
- spacing between label and image for selection cleaner elementpublic int getSpacing()
public void setUseSelectionStyle(boolean useSelectionStyle)
true
if clear of selection label will e applied in the chart, otherwise false
.useSelectionStyle
- true
if clear of selection label will e applied in the chart, otherwise false
public boolean isUseSelectionStyle()
true
if selection cleaner element will apply style of selection area, otherwise false
.true
if selection cleaner element will apply style of selection area, otherwise false