Package | Description |
---|---|
org.pepstock.charba.client.datalabels |
Contains all classes to activate the
DataLabelsPlugin.ID plugin (AKA
chartjs-plugin-datalabels.js ) for CHART.js. |
Modifier and Type | Method and Description |
---|---|
static DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.create()
Returns new builder instance.
|
static DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.create(IsChart chart)
Returns new builder instance using the chart global options.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setAlign(Align align)
Sets the position of the label relative to the anchor point position and orientation.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setAlign(AlignCallback alignCallback)
Sets the align callback.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setAnchor(Anchor anchor)
Sets the anchor point, which is defined by an orientation vector and a position on the data element.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setAnchor(AnchorCallback anchorCallback)
Sets the anchor callback.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setBackgroundColor(BackgroundColorCallback backgroundColorCallback)
Sets the background color callback.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setBackgroundColor(IsColor color)
Sets the background color.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setBackgroundColor(String color)
Sets the background color.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setBorderColor(BorderColorCallback borderColorCallback)
Sets the border color callback.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setBorderColor(IsColor color)
Sets the border color.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setBorderColor(String color)
Sets the border color.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setBorderRadius(double radius)
Sets the border radius.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setBorderRadius(RadiusCallback borderRadiusCallback)
Sets the border radius callback.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setBorderWidth(BorderWidthCallback borderWidthCallback)
Sets the border width callback.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setBorderWidth(int width)
Sets the border width.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setClamp(boolean clamp)
Sets
true to enforce the anchor position to be calculated based on the visible geometry of the associated
element (i.e. |
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setClamp(ClampCallback clampCallback)
Sets the clamp callback.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setClickEventHandler(ClickEventHandler clickEventHandler)
Sets the CLICK event (the mouse's primary button is pressed and released on a label) handler.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setClip(boolean clip)
When the clip option is
true , the part of the label which is outside the chart area will be masked. |
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setClip(ClipCallback clipCallback)
Sets the clip callback.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setColor(ColorCallback colorCallback)
Sets the color callback.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setColor(IsColor color)
Sets the color.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setColor(String color)
Sets the color.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setDisplay(boolean display)
Sets the visibility of labels.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setDisplay(Display display)
Sets the visibility of labels.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setDisplay(DisplayCallback displayCallback)
Sets the display callback.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setEnterEventHandler(EnterEventHandler enterEventHandler)
Sets the ENTER event (the mouse is moved over a label) handler.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setFont(FontCallback fontCallback)
Sets the the font callback.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setFontFamily(String fontFamily)
Sets the font family, follows CSS font-family options.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setFontLineHeight(double lineHeight)
Sets the line height.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setFontLineHeight(String lineHeight)
Sets the line height.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setFontSize(int fontSize)
Sets the font size.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setFontStyle(FontStyle fontStyle)
Sets the font style, follows CSS font-style options (i.e.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setFontWeight(Weight weight)
Sets the font weight, follows CSS font-style-weight options.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setFormatter(FormatterCallback formatterCallback)
Sets the formatter callback.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setLeaveEventHandler(LeaveEventHandler leaveEventHandler)
Sets the LEAVE event (the mouse is moved out of a label) handler.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setListenersHandler(AbstractEventHandler handler)
Adds a event handler instance as listener for all events.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setOffset(double offset)
Sets the distance (in pixels) to pull the label away from the anchor point.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setOffset(OffsetCallback offsetCallback)
Sets the offset callback.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setOpacity(double opacity)
Sets the opacity.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setOpacity(OpacityCallback opacityCallback)
Sets the opacity callback.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setPadding(int padding)
Sets the padding size to all dimensions.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setPadding(PaddingCallback paddingCallback)
Sets the padding callback.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setPaddingBottom(int padding)
Sets the padding bottom in pixel.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setPaddingLeft(int padding)
Sets the padding left in pixel.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setPaddingRight(int padding)
Sets the padding right in pixel.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setPaddingTop(int padding)
Sets the padding top in pixel.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setRotation(double rotation)
Sets the clockwise rotation angle (in degrees) of the label, the rotation center point being the label center.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setRotation(RotationCallback rotationCallback)
Sets the rotation callback.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setTextAlign(TextAlign textAlign)
Sets the text alignment being used when drawing the label text.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setTextAlign(TextAlignCallback textAlignCallback)
Sets the text align callback.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setTextShadowBlur(double textShadowBlur)
Sets the text shadow blur.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setTextShadowBlur(TextShadowBlurCallback textShadowBlurCallback)
Sets the text shadow blur callback.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setTextShadowColor(IsColor color)
Sets the text shadow color color.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setTextShadowColor(String color)
Sets the text shadow color color.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setTextShadowColor(TextShadowColorCallback textShadowColorCallback)
Sets the text shadow color callback.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setTextStrokeColor(IsColor color)
Sets the text stroke color.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setTextStrokeColor(String color)
Sets the text stroke color.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setTextStrokeColor(TextStrokeColorCallback textStrokeColorCallback)
Sets the text stroke color callback.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setTextStrokeWidth(int textStrokeWidth)
Sets the text stroke width.
|
DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.setTextStrokeWidth(TextStrokeWidthCallback textStrokeWidthCallback)
Sets the text stroke width callback.
|