Class RadialAngleLines
- java.lang.Object
-
- org.pepstock.charba.client.configuration.RadialAngleLines
-
public class RadialAngleLines extends Object
It is used to configure angled lines that radiate from the center of the chart to the point labels.
Note that these options only apply if display is true.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AxisgetAxis()Returns the axis instance.List<Integer>getBorderDash()Returns the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern.BorderDashCallback<ScaleContext>getBorderDashCallback()Returns the border dash callback when element is hovered, if set, otherwisenull.doublegetBorderDashOffset()Returns the line dash pattern offset.BorderDashOffsetCallback<ScaleContext>getBorderDashOffsetCallback()Returns the border dash offset callback instance.IsColorgetColor()Returns the color of angled lines.StringgetColorAsString()Returns the color of angled lines.ColorCallback<ScaleContext>getColorCallback()Returns the color callback instance.intgetLineWidth()Returns the width of angled lines.WidthCallback<ScaleContext>getLineWidthCallback()Returns the line width callback instance.booleanisDisplay()If true, angle lines are shownvoidsetBorderDash(int... borderDash)Sets the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern.voidsetBorderDash(BorderDashCallback<ScaleContext> borderDashCallback)Sets the border dash callback when element is hovered.voidsetBorderDash(NativeCallback borderDashCallback)Sets the border dash callback when element is hovered.voidsetBorderDashOffset(double borderDashOffset)Sets the line dash pattern offset.voidsetBorderDashOffset(BorderDashOffsetCallback<ScaleContext> borderDashOffsetCallback)Sets the border dash offset callback instance.voidsetBorderDashOffset(NativeCallback borderDashOffsetCallback)Sets the border dash offset callback instance.voidsetColor(String color)Sets the color of angled lines.voidsetColor(ColorCallback<ScaleContext> colorCallback)Sets the color callback instance.voidsetColor(NativeCallback colorCallback)Sets the color callback instance.voidsetColor(IsColor color)Sets the color of angled lines.voidsetDisplay(boolean display)If true, angle lines are shownvoidsetLineWidth(int lineWidth)Sets the width of angled lines.voidsetLineWidth(NativeCallback lineWidthCallback)Sets the line width callback instance.voidsetLineWidth(WidthCallback<ScaleContext> lineWidthCallback)Sets the line width callback instance.
-
-
-
Method Detail
-
setDisplay
public void setDisplay(boolean display)
If true, angle lines are shown- Parameters:
display- if true, angle lines are shown
-
isDisplay
public boolean isDisplay()
If true, angle lines are shown- Returns:
- if true, angle lines are shown.
-
setColor
public void setColor(IsColor color)
Sets the color of angled lines.- Parameters:
color- color of angled lines.
-
setColor
public void setColor(String color)
Sets the color of angled lines.- Parameters:
color- color of angled lines.
-
getColorAsString
public String getColorAsString()
Returns the color of angled lines.- Returns:
- color of angled lines.
-
getColor
public IsColor getColor()
Returns the color of angled lines.- Returns:
- color of angled lines.
-
setLineWidth
public void setLineWidth(int lineWidth)
Sets the width of angled lines.- Parameters:
lineWidth- width of angled lines.
-
getLineWidth
public int getLineWidth()
Returns the width of angled lines.- Returns:
- width of angled lines.
-
setBorderDash
public void setBorderDash(int... borderDash)
Sets the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern.- Parameters:
borderDash- the line dash pattern used when stroking lines
-
getBorderDash
public List<Integer> getBorderDash()
Returns the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern.- Returns:
- the line dash pattern used when stroking lines
-
setBorderDashOffset
public void setBorderDashOffset(double borderDashOffset)
Sets the line dash pattern offset.- Parameters:
borderDashOffset- Offset for line dashes.
-
getBorderDashOffset
public double getBorderDashOffset()
Returns the line dash pattern offset.- Returns:
- Offset for line dashes.
-
getBorderDashCallback
public BorderDashCallback<ScaleContext> getBorderDashCallback()
Returns the border dash callback when element is hovered, if set, otherwisenull.- Returns:
- the border dash callback when element is hovered, if set, otherwise
null.
-
setBorderDash
public void setBorderDash(BorderDashCallback<ScaleContext> borderDashCallback)
Sets the border dash callback when element is hovered.- Parameters:
borderDashCallback- the border dash callback when element is hovered.
-
setBorderDash
public void setBorderDash(NativeCallback borderDashCallback)
Sets the border dash callback when element is hovered.- Parameters:
borderDashCallback- the border dash callback when element is hovered.
-
getColorCallback
public ColorCallback<ScaleContext> getColorCallback()
Returns the color callback instance.- Returns:
- the color callback instance
-
setColor
public void setColor(ColorCallback<ScaleContext> colorCallback)
Sets the color callback instance.- Parameters:
colorCallback- the color callback instance
-
setColor
public void setColor(NativeCallback colorCallback)
Sets the color callback instance.- Parameters:
colorCallback- the color callback instance
-
getLineWidthCallback
public WidthCallback<ScaleContext> getLineWidthCallback()
Returns the line width callback instance.- Returns:
- the line width callback instance
-
setLineWidth
public void setLineWidth(WidthCallback<ScaleContext> lineWidthCallback)
Sets the line width callback instance.- Parameters:
lineWidthCallback- the line width callback instance.
-
setLineWidth
public void setLineWidth(NativeCallback lineWidthCallback)
Sets the line width callback instance.- Parameters:
lineWidthCallback- the line width callback instance.
-
getBorderDashOffsetCallback
public BorderDashOffsetCallback<ScaleContext> getBorderDashOffsetCallback()
Returns the border dash offset callback instance.- Returns:
- the border dash offset callback instance
-
setBorderDashOffset
public void setBorderDashOffset(BorderDashOffsetCallback<ScaleContext> borderDashOffsetCallback)
Sets the border dash offset callback instance.- Parameters:
borderDashOffsetCallback- the border dash offset callback instance
-
setBorderDashOffset
public void setBorderDashOffset(NativeCallback borderDashOffsetCallback)
Sets the border dash offset callback instance.- Parameters:
borderDashOffsetCallback- the border dash offset callback instance
-
getAxis
public final Axis getAxis()
Returns the axis instance.- Returns:
- the axis
-
-