Package | Description |
---|---|
org.pepstock.charba.client.labels |
Contains all classes to use
LabelsPlugin.ID plugin (AKA chartjs-plugin-labels.js ) available for CHART.JS. |
Modifier and Type | Method and Description |
---|---|
LabelBuilder |
LabelsOptionsBuilder.createLabel(LabelId id)
Returns new options builder for new label identified by id.
|
LabelBuilder |
LabelsOptionsBuilder.createLabel(String id)
Returns new options builder for new label identified by id.
|
LabelBuilder |
LabelsOptionsBuilder.getLabel(LabelId id)
Returns the options builder for label identified by id
|
LabelBuilder |
LabelsOptionsBuilder.getLabel(String id)
Returns the options builder for label identified by id.
|
LabelBuilder |
LabelBuilder.setArc(boolean arc)
Sets if draws label in arc.
|
LabelBuilder |
LabelBuilder.setColor(IsColor color)
Sets the font color as color.
|
LabelBuilder |
LabelBuilder.setColor(String color)
Sets the font color as string.
|
LabelBuilder |
LabelBuilder.setFont(FontCallback<LabelsContext> fontColorCallback)
Sets the font color callback.
|
LabelBuilder |
LabelBuilder.setFontFamily(String fontFamily)
Sets the font family
|
LabelBuilder |
LabelBuilder.setFontSize(int size)
Sets the font size.
|
LabelBuilder |
LabelBuilder.setFontStyle(FontStyle fontStyle)
Sets the font style.
|
LabelBuilder |
LabelBuilder.setImages(Img... images)
Sets the images when
Render is Render.IMAGE . |
LabelBuilder |
LabelBuilder.setOutsidePadding(int outsidePadding)
Sets the padding when position is
Position.OUTSIDE . |
LabelBuilder |
LabelBuilder.setOverlap(boolean overlap)
Sets if draws label even it's overlap.
|
LabelBuilder |
LabelBuilder.setPosition(Position position)
+ Sets the position to draw label.
|
LabelBuilder |
LabelBuilder.setPrecision(int precision)
Sets the precision for percentage.
|
LabelBuilder |
LabelBuilder.setRender(Render render)
Sets what data must be showed.
|
LabelBuilder |
LabelBuilder.setRender(RenderCallback renderCallback)
Sets the render callback.
|
LabelBuilder |
LabelBuilder.setShadowBlur(int shadowBlur)
Sets the text shadow intensity.
|
LabelBuilder |
LabelBuilder.setShadowColor(IsColor shadowColor)
Sets the text shadow color as color.
|
LabelBuilder |
LabelBuilder.setShadowColor(String shadowColor)
Sets the text shadow color as string.
|
LabelBuilder |
LabelBuilder.setShadowOffsetX(int shadowOffsetX)
Sets the text shadow X offset.
|
LabelBuilder |
LabelBuilder.setShadowOffsetY(int shadowOffsetY)
Sets the text shadow Y offset.
|
LabelBuilder |
LabelBuilder.setShowActualPercentages(boolean showActualPercentages)
Sets if shows the real calculated percentages from the values and don't apply the additional logic to fit the percentages to 100 in total.
|
LabelBuilder |
LabelBuilder.setShowZero(boolean showZero)
Sets whether or not labels of value 0 are displayed.
|
LabelBuilder |
LabelBuilder.setTextMargin(int textMargin)
Sets the margin of text when position is
Position.OUTSIDE or Position.BORDER . |
LabelBuilder |
LabelBuilder.setTextShadow(boolean textShadow)
Sets if draws text shadows under labels.
|