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 Axis
getAxis()
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
.double
getBorderDashOffset()
Returns the line dash pattern offset.BorderDashOffsetCallback<ScaleContext>
getBorderDashOffsetCallback()
Returns the border dash offset callback instance.IsColor
getColor()
Returns the color of angled lines.String
getColorAsString()
Returns the color of angled lines.ColorCallback<ScaleContext>
getColorCallback()
Returns the color callback instance.int
getLineWidth()
Returns the width of angled lines.WidthCallback<ScaleContext>
getLineWidthCallback()
Returns the line width callback instance.boolean
isDisplay()
If true, angle lines are shownvoid
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.void
setBorderDash(BorderDashCallback<ScaleContext> borderDashCallback)
Sets the border dash callback when element is hovered.void
setBorderDash(NativeCallback borderDashCallback)
Sets the border dash callback when element is hovered.void
setBorderDashOffset(double borderDashOffset)
Sets the line dash pattern offset.void
setBorderDashOffset(BorderDashOffsetCallback<ScaleContext> borderDashOffsetCallback)
Sets the border dash offset callback instance.void
setBorderDashOffset(NativeCallback borderDashOffsetCallback)
Sets the border dash offset callback instance.void
setColor(String color)
Sets the color of angled lines.void
setColor(ColorCallback<ScaleContext> colorCallback)
Sets the color callback instance.void
setColor(NativeCallback colorCallback)
Sets the color callback instance.void
setColor(IsColor color)
Sets the color of angled lines.void
setDisplay(boolean display)
If true, angle lines are shownvoid
setLineWidth(int lineWidth)
Sets the width of angled lines.void
setLineWidth(NativeCallback lineWidthCallback)
Sets the line width callback instance.void
setLineWidth(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.
-
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
-
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.
-
getAxis
public final Axis getAxis()
Returns the axis instance.- Returns:
- the axis
-
-