|
Chart FX 7 for Java Server | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.softwarefx.chartfx.server.PointLabelOrganizer
public class PointLabelOrganizer
Provides access to the PointLabelOrganizer object.
The PointLabelOrganizer object supports members to enable developers with built-in features to try and display point labels in the most visual appealing manner. By default, point labels are painted in the same order in which the series/points they are associated. This can cause overlapping and unreadable point labels.
The PointLabelOrganizer Class supports members not only to bring all labels to the front to avoid this issue, but also internal algorithms used to reposition and even hide offending point labels. Additionally, members have been implemented to allow the developer control over acceptable point label collisions, time limits used for organizing and even caching features.
Constructor Summary | |
---|---|
PointLabelOrganizer()
|
Method Summary | |
---|---|
double |
getMaximumCollisions()
Gets the MaximumCollisions. |
int |
getMaximumTime()
Gets the MaximumTime. |
boolean |
isAutoArrange()
Gets the AutoArrange. |
boolean |
isCache()
Gets the Cache. |
boolean |
isEnabled()
Gets the Enabled. |
void |
setAutoArrange(boolean value)
Sets a value specifying to use internal alogrithms to arrange point labels. |
void |
setCache(boolean value)
Sets a value specifying to save PointLabels in memory. |
void |
setEnabled(boolean value)
Sets a value specifying if the PointLabelOrganizer feature is enabled. |
void |
setMaximumCollisions(double value)
Sets a acceptable percentage rate of collisions (clipped or overlapping labels). |
void |
setMaximumTime(int value)
Sets a value specifying the maximum time limit used to arrange point labels. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PointLabelOrganizer()
Method Detail |
---|
public double getMaximumCollisions()
Gets the MaximumCollisions. For more detail see setMaximumCollisions(double)
.
public int getMaximumTime()
Gets the MaximumTime. For more detail see setMaximumTime(int)
.
public boolean isAutoArrange()
Gets the AutoArrange. For more detail see setAutoArrange(boolean)
.
public boolean isCache()
Gets the Cache. For more detail see setCache(boolean)
.
public boolean isEnabled()
Gets the Enabled. For more detail see setEnabled(boolean)
.
public void setAutoArrange(boolean value)
Sets a value specifying to use internal alogrithms to arrange point labels.
The AutoArrange property may be used to instruct Chart FX to use internal alogrithms to calculate the best locations for PointLabels and even hide some labels if they become intrusive to the chart's display.
The GlobalAttributes.getPointLabelOrganizer()
property (GlobalAttributes) is used to access the PointLabelOrganizer object of a chart.
The setEnabled(boolean)
property is a boolean used to enable the PointLabelOrganizer feature. When enabled, all point labels are brought to the front of the chart (painted last). If this property is disabled, PointLabels will be painted at the same time as each corresponding point marker. This can cause point labels of initial series to be overwritten and clipped by markers and labels of following series.
The setMaximumCollisions(double)
property is used to specify a percentage of collisions (clipped or overlapping labels) acceptable by the developer. Once the internal alogrithm has reached this benchmark, violating point labels are hidden and the chart is displayed.
The setMaximumTime(int)
property is used to configure the maximum amount of time to be used for PointLabel organization features. This time is measured in milliseconds.
The setCache(boolean)
property may be used to instruct the chart that point labels will be saved in memory rather than refreshed each time the chart is redrawn. Setting this property to true increases memory usage but makes charts more efficient.
setEnabled(boolean)
,
setCache(boolean)
,
setMaximumCollisions(double)
,
setMaximumTime(int)
,
GlobalAttributes.getPointLabelOrganizer()
,
GlobalAttributes
public void setCache(boolean value)
Sets a value specifying to save PointLabels in memory.
The Cache property may be used to instruct the chart that point labels will be saved in memory rather than refreshed each time the chart is redrawn. Setting this property to true increases memory usage but makes charts more efficient.
The setAutoArrange(boolean)
property may be used to instruct Chart FX to use internal alogrithms to calculate the best locations for PointLabels and even hide some labels if they become intrusive to the chart's display.
The GlobalAttributes.getPointLabelOrganizer()
property (GlobalAttributes) is used to access the PointLabelOrganizer object of a chart.
The setEnabled(boolean)
property is a boolean used to enable the PointLabelOrganizer feature. When enabled, all point labels are brought to the front of the chart (painted last). If this property is disabled, PointLabels will be painted at the same time as each corresponding point marker. This can cause point labels of initial series to be overwritten and clipped by markers and labels of following series.
The setMaximumCollisions(double)
property is used to specify a percentage of collisions (clipped or overlapping labels) acceptable by the developer. Once the internal alogrithm has reached this benchmark, violating point labels are hidden and the chart is displayed.
The setMaximumTime(int)
property is used to configure the maximum amount of time to be used for PointLabel organization features. This time is measured in milliseconds.
setAutoArrange(boolean)
,
setEnabled(boolean)
,
setMaximumCollisions(double)
,
setMaximumTime(int)
,
GlobalAttributes.getPointLabelOrganizer()
,
GlobalAttributes
public void setEnabled(boolean value)
Sets a value specifying if the PointLabelOrganizer feature is enabled.
The GlobalAttributes.getPointLabelOrganizer()
property (GlobalAttributes) is used to access the PointLabelOrganizer object of a chart.
The Enabled property is a boolean used to enable the PointLabelOrganizer feature. When enabled, all point labels are brought to the front of the chart (painted last). If this property is disabled, PointLabels will be painted at the same time as each corresponding point marker. This can cause point labels of initial series to be overwritten and clipped by markers and labels of following series.
The setAutoArrange(boolean)
property may be used to instruct Chart FX to use internal alogrithms to calculate the best locations for PointLabels and even hide some labels if they become intrusive to the chart's display.
The setCache(boolean)
property may be used to instruct the chart that point labels will be saved in memory rather than refreshed each time the chart is redrawn. Setting this property to true increases memory usage but makes charts more efficient.
The setMaximumCollisions(double)
property is used to specify a percentage of collisions (clipped or overlapping labels) acceptable by the developer. Once the internal alogrithm has reached this benchmark, violating point labels are hidden and the chart is displayed.
The setMaximumTime(int)
property is used to configure the maximum amount of time to be used for PointLabel organization features. This time is measured in milliseconds.
setAutoArrange(boolean)
,
setCache(boolean)
,
setMaximumCollisions(double)
,
setMaximumTime(int)
,
GlobalAttributes.getPointLabelOrganizer()
,
GlobalAttributes
public void setMaximumCollisions(double value)
Sets a acceptable percentage rate of collisions (clipped or overlapping labels).
The setAutoArrange(boolean)
property may be used to instruct Chart FX to use internal alogrithms to calculate the best locations for PointLabels and even hide some labels if they become intrusive to the chart's display. In order for the MaximumCollisions and MaximumTime properties to be realized, AutoArrange must be set to true.
The setMaximumCollisions(double)
property is used to specify a percentage of collisions (clipped or overlapping labels) acceptable by the developer. Once the internal alogrithm has reached this benchmark, violating point labels are hidden and the chart is displayed.
The setMaximumTime(int)
property is used to configure the maximum amount of time to be used for PointLabel organization features. This time is measured in milliseconds.
The GlobalAttributes.getPointLabelOrganizer()
property (GlobalAttributes) is used to access the PointLabelOrganizer object of a chart.
The setEnabled(boolean)
property is a boolean used to enable the PointLabelOrganizer feature. When enabled, all point labels are brought to the front of the chart (painted last). If this property is disabled, PointLabels will be painted at the same time as each corresponding point marker. This can cause point labels of initial series to be overwritten and clipped by markers and labels of following series.
The setCache(boolean)
property may be used to instruct the chart that point labels will be saved in memory rather than refreshed each time the chart is redrawn. Setting this property to true increases memory usage but makes charts more efficient.
setAutoArrange(boolean)
,
setEnabled(boolean)
,
setCache(boolean)
,
setMaximumTime(int)
,
GlobalAttributes.getPointLabelOrganizer()
,
GlobalAttributes
public void setMaximumTime(int value)
Sets a value specifying the maximum time limit used to arrange point labels.
The MaximumTime property is used to configure the maximum amount of time to be used for the AutoArrange feature. This time is measured in milliseconds.
The setAutoArrange(boolean)
property may be used to instruct Chart FX to use internal alogrithms to calculate the best locations for PointLabels and even hide some labels if they become intrusive to the chart's display. In order for the MaximumCollissions and MaximumTime properties to be realized, AutoArrange must be set to true.
The setMaximumCollisions(double)
property is used to specify a percentage of collisions (clipped or overlapping labels) acceptable by the developer. Once the internal alogrithm has reached this benchmark, violating point labels are hidden and the chart is displayed.
The GlobalAttributes.getPointLabelOrganizer()
property (GlobalAttributes) is used to access the PointLabelOrganizer object of a chart.
The setEnabled(boolean)
property is a boolean used to enable the PointLabelOrganizer feature. When enabled, all point labels are brought to the front of the chart (painted last). If this property is disabled, PointLabels will be painted at the same time as each corresponding point marker. This can cause point labels of initial series to be overwritten and clipped by markers and labels of following series.
The setCache(boolean)
property may be used to instruct the chart that point labels will be saved in memory rather than refreshed each time the chart is redrawn. Setting this property to true increases memory usage but makes charts more efficient.
setAutoArrange(boolean)
,
setEnabled(boolean)
,
setCache(boolean)
,
setMaximumCollisions(double)
,
GlobalAttributes.getPointLabelOrganizer()
,
GlobalAttributes
|
http://www.softwarefx.com | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |