public final class DatasetCanvasObjectFactory extends CanvasObjectFactory
Gradient
,
Pattern
,
CanvasGradientItem
,
CanvasPatternItem
Modifier and Type | Method and Description |
---|---|
static DatasetCanvasObjectFactory |
get()
Singleton method to get instance.
|
protected Area |
getArea(IsChart chart,
Gradient gradient)
Returns an area object used to define the area of LINEAR gradient.
|
protected Center |
getCenter(IsChart chart,
Gradient gradient,
int datasetIndex,
int index)
Returns the coordinates of a center of arc for RADIAL gradient.
|
protected Radius |
getRadius(IsChart chart,
Gradient gradient,
int datasetIndex,
int index)
Returns the inner and outer radius of arc for RADIAL gradient.
|
clear, createGradient, createPattern, getScope, resetGradients
public static DatasetCanvasObjectFactory get()
protected Area getArea(IsChart chart, Gradient gradient)
CanvasObjectFactory
getArea
in class CanvasObjectFactory
chart
- chart instancegradient
- gradient instanceprotected Center getCenter(IsChart chart, Gradient gradient, int datasetIndex, int index)
CanvasObjectFactory
getCenter
in class CanvasObjectFactory
chart
- chart instancegradient
- gradient instancedatasetIndex
- data set indexindex
- data indexprotected Radius getRadius(IsChart chart, Gradient gradient, int datasetIndex, int index)
CanvasObjectFactory
getRadius
in class CanvasObjectFactory
chart
- chart instancegradient
- gradient instancedatasetIndex
- data set indexindex
- data index