Class DrawnValue
java.lang.Object
com.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.widgets.chart.DrawnValue
- All Implemented Interfaces:
HasHandlers
Returns information about how a data value is rendered in a chart.
-
Field Summary
Fields inherited from class com.smartgwt.client.core.DataClass
factoryCreated, factoryProperties
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionFor bar and column charts, thickness of the bar representing this data value.For pie mode only, start angle of the segment for the data value.FacetValues for the data value.static DrawnValue
getOrCreateRef
(JavaScriptObject jsObj) For pie mode only, the radius of the segment for the data value.The data record of the data point from which thisdrawnValue
was created.For pie mode only, start angle of the segment for the data value.getValue()
Deprecated.Data value thisdrawnValue
represents.getX()
X coordinate where the data value is rendered.getY()
Y coordinate where the data value is rendered.setBarThickness
(Integer barThickness) For bar and column charts, thickness of the bar representing this data value.setEndAngle
(Integer endAngle) For pie mode only, start angle of the segment for the data value.setFacetValues
(FacetValueMap facetValues) FacetValues for the data value.For pie mode only, the radius of the segment for the data value.The data record of the data point from which thisdrawnValue
was created.setStartAngle
(Integer startAngle) For pie mode only, start angle of the segment for the data value.Data value thisdrawnValue
represents.Deprecated.X coordinate where the data value is rendered.Y coordinate where the data value is rendered.Methods inherited from class com.smartgwt.client.core.DataClass
applyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated
-
Constructor Details
-
DrawnValue
public DrawnValue() -
DrawnValue
-
-
Method Details
-
getOrCreateRef
-
setBarThickness
For bar and column charts, thickness of the bar representing this data value.- Parameters:
barThickness
- New barThickness value. Default value is null- Returns:
DrawnValue
instance, for chaining setter calls
-
getBarThickness
For bar and column charts, thickness of the bar representing this data value.- Returns:
- Current barThickness value. Default value is null
-
setEndAngle
For pie mode only, start angle of the segment for the data value.- Parameters:
endAngle
- New endAngle value. Default value is null- Returns:
DrawnValue
instance, for chaining setter calls
-
getEndAngle
For pie mode only, start angle of the segment for the data value.- Returns:
- Current endAngle value. Default value is null
-
setFacetValues
FacetValues for the data value.- Parameters:
facetValues
- New facetValues value. Default value is null- Returns:
DrawnValue
instance, for chaining setter calls
-
getFacetValues
FacetValues for the data value.- Returns:
- Current facetValues value. Default value is null
-
setRadius
For pie mode only, the radius of the segment for the data value.- Parameters:
radius
- New radius value. Default value is null- Returns:
DrawnValue
instance, for chaining setter calls
-
getRadius
For pie mode only, the radius of the segment for the data value.- Returns:
- Current radius value. Default value is null
-
setRecord
The data record of the data point from which thisdrawnValue
was created.Note that a chart with an
inlined facet
or amulti-axis chart
may define multiple data points in the same record, each of which will correspond to a differentdrawnValue
. The way to uniquely identify the data value of this particulardrawnValue
is to use thefacetValues
.- Parameters:
record
- New record value. Default value is null- Returns:
DrawnValue
instance, for chaining setter calls
-
getRecord
The data record of the data point from which thisdrawnValue
was created.Note that a chart with an
inlined facet
or amulti-axis chart
may define multiple data points in the same record, each of which will correspond to a differentdrawnValue
. The way to uniquely identify the data value of this particulardrawnValue
is to use thefacetValues
.- Returns:
- Current record value. Default value is null
-
setStartAngle
For pie mode only, start angle of the segment for the data value.- Parameters:
startAngle
- New startAngle value. Default value is null- Returns:
DrawnValue
instance, for chaining setter calls
-
getStartAngle
For pie mode only, start angle of the segment for the data value.- Returns:
- Current startAngle value. Default value is null
-
setValue
Deprecated.Data value thisdrawnValue
represents.- Parameters:
value
- New value value. Default value is null- Returns:
DrawnValue
instance, for chaining setter calls
-
getValue
Deprecated.Data value thisdrawnValue
represents.- Returns:
- Current value value. Default value is null
-
setValue
Data value thisdrawnValue
represents.- Parameters:
value
- New value value. Default value is null- Returns:
DrawnValue
instance, for chaining setter calls
-
getValueAsDouble
Data value thisdrawnValue
represents.- Returns:
- Current value value. Default value is null
-
setX
X coordinate where the data value is rendered. In pie mode, returns the X coordinate of the center of the pie where the data value appears.- Parameters:
x
- New x value. Default value is null- Returns:
DrawnValue
instance, for chaining setter calls
-
getX
X coordinate where the data value is rendered. In pie mode, returns the X coordinate of the center of the pie where the data value appears.- Returns:
- Current x value. Default value is null
-
setY
Y coordinate where the data value is rendered. In pie mode, returns the Y coordinate of the center of the pie where the data value appears.- Parameters:
y
- New y value. Default value is null- Returns:
DrawnValue
instance, for chaining setter calls
-
getY
Y coordinate where the data value is rendered. In pie mode, returns the Y coordinate of the center of the pie where the data value appears.- Returns:
- Current y value. Default value is null
-
GwtFloatVsDouble