public final class ClearSelection extends NativeObjectContainer
DatasetsItemsSelector.ID
plugin configuration element in order to have into the chart a clickable element to clear
the selection.Modifier and Type | Field and Description |
---|---|
static Align |
DEFAULT_ALIGN
Default clear selection box alignment,
Align.RIGHT . |
static boolean |
DEFAULT_DISPLAY
Default flag if clear selection must be showed into chart, value is false.
|
static ImageElement |
DEFAULT_IMAGE
Default image for clear selection element, , value is
Resources.clearSelection18() }. |
static String |
DEFAULT_LABEL
Default label for clear selection element, value is "Clear selection".
|
static int |
DEFAULT_MARGIN
Default margin from canvas for clear selection element, value is 2.
|
static int |
DEFAULT_PADDING
Default padding for clear selection element, value is 4.
|
static Position |
DEFAULT_POSITION
Default clear selection box position,
Position.BOTTOM . |
static Render |
DEFAULT_RENDER
Default clear selection rendering,
Render.IMAGE_LABEL . |
static int |
DEFAULT_SPACING
Default spacing between label and image for clear selection element, value is 3.
|
static boolean |
DEFAULT_USE_SELECTION_STYLE
Default flag if clear selection will use selection area style, value is false.
|
Modifier and Type | Method and Description |
---|---|
Align |
getAlign()
Returns the clear selection align.
|
IsColor |
getFontColor()
Returns the the clear selection label font color.
|
String |
getFontColorAsString()
Returns the the clear selection label font color.
|
String |
getFontFamily()
Returns the font family, follows CSS font-family options.
|
int |
getFontSize()
Returns the font size.
|
FontStyle |
getFontStyle()
Returns the font style, follows CSS font-style options (i.e.
|
ImageElement |
getImage()
Returns the clear selection image.
|
String |
getLabel()
Returns the clear selection label.
|
int |
getMargin()
Returns the margin from canvas border.
|
int |
getPadding()
Returns the padding of clear selection element.
|
Position |
getPosition()
Returns the clear selection label position.
|
Render |
getRender()
Returns the clear selection render.
|
int |
getSpacing()
Returns the spacing between label and image for clear selection element.
|
boolean |
isDisplay()
Returns
true if clear of selection label will be applied into chart, otherwise false . |
boolean |
isUseSelectionStyle()
Returns
true if clear selection element will apply style of selection area, otherwise false . |
void |
setAlign(Align align)
Sets the clear selection align.
|
void |
setDisplay(boolean display)
Sets
true if clear of selection label will e applied into chart, otherwise false . |
void |
setFontColor(IsColor color)
Set the clear selection label font color.
|
void |
setFontColor(String color)
Sets the clear selection label font color.
|
void |
setFontFamily(String fontFamily)
Sets the font family, follows CSS font-family options.
|
void |
setFontSize(int fontSize)
Sets the font size.
|
void |
setFontStyle(FontStyle fontStyle)
Sets the font style, follows CSS font-style options (i.e.
|
void |
setImage(Image image)
Sets the clear selection image.
|
void |
setImage(ImageElement image)
Sets the clear selection image.
|
void |
setImage(ImageResource image)
Sets the clear selection image.
|
void |
setLabel(String label)
Sets the clear selection label.
|
void |
setMargin(int margin)
Sets the margin from canvas border.
|
void |
setPadding(int padding)
Sets the padding of clear selection element.
|
void |
setPosition(Position position)
Sets the clear selection label position.
|
void |
setRender(Render render)
Sets the clear selection render.
|
void |
setSpacing(int spacing)
Sets the spacing between label and image for clear selection element.
|
void |
setUseSelectionStyle(boolean useSelectionStyle)
Sets
true if clear of selection label will e applied into chart, otherwise false . |
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 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 ImageElement DEFAULT_IMAGE
Resources.clearSelection18()
}.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 void setDisplay(boolean display)
true
if clear of selection label will e applied into chart, otherwise false
.display
- true
if clear of selection label will e applied into chart, otherwise false
public boolean isDisplay()
true
if clear of selection label will be applied into chart, otherwise false
.true
if clear of selection label will be applied into chart, otherwise false
public void setLabel(String label)
label
- the clear selection labelpublic String getLabel()
public void setFontSize(int fontSize)
fontSize
- the font size.public int getFontSize()
public void setFontStyle(FontStyle fontStyle)
fontStyle
- Font style, follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit).public FontStyle getFontStyle()
public void setFontFamily(String fontFamily)
fontFamily
- Font family, follows CSS font-family options.public String getFontFamily()
public String getFontColorAsString()
public IsColor getFontColor()
public void setFontColor(String color)
color
- the clear selection label font color.public void setFontColor(IsColor color)
color
- the clear selection label font color.public void setAlign(Align align)
align
- the clear selection alignpublic Align getAlign()
public void setRender(Render render)
render
- the clear selection renderpublic Render getRender()
public void setPosition(Position position)
position
- the clear selection label positionpublic Position getPosition()
public void setImage(ImageResource image)
image
- the clear selection imagepublic void setImage(Image image)
image
- the clear selection imagepublic void setImage(ImageElement image)
image
- the clear selection imagepublic ImageElement getImage()
null
if not setpublic void setMargin(int margin)
margin
- margin from canvas borderpublic int getMargin()
public void setPadding(int padding)
padding
- padding of clear selection elementpublic int getPadding()
public void setSpacing(int spacing)
spacing
- spacing between label and image for clear selection elementpublic int getSpacing()
public void setUseSelectionStyle(boolean useSelectionStyle)
true
if clear of selection label will e applied into chart, otherwise false
.useSelectionStyle
- true
if clear of selection label will e applied into chart, otherwise
false
public boolean isUseSelectionStyle()
true
if clear selection element will apply style of selection area, otherwise false
.true
if clear selection element will apply style of selection area, otherwise false