Class AxisBorder
- java.lang.Object
- 
- org.pepstock.charba.client.configuration.AxisBorder
 
- 
 public class AxisBorder extends Object Defines options for the border that run perpendicular to the axis.- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description AxisgetAxis()Returns the axis instance.IsColorgetColor()If set, used as the color of the border line.
 If unset, the first color option is resolved and used.StringgetColorAsString()If set, used as the color of the border line.
 If unset, the first color option is resolved and used.List<Integer>getDash()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>getDashCallback()Returns the border dash callback instance.doublegetDashOffset()Returns the line dash pattern offset.BorderDashOffsetCallback<ScaleContext>getDashOffsetCallback()Returns the border dash offset callback instance.intgetWidth()If set, used as the width of the border line.
 If unset, the first lineWidth option is resolved and used.intgetZ()Returns z-index of border layer.
 Values less than or equals to 0 are drawn under datasets, greater than 0 on top.booleanisDisplay()If true, draw border at the edge between the axis and the chart area.voidsetColor(String color)If set, used as the color of the border line.
 If unset, the first color option is resolved and used.voidsetColor(IsColor color)If set, used as the color of the border line.
 If unset, the first color option is resolved and used.voidsetDash(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.voidsetDash(BorderDashCallback<ScaleContext> borderDashCallback)Sets the border dash callback instance.voidsetDash(NativeCallback borderDashCallback)Sets the border dash callback instance.voidsetDashOffset(double borderDashOffset)Sets the line dash pattern offset.voidsetDashOffset(BorderDashOffsetCallback<ScaleContext> borderDashOffsetCallback)Sets the border dash offset callback instance.voidsetDashOffset(NativeCallback borderDashOffsetCallback)Sets the border dash offset callback instance.voidsetDisplay(boolean display)If true, draw border at the edge between the axis and the chart area.voidsetWidth(int borderWidth)If set, used as the width of the border line.
 If unset, the first lineWidth option is resolved and used.voidsetZ(int z)Sets z-index of border layer.
 Values less than or equals to 0 are drawn under datasets, greater than 0 on top.
 
- 
- 
- 
Method Detail- 
setDisplaypublic void setDisplay(boolean display) If true, draw border at the edge between the axis and the chart area.- Parameters:
- display- If true, draw border at the edge between the axis and the chart area.
 
 - 
isDisplaypublic boolean isDisplay() If true, draw border at the edge between the axis and the chart area.- Returns:
- If true, draw border at the edge between the axis and the chart area.
 
 - 
setColorpublic void setColor(IsColor color) If set, used as the color of the border line.
 If unset, the first color option is resolved and used.- Parameters:
- color- if set, used as the color of the border line.
 If unset, the first color option is resolved and used.
 
 - 
setColorpublic void setColor(String color) If set, used as the color of the border line.
 If unset, the first color option is resolved and used.- Parameters:
- color- if set, used as the color of the border line.
 If unset, the first color option is resolved and used.
 
 - 
getColorAsStringpublic String getColorAsString() If set, used as the color of the border line.
 If unset, the first color option is resolved and used.- Returns:
- if set, used as the color of the border line.
 If unset, the first color option is resolved and used.
 
 - 
getColorpublic IsColor getColor() If set, used as the color of the border line.
 If unset, the first color option is resolved and used.- Returns:
- if set, used as the color of the border line.
 If unset, the first color option is resolved and used.
 
 - 
setWidthpublic void setWidth(int borderWidth) If set, used as the width of the border line.
 If unset, the first lineWidth option is resolved and used.- Parameters:
- borderWidth- if set, used as the width of the border line.
 If unset, the first lineWidth option is resolved and used.
 
 - 
getWidthpublic int getWidth() If set, used as the width of the border line.
 If unset, the first lineWidth option is resolved and used.- Returns:
- if set, used as the width of the border line.
 If unset, the first lineWidth option is resolved and used.
 
 - 
setDashpublic void setDash(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
 
 - 
getDashpublic List<Integer> getDash() 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.
 
 - 
setDashOffsetpublic void setDashOffset(double borderDashOffset) Sets the line dash pattern offset.- Parameters:
- borderDashOffset- Offset for line dashes.
 
 - 
getDashOffsetpublic double getDashOffset() Returns the line dash pattern offset.- Returns:
- Offset for line dashes.
 
 - 
setZpublic void setZ(int z) Sets z-index of border layer.
 Values less than or equals to 0 are drawn under datasets, greater than 0 on top.- Parameters:
- z- z-index of border layer.
 Values less than or equals to 0 are drawn under datasets, greater than 0 on top.
 
 - 
getZpublic int getZ() Returns z-index of border layer.
 Values less than or equals to 0 are drawn under datasets, greater than 0 on top.- Returns:
- z-index of border layer.
 Values less than or equals to 0 are drawn under datasets, greater than 0 on top.
 
 - 
getDashOffsetCallbackpublic BorderDashOffsetCallback<ScaleContext> getDashOffsetCallback() Returns the border dash offset callback instance.- Returns:
- the border dash offset callback instance
 
 - 
setDashOffsetpublic void setDashOffset(BorderDashOffsetCallback<ScaleContext> borderDashOffsetCallback) Sets the border dash offset callback instance.- Parameters:
- borderDashOffsetCallback- the border dash offset callback instance
 
 - 
setDashOffsetpublic void setDashOffset(NativeCallback borderDashOffsetCallback) Sets the border dash offset callback instance.- Parameters:
- borderDashOffsetCallback- the border dash offset callback instance
 
 - 
getDashCallbackpublic BorderDashCallback<ScaleContext> getDashCallback() Returns the border dash callback instance.- Returns:
- the border dash callback instance
 
 - 
setDashpublic void setDash(BorderDashCallback<ScaleContext> borderDashCallback) Sets the border dash callback instance.- Parameters:
- borderDashCallback- the border dash callback instance
 
 - 
setDashpublic void setDash(NativeCallback borderDashCallback) Sets the border dash callback instance.- Parameters:
- borderDashCallback- the border dash callback instance
 
 - 
getAxispublic final Axis getAxis() Returns the axis instance.- Returns:
- the axis
 
 
- 
 
-