public final class AxisSectionHighlightAttributes
extends java.lang.Object
By accessing this class you can enable/disable AxisSection Highlighting, as well as set the Condition to Highlight. It is accessed in the Axis via the Highlight method.
Constructor and Description |
---|
AxisSectionHighlightAttributes()
Constructs a newly allocated AxisSectionHighlightAttributes object
|
Modifier and Type | Method and Description |
---|---|
AxisSectionCondition |
getCondition()
Allows to highlight the Points/Series inside/outside the selected axis section
|
int |
getPoint()
Allows you to select on which point the title of the axis section will be highlighted.
|
boolean |
isEnabled()
Gets or sets a value indicating whether the Axis Section highlighting feature will be enabled in the chart.
|
void |
resetCondition()
Set the property Condition to its default value.
|
void |
resetEnabled()
Set the property Enabled to its default value.
|
void |
resetPoint()
Set the property Point to its default value.
|
void |
setCondition(AxisSectionCondition value)
Allows to highlight the Points/Series inside/outside the selected axis section
|
void |
setEnabled(boolean value)
Gets or sets a value indicating whether the Axis Section highlighting feature will be enabled in the chart.
|
void |
setPoint(int value)
Allows you to select on which point the title of the axis section will be highlighted.
|
public AxisSectionHighlightAttributes()
public AxisSectionCondition getCondition()
Allows to highlight the Points/Series inside/outside the selected axis section
You may use this object to manipulate the conditions in which the AxisSectionHighlightAttributes applies
You can control wether you want to Highlight the Point/Series inside the AxisSection or to Highlight the Point/Series outside the AxisSection
To Highlight point/series outside the selected AxisSection:
AxisSection sect; sect = new AxisSection(((AxisSectionValue)0.0), ((AxisSectionValue)100.0), new java.awt.Color(255,0,0,255)); sect.getHighlight().setCondition(AxisSectionCondition.Outside); chart1.getAxisX().getSections().add(sect);
resetCondition
public void setCondition(AxisSectionCondition value)
Allows to highlight the Points/Series inside/outside the selected axis section
You may use this object to manipulate the conditions in which the AxisSectionHighlightAttributes applies
You can control wether you want to Highlight the Point/Series inside the AxisSection or to Highlight the Point/Series outside the AxisSection
To Highlight point/series outside the selected AxisSection:
AxisSection sect; sect = new AxisSection(((AxisSectionValue)0.0), ((AxisSectionValue)100.0), new java.awt.Color(255,0,0,255)); sect.getHighlight().setCondition(AxisSectionCondition.Outside); chart1.getAxisX().getSections().add(sect);
value
- resetCondition
public boolean isEnabled()
Gets or sets a value indicating whether the Axis Section highlighting feature will be enabled in the chart.
Setting this value to false will disable the Axis Section Highlighting feature.
To disable the AxisSectionHighlightAttributes feature:
AxisSection sect; sect = new AxisSection(((AxisSectionValue)0.0), ((AxisSectionValue)100.0), new java.awt.Color(255,0,0,255)); sect.getHighlight().setEnabled(false);
resetEnabled
public void setEnabled(boolean value)
Gets or sets a value indicating whether the Axis Section highlighting feature will be enabled in the chart.
Setting this value to false will disable the Axis Section Highlighting feature.
To disable the AxisSectionHighlightAttributes feature:
AxisSection sect; sect = new AxisSection(((AxisSectionValue)0.0), ((AxisSectionValue)100.0), new java.awt.Color(255,0,0,255)); sect.getHighlight().setEnabled(false);
value
- resetEnabled
public int getPoint()
Allows you to select on which point the title of the axis section will be highlighted.
To highlight the Axis Section title when hovering on the point 6 of the X-Axis:
AxisSection section; section = new AxisSection(((AxisSectionValue)20.0), ((AxisSectionValue)90.0), new java.awt.Color(176,224,230,255)); section.getTitle().setText("Section Title"); section.getTitle().setAlignment(StringAlignment.NEAR); section.getHighlight().setPoint(5); chart1.getAxisY().getSections().add(section);
resetPoint
public void setPoint(int value)
Allows you to select on which point the title of the axis section will be highlighted.
To highlight the Axis Section title when hovering on the point 6 of the X-Axis:
AxisSection section; section = new AxisSection(((AxisSectionValue)20.0), ((AxisSectionValue)90.0), new java.awt.Color(176,224,230,255)); section.getTitle().setText("Section Title"); section.getTitle().setAlignment(StringAlignment.NEAR); section.getHighlight().setPoint(5); chart1.getAxisY().getSections().add(section);
value
- resetPoint
public void resetCondition()
setCondition
public void resetEnabled()
isEnabled
public void resetPoint()
setPoint
2014 Software FX, Inc. All Rights Reserved. Chart FX is a registered trademark of Software FX, Inc
All other names are trademarks or registered trademarks of their respective owners.