public final class ConditionalHighlightAttributes
extends java.lang.Object
Provides access to the ConditionalHighlightAttributes object.
After a CustomGridline is created, this object can be used to set which series or point will highlight and on what condition.
Highlighting is triggered by placing the mouse on the CustomGridLine.
Constructor and Description |
---|
ConditionalHighlightAttributes()
Constructs a newly allocated ConditionalHighlightAttributes object
|
Modifier and Type | Method and Description |
---|---|
HighlightCondition |
getCondition()
Sets the condition to highlight points in the chart relative to the value of the CustomGridLine.
|
int |
getPoint()
Sets a specific point to be highlighted by the CustomGridLine
|
void |
resetCondition()
Set the property Condition to its default value.
|
void |
resetPoint()
Set the property Point to its default value.
|
void |
setCondition(HighlightCondition value)
Sets the condition to highlight points in the chart relative to the value of the CustomGridLine.
|
void |
setPoint(int value)
Sets a specific point to be highlighted by the CustomGridLine
|
public ConditionalHighlightAttributes()
public HighlightCondition getCondition()
Sets the condition to highlight points in the chart relative to the value of the CustomGridLine.
You can use this method to set whether the point above or below the line will be highlighted.
This method can also be used to dim all points in the chart when highlighting the CustomGridLine
To Highlight all points below the CustomGridLine:
CustomGridLine myLine; myLine = new CustomGridLine(); myLine.setValue(60); myLine.setShowLine(true); chart1.getAxisY().getCustomGridLines().add(myLine); ConditionalHighlightAttributes hCustomGridAttr; hCustomGridAttr = chart1.getAxisY().getCustomGridLines().get(0).getHighlight(); hCustomGridAttr.setCondition(highlightCondition.LESS_THAN);
resetCondition
public void setCondition(HighlightCondition value)
Sets the condition to highlight points in the chart relative to the value of the CustomGridLine.
You can use this method to set whether the point above or below the line will be highlighted.
This method can also be used to dim all points in the chart when highlighting the CustomGridLine
To Highlight all points below the CustomGridLine:
CustomGridLine myLine; myLine = new CustomGridLine(); myLine.setValue(60); myLine.setShowLine(true); chart1.getAxisY().getCustomGridLines().add(myLine); ConditionalHighlightAttributes hCustomGridAttr; hCustomGridAttr = chart1.getAxisY().getCustomGridLines().get(0).getHighlight(); hCustomGridAttr.setCondition(highlightCondition.LESS_THAN);
value
- resetCondition
public int getPoint()
Sets a specific point to be highlighted by the CustomGridLine
You can use this method by itself to highlight the point in every series.
To Highlight point 2 in every series when the mouse is placed on the CustomGridLine :
CustomGridLine myLine; myLine = new CustomGridLine(); myLine.setValue(60); myLine.setShowLine(true); chart1.getAxisY().getCustomGridLines().add(myLine); ConditionalHighlightAttributes hCustomGridAttr; hCustomGridAttr = chart1.getAxisY().getCustomGridLines().get(0).getHighlight(); hCustomGridAttr.setPoint(2);
resetPoint
public void setPoint(int value)
Sets a specific point to be highlighted by the CustomGridLine
You can use this method by itself to highlight the point in every series.
To Highlight point 2 in every series when the mouse is placed on the CustomGridLine :
CustomGridLine myLine; myLine = new CustomGridLine(); myLine.setValue(60); myLine.setShowLine(true); chart1.getAxisY().getCustomGridLines().add(myLine); ConditionalHighlightAttributes hCustomGridAttr; hCustomGridAttr = chart1.getAxisY().getCustomGridLines().get(0).getHighlight(); hCustomGridAttr.setPoint(2);
value
- resetPoint
public void resetCondition()
setCondition
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.