public class Segment extends Object
LineOptions.null fallbacks to main line styles.| Modifier and Type | Method and Description |
|---|---|
ColorCallback<SegmentContext> |
getBackgroundColorCallback()
Returns the background width callback, if set, otherwise
null. |
CapStyleCallback<SegmentContext> |
getBorderCapStyleCallback()
Returns the border cap-style callback, if set, otherwise
null. |
ColorCallback<SegmentContext> |
getBorderColorCallback()
Returns the border width callback, if set, otherwise
null. |
BorderDashCallback<SegmentContext> |
getBorderDashCallback()
Returns the border dash callback, if set, otherwise
null. |
BorderDashOffsetCallback<SegmentContext> |
getBorderDashOffsetCallback()
Returns the border dash callback, if set, otherwise
null. |
JoinStyleCallback<SegmentContext> |
getBorderJoinStyleCallback()
Returns the border join-style callback, if set, otherwise
null. |
WidthCallback<SegmentContext> |
getBorderWidthCallback()
Returns the border width callback, if set, otherwise
null. |
IsChart |
getChart()
Returns the chart instance
|
protected ExtendedOptions |
getConfiguration()
Returns the configuration element.
|
protected ConfigurationOptions |
getOptions()
Returns the configuration options.
|
void |
setBackgroundColor(ColorCallback<SegmentContext> backgroundColorCallback)
Sets the background color callback.
|
void |
setBackgroundColor(NativeCallback backgroundColorCallback)
Sets the background color callback.
|
void |
setBorderCapStyle(CapStyleCallback<SegmentContext> borderCapStyleCallback)
Sets the border cap-style callback.
|
void |
setBorderCapStyle(NativeCallback borderCapStyleCallback)
Sets the border cap-style callback.
|
void |
setBorderColor(ColorCallback<SegmentContext> borderColorCallback)
Sets the border color callback.
|
void |
setBorderColor(NativeCallback borderColorCallback)
Sets the border color callback.
|
void |
setBorderDash(BorderDashCallback<SegmentContext> borderDashCallback)
Sets the border dash callback.
|
void |
setBorderDash(NativeCallback borderDashCallback)
Sets the border dash callback.
|
void |
setBorderDashOffset(BorderDashOffsetCallback<SegmentContext> borderDashOffsetCallback)
Sets the border dash callback.
|
void |
setBorderDashOffset(NativeCallback borderDashOffsetCallback)
Sets the border dash callback.
|
void |
setBorderJoinStyle(JoinStyleCallback<SegmentContext> borderJoinStyleCallback)
Sets the border join-style callback.
|
void |
setBorderJoinStyle(NativeCallback borderJoinStyleCallback)
Sets the border join-style callback.
|
void |
setBorderWidth(NativeCallback borderWidthCallback)
Sets the border width callback.
|
void |
setBorderWidth(WidthCallback<SegmentContext> borderWidthCallback)
Sets the border width callback.
|
public ColorCallback<SegmentContext> getBackgroundColorCallback()
null.null.public void setBackgroundColor(ColorCallback<SegmentContext> backgroundColorCallback)
backgroundColorCallback - the background color callback to setpublic void setBackgroundColor(NativeCallback backgroundColorCallback)
backgroundColorCallback - the background color callback to setpublic WidthCallback<SegmentContext> getBorderWidthCallback()
null.null.public void setBorderWidth(WidthCallback<SegmentContext> borderWidthCallback)
borderWidthCallback - the border width callback to setpublic void setBorderWidth(NativeCallback borderWidthCallback)
borderWidthCallback - the border width callback to setpublic ColorCallback<SegmentContext> getBorderColorCallback()
null.null.public void setBorderColor(ColorCallback<SegmentContext> borderColorCallback)
borderColorCallback - the border color callback to setpublic void setBorderColor(NativeCallback borderColorCallback)
borderColorCallback - the border color callback to setpublic CapStyleCallback<SegmentContext> getBorderCapStyleCallback()
null.null.public void setBorderCapStyle(CapStyleCallback<SegmentContext> borderCapStyleCallback)
borderCapStyleCallback - the border cap-style callback to setpublic void setBorderCapStyle(NativeCallback borderCapStyleCallback)
borderCapStyleCallback - the border cap-style callback to setpublic JoinStyleCallback<SegmentContext> getBorderJoinStyleCallback()
null.null.public void setBorderJoinStyle(JoinStyleCallback<SegmentContext> borderJoinStyleCallback)
borderJoinStyleCallback - the border join-style callback to setpublic void setBorderJoinStyle(NativeCallback borderJoinStyleCallback)
borderJoinStyleCallback - the border join-style callback to setpublic BorderDashCallback<SegmentContext> getBorderDashCallback()
null.null.public void setBorderDash(BorderDashCallback<SegmentContext> borderDashCallback)
borderDashCallback - the border dash callback to setpublic void setBorderDash(NativeCallback borderDashCallback)
borderDashCallback - the border dash callback to setpublic BorderDashOffsetCallback<SegmentContext> getBorderDashOffsetCallback()
null.null.public void setBorderDashOffset(BorderDashOffsetCallback<SegmentContext> borderDashOffsetCallback)
borderDashOffsetCallback - the border dash callback to setpublic void setBorderDashOffset(NativeCallback borderDashOffsetCallback)
borderDashOffsetCallback - the border dash callback to setprotected final ConfigurationOptions getOptions()
protected final ExtendedOptions getConfiguration()
public final IsChart getChart()