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