public final class MatrixDataset extends HoverFlexDataset
Dataset.CanvasObjectProperty, Dataset.CommonProperty
Modifier and Type | Field and Description |
---|---|
static org.pepstock.charba.client.matrix.MatrixDataset.DataPointFactory |
DATAPOINTS_FACTORY
Factory to create
MatrixDataPoint s. |
static int |
DEFAULT_BORDER_RADIUS
Default border radius, 0.
|
static int |
DEFAULT_BORDER_WIDTH
Default border width, 0.
|
static double |
DEFAULT_HEIGHT
Default height, in pixels, 20.0.
|
static double |
DEFAULT_WIDTH
Default width, in pixels, 20.0.
|
DEFAULT_HIDDEN, DEFAULT_NORMALIZED, DEFAULT_PARSING
Constructor and Description |
---|
MatrixDataset()
Creates a data set.
It uses the global options has default. |
MatrixDataset(IsDefaultOptions defaultValues)
Creates a data set setting the defaults value.
|
Modifier and Type | Method and Description |
---|---|
int |
getBorderRadius()
Returns the border radius (in pixels).
|
BarBorderRadius |
getBorderRadiusAsObject()
Returns the border radius (in pixels).
|
BorderRadiusCallback |
getBorderRadiusCallback()
Returns the callback to set the border radius (in pixels).
|
BarBorderWidth |
getBorderWidthAsObject()
Returns the border width (in pixels).
|
BarBorderWidthCallback |
getBorderWidthCallback()
Returns the callback to set the border width (in pixels).
|
List<Double> |
getData(boolean binding)
Throws an exception because not available.
|
List<MatrixDataPoint> |
getDataPoints()
Returns the matrix data property of a dataset for a chart is specified as an array of matrix data points
|
List<MatrixDataPoint> |
getDataPoints(boolean binding)
Returns the matrix data property of a dataset for a chart is specified as an array of matrix data points
|
protected int |
getDefaultBorderWidth()
Returns the default border width value based on type of chart.
|
double |
getHeight()
Returns the height of matrix element in pixels.
|
SizeCallback |
getHeightCallback()
Returns the height callback to set the height of matrix element in pixels.
|
BarBorderWidth |
getHoverBorderWidthAsObject()
Returns the border width (in pixels), when hovered.
|
BarBorderWidthCallback |
getHoverBorderWidthCallback()
Returns the callback to set the border width (in pixels), when hovered.
|
double |
getWidth()
Returns the width of matrix element in pixels.
|
SizeCallback |
getWidthCallback()
Returns the width callback to set the width of matrix element in pixels.
|
Anchor |
getXAnchor()
Returns the anchor point on X orientation of matrix element.
|
Anchor |
getYAnchor()
Returns the anchor point on Y orientation of matrix element.
|
void |
setBorderRadius(BarBorderRadius borderRadius)
Sets the border radius (in pixels).
|
void |
setBorderRadius(BorderRadiusCallback borderRadiusCallback)
Sets the callback to set the border radius (in pixels).
|
void |
setBorderRadius(int borderRadius)
Sets the border radius (in pixels).
|
void |
setBorderRadius(NativeCallback borderRadiusCallback)
Sets the callback to set the border radius (in pixels).
|
void |
setBorderWidth(BarBorderWidth borderWidth)
Sets the border width (in pixels).
|
void |
setBorderWidth(BarBorderWidthCallback borderWidthCallback)
Sets the callback to set the border width (in pixels).
|
void |
setBorderWidth(NativeCallback borderWidthCallback)
Sets the callback to set the border width (in pixels).
|
void |
setData(double... values)
Throws an exception because not available.
|
void |
setData(List<Double> values)
Throws an exception because not available.
|
void |
setDataPoints(List<MatrixDataPoint> datapoints)
Sets the data property of a data set for a chart is specified as an array of data points.
|
void |
setDataPoints(MatrixDataPoint... datapoints)
Sets the data property of a data set for a chart is specified as an array of data points.
|
void |
setHeight(double height)
Sets the height of matrix element in pixels.
|
void |
setHeight(NativeCallback heightCallback)
Sets the height callback to set the height of matrix element in pixels.
|
void |
setHeight(SizeCallback heightCallback)
Sets the height callback to set the height of matrix element in pixels.
|
void |
setHoverBorderWidth(BarBorderWidth hoverBorderWidth)
Sets the border width (in pixels), when hovered.
|
void |
setHoverBorderWidth(BarBorderWidthCallback hoverBorderWidthCallback)
Sets the callback to set the border width (in pixels), when hovered.
|
void |
setHoverBorderWidth(NativeCallback hoverBorderWidthCallback)
Sets the callback to set the border width (in pixels), when hovered.
|
void |
setWidth(double width)
Sets the width of matrix element in pixels.
|
void |
setWidth(NativeCallback widthCallback)
Sets the width callback to set the width of matrix element in pixels.
|
void |
setWidth(SizeCallback widthCallback)
Sets the width callback to set the width of matrix element in pixels.
|
void |
setXAnchor(Anchor anchor)
Sets the anchor point on X orientation of matrix element.
|
void |
setYAnchor(Anchor anchor)
Sets the anchor point on Y orientation of matrix element.
|
getBackgroundColor, getBackgroundColorAsGradient, getBackgroundColorAsPatterns, getBackgroundColorAsString, getBorderColor, getBorderColorAsGradient, getBorderColorAsString, getBorderWidth, getColors, getHoverBackgroundColor, getHoverBackgroundColorAsGradient, getHoverBackgroundColorAsPatterns, getHoverBackgroundColorAsString, getHoverBorderColor, getHoverBorderColorAsGradient, getHoverBorderColorAsString, getHoverBorderWidth, getWidths, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBorderColor, setBorderColor, setBorderColor, setBorderWidth, setColors, setColors, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBorderColor, setHoverBorderColor, setHoverBorderColor, setHoverBorderWidth, setWidths
createContext, getAnimationContainer, getBackgroundColorCallback, getBorderColorCallback, getClip, getClipAsObject, getData, getDataCount, getDataset, getDataType, getDefaultBackgroundColorAsString, getDefaultBorderColorAsString, getDefaultHoverBackgroundColorAsString, getDefaultHoverBorderColorAsString, getDefaultHoverBorderWidth, getDefaultValues, getHoverBackgroundColorCallback, getHoverBorderColorCallback, getId, getLabel, getOptions, getOptions, getScope, getType, getTypedDataset, hasOptions, invokeColorCallback, isClip, isHidden, isNormalized, isParsing, removeOptions, setBackgroundColor, setBackgroundColor, setBorderColor, setBorderColor, setClip, setClip, setClip, setHidden, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBorderColor, setHoverBorderColor, setLabel, setNormalized, setOptions, setOptions, setParsing
checkAndAddToParent, getChildKey, getParentNode, getRootNode, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setElementAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAnimation, getAnimations, getTransitions, isAnimationEnabled, setAnimationEnabled
extractScope
public static final org.pepstock.charba.client.matrix.MatrixDataset.DataPointFactory DATAPOINTS_FACTORY
MatrixDataPoint
s.public static final int DEFAULT_BORDER_WIDTH
public static final int DEFAULT_BORDER_RADIUS
public static final double DEFAULT_WIDTH
public static final double DEFAULT_HEIGHT
public MatrixDataset()
public MatrixDataset(IsDefaultOptions defaultValues)
defaultValues
- default optionsprotected int getDefaultBorderWidth()
Dataset
getDefaultBorderWidth
in class Dataset
public void setDataPoints(MatrixDataPoint... datapoints)
datapoints
- an array of data pointspublic void setDataPoints(List<MatrixDataPoint> datapoints)
datapoints
- a list of data pointspublic List<MatrixDataPoint> getDataPoints()
public List<MatrixDataPoint> getDataPoints(boolean binding)
binding
- if true
binds the new array list in the containerpublic void setHeight(double height)
height
- the height of matrix element in pixelspublic double getHeight()
public void setWidth(double width)
width
- the width of matrix element in pixelspublic double getWidth()
public void setXAnchor(Anchor anchor)
anchor
- the anchor point on X orientation of matrix elementpublic Anchor getXAnchor()
public void setYAnchor(Anchor anchor)
anchor
- the anchor point on Y orientation of matrix elementpublic Anchor getYAnchor()
public void setBorderRadius(int borderRadius)
borderRadius
- the border radius (in pixels).public void setBorderRadius(BarBorderRadius borderRadius)
borderRadius
- the border radius (in pixels).public int getBorderRadius()
public BarBorderRadius getBorderRadiusAsObject()
public void setBorderWidth(BarBorderWidth borderWidth)
borderWidth
- the border width (in pixels).public BarBorderWidth getBorderWidthAsObject()
public void setHoverBorderWidth(BarBorderWidth hoverBorderWidth)
hoverBorderWidth
- the border width (in pixels), when hovered.public BarBorderWidth getHoverBorderWidthAsObject()
public void setWidth(SizeCallback widthCallback)
widthCallback
- the width callbackpublic SizeCallback getWidthCallback()
public void setWidth(NativeCallback widthCallback)
widthCallback
- the width callbackpublic void setHeight(SizeCallback heightCallback)
heightCallback
- the height callbackpublic SizeCallback getHeightCallback()
public void setHeight(NativeCallback heightCallback)
heightCallback
- the height callbackpublic void setBorderRadius(BorderRadiusCallback borderRadiusCallback)
borderRadiusCallback
- the border radius callbackpublic BorderRadiusCallback getBorderRadiusCallback()
public void setBorderRadius(NativeCallback borderRadiusCallback)
borderRadiusCallback
- the border radius callbackpublic void setBorderWidth(BarBorderWidthCallback borderWidthCallback)
borderWidthCallback
- the border width callbackpublic BarBorderWidthCallback getBorderWidthCallback()
public void setBorderWidth(NativeCallback borderWidthCallback)
borderWidthCallback
- the border width callbackpublic void setHoverBorderWidth(BarBorderWidthCallback hoverBorderWidthCallback)
hoverBorderWidthCallback
- the hover border width callbackpublic BarBorderWidthCallback getHoverBorderWidthCallback()
public void setHoverBorderWidth(NativeCallback hoverBorderWidthCallback)
hoverBorderWidthCallback
- the hover border width callbackpublic void setData(double... values)