public class HIPoint extends HIFoundation
| Constructor and Description |
|---|
HIPoint() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelSonify()
Cancel sonification of a point.
|
void |
cancelSonify(boolean fadeOut)
Cancel sonification of a point.
|
java.lang.String |
getCategory() |
HIColor |
getColor() |
java.lang.Number |
getColorIndex() |
java.lang.String |
getDateFormat() |
HIFunction |
getDateFormatter() |
java.lang.Boolean |
getDescribeNull() |
java.lang.String |
getDescriptionFormat() |
HIFunction |
getDescriptionFormatter() |
HIEvents |
getEvents() |
java.lang.String |
getName() |
java.util.HashMap<java.lang.String,java.lang.Object> |
getParams() |
java.lang.Number |
getPercentage() |
java.lang.Number |
getPlotX() |
java.lang.Number |
getPlotY() |
java.lang.Boolean |
getSelected() |
java.lang.Boolean |
getSliced() |
java.lang.Number |
getTotal() |
java.lang.Number |
getValueDecimals() |
java.lang.String |
getValueDescriptionFormat() |
java.lang.String |
getValuePrefix() |
java.lang.String |
getValueSuffix() |
java.lang.Boolean |
getVisible() |
java.lang.Number |
getX() |
java.lang.Number |
getY() |
void |
onMouseOut()
Runs on mouse out from the point.
|
void |
remove(boolean redraw)
Remove a point and optionally redraw the series and if necessary the axes
|
void |
remove(boolean redraw,
HIAnimationOptionsObject animation)
Remove a point and optionally redraw the series and if necessary the axes
|
void |
select()
Toggle the selection status of a point.
|
void |
select(boolean selected)
Toggle the selection status of a point.
|
void |
select(boolean selected,
boolean accumulate)
Toggle the selection status of a point.
|
void |
setCategory(java.lang.String category)
For categorized axes this property holds the category name for the point.
|
void |
setColor(HIColor color)
The point's current color.
|
void |
setColorIndex(java.lang.Number colorIndex)
The point's current color index, used in styled mode instead of `color`.
|
void |
setDateFormat(java.lang.String dateFormat)
Date format to use for points on datetime axes when describing them to screen reader users.
|
void |
setDateFormatter(HIFunction dateFormatter)
Formatter function to determine the date/time format used with points on datetime axes when describing them to screen reader users.
|
void |
setDescribeNull(java.lang.Boolean describeNull)
Whether or not to describe points with the value `null` to assistive technology, such as screen readers.
|
void |
setDescriptionFormat(java.lang.String descriptionFormat)
A [format string](https://www.highcharts.com/docs/chart-concepts/labels-and-string-formatting) to use instead of the defaults for point descriptions.
|
void |
setDescriptionFormatter(HIFunction descriptionFormatter)
/** * description: Formatter function to use instead of the defaults for point descriptions.
|
void |
setEvents(HIEvents events) |
void |
setName(java.lang.String name)
The name of the point.
|
void |
setNestedProperty(java.lang.Object object,
java.lang.Object value,
java.lang.String key)
Set a value in an object, on the property defined by key.
|
void |
setPercentage(java.lang.Number percentage)
The percentage for points in a stacked series or pies.
|
void |
setPlotX(java.lang.Number plotX)
The translated X value for the point in terms of pixels.
|
void |
setPlotY(java.lang.Number plotY)
The translated Y value for the point in terms of pixels.
|
void |
setSelected(java.lang.Boolean selected)
Whether the point is selected or not.
|
void |
setSliced(java.lang.Boolean sliced)
Pie series only.
|
void |
setState()
Set the point's state.
|
void |
setState(java.lang.Object object,
boolean move)
Set the point's state.
|
void |
setState(java.lang.String state)
Set the point's state.
|
void |
setTotal(java.lang.Number total)
The total of values in either a stack for stacked series, or a pie in a pie series.
|
void |
setValueDecimals(java.lang.Number valueDecimals)
Decimals to use for the values in the point descriptions.
|
void |
setValueDescriptionFormat(java.lang.String valueDescriptionFormat)
Format to use for describing the values of data points to assistive technology - including screen readers.
|
void |
setValuePrefix(java.lang.String valuePrefix)
Prefix to add to the values in the point descriptions.
|
void |
setValueSuffix(java.lang.String valueSuffix)
Suffix to add to the values in the point descriptions.
|
void |
setVisible(java.lang.Boolean visible)
For certain series types, like pie charts, where individual points can be shown or hidden.
|
void |
setX(java.lang.Number x)
The x value of the point.
|
void |
setY(java.lang.Number y)
The y value of the point.
|
void |
sonify(java.util.Map options)
Sonify a single point.
|
void |
tooltipFormatter(java.lang.String pointFormat)
Extendable method for formatting each point's tooltip line.
|
void |
update(HIPoint options)
Update point with new options (typically x/y data) and optionally redraw the series.
|
void |
update(HIPoint options,
boolean redraw)
Update point with new options (typically x/y data) and optionally redraw the series.
|
void |
update(HIPoint options,
boolean redraw,
HIAnimationOptionsObject animation)
Update point with new options (typically x/y data) and optionally redraw the series.
|
public void cancelSonify()
public void cancelSonify(boolean fadeOut)
fadeOut - Whether or not to fade out as we stop. If false, the points are cancelled synchronously.public java.lang.String getCategory()
public HIColor getColor()
public java.lang.Number getColorIndex()
public java.lang.String getDateFormat()
public HIFunction getDateFormatter()
public java.lang.Boolean getDescribeNull()
public java.lang.String getDescriptionFormat()
public HIFunction getDescriptionFormatter()
public HIEvents getEvents()
public java.lang.String getName()
public java.util.HashMap<java.lang.String,java.lang.Object> getParams()
getParams in class HIFoundationpublic java.lang.Number getPercentage()
public java.lang.Number getPlotX()
public java.lang.Number getPlotY()
public java.lang.Boolean getSelected()
public java.lang.Boolean getSliced()
public java.lang.Number getTotal()
public java.lang.Number getValueDecimals()
public java.lang.String getValueDescriptionFormat()
public java.lang.String getValuePrefix()
public java.lang.String getValueSuffix()
public java.lang.Boolean getVisible()
public java.lang.Number getX()
public java.lang.Number getY()
public void onMouseOut()
public void remove(boolean redraw)
redraw - Whether to redraw the chart or wait for an explicit call. When doing more operations on the chart, for example running point.remove() in a loop, it is best practice to set redraw to false and call HIChartView redraw() after.public void remove(boolean redraw,
HIAnimationOptionsObject animation)
redraw - Whether to redraw the chart or wait for an explicit call. When doing more operations on the chart, for example running point.remove() in a loop, it is best practice to set redraw to false and call HIChartView redraw() after.animation - Whether to apply animation, and optionally animation configuration.public void select()
public void select(boolean selected)
selected - When true, the point is selected. When false, the point is unselected. When null or undefined, the selection state is toggled.public void select(boolean selected,
boolean accumulate)
selected - When true, the point is selected. When false, the point is unselected. When null or undefined, the selection state is toggled.accumulate - When true, the selection is added to other selected points. When false, other selected points are deselected. Internally in Highcharts, when allowPointSelect is true, selected points are accumulated on Control, Shift or Cmd clicking the point.public void setCategory(java.lang.String category)
public void setColor(HIColor color)
public void setColorIndex(java.lang.Number colorIndex)
public void setDateFormat(java.lang.String dateFormat)
public void setDateFormatter(HIFunction dateFormatter)
public void setDescribeNull(java.lang.Boolean describeNull)
public void setDescriptionFormat(java.lang.String descriptionFormat)
public void setDescriptionFormatter(HIFunction descriptionFormatter)
public void setEvents(HIEvents events)
public void setName(java.lang.String name)
public void setNestedProperty(java.lang.Object object,
java.lang.Object value,
java.lang.String key)
object - The object to set the value on.value - The value to set.key - Key to the property to set.public void setPercentage(java.lang.Number percentage)
public void setPlotX(java.lang.Number plotX)
public void setPlotY(java.lang.Number plotY)
public void setSelected(java.lang.Boolean selected)
public void setSliced(java.lang.Boolean sliced)
public void setState()
public void setState(java.lang.Object object,
boolean move)
object - The new state, can be one of '' (an empty string), hover or select.move - State for animation.public void setState(java.lang.String state)
state - The new state, can be one of '' (an empty string), hover or selectpublic void setTotal(java.lang.Number total)
public void setValueDecimals(java.lang.Number valueDecimals)
public void setValueDescriptionFormat(java.lang.String valueDescriptionFormat)
public void setValuePrefix(java.lang.String valuePrefix)
public void setValueSuffix(java.lang.String valueSuffix)
public void setVisible(java.lang.Boolean visible)
public void setX(java.lang.Number x)
public void setY(java.lang.Number y)
public void sonify(java.util.Map options)
options - Options for the sonification of the point.public void tooltipFormatter(java.lang.String pointFormat)
pointFormat - The point format.public void update(HIPoint options)
options - The point options. Point options are handled as described under the series.type.data item for each series type. For example for a line series, if options is a single number, the point will be given that number as the marin y value. If it is an array, it will be interpreted as x and y values respectively. If it is an object, advanced options are applied.public void update(HIPoint options, boolean redraw)
options - The point options. Point options are handled as described under the series.type.data item for each series type. For example for a line series, if options is a single number, the point will be given that number as the marin y value. If it is an array, it will be interpreted as x and y values respectively. If it is an object, advanced options are applied.redraw - Whether to redraw the chart after the point is updated. If doing more operations on the chart, it is best practice to set redraw to false and call chart.redraw() after.public void update(HIPoint options, boolean redraw, HIAnimationOptionsObject animation)
options - The point options. Point options are handled as described under the series.type.data item for each series type. For example for a line series, if options is a single number, the point will be given that number as the marin y value. If it is an array, it will be interpreted as x and y values respectively. If it is an object, advanced options are applied.redraw - Whether to redraw the chart after the point is updated. If doing more operations on the chart, it is best practice to set redraw to false and call chart.redraw() after.animation - Whether to apply animation, and optionally animation configuration.