public class CustomGridLineCondition extends Condition
Provides access to the CustomGridLineCondition object.
This object can be assigned to a ConditionalAttributes object in the chart. The value of each point in the chart is evaluated based on the conditions of each CustomGridLineCondition item. For more information regarding the configuration of the conditions, please see the Condition
object.
The conditional attributes must be defined before the Chart
is populated.
Constructor and Description |
---|
CustomGridLineCondition()
Constructs a newly allocated CustomGridLineCondition object
|
CustomGridLineCondition(CustomGridLine gridLine)
Constructs a newly allocated CustomGridLineCondition object
|
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(double value)
Description goes here
|
CustomGridLine |
getGridLine()
Allows you to set the CustomGridLine to be evaluated based on the conditions in which the ConditionalAttribute applies.
|
void |
setGridLine(CustomGridLine value)
Allows you to set the CustomGridLine to be evaluated based on the conditions in which the ConditionalAttribute applies.
|
getDataElement, getDataField, isActive, isInverse, resetActive, resetDataElement, resetInverse, setActive, setDataElement, setDataField, setInverse
public CustomGridLineCondition()
public CustomGridLineCondition(CustomGridLine gridLine)
gridLine
- public CustomGridLine getGridLine()
Allows you to set the CustomGridLine to be evaluated based on the conditions in which the ConditionalAttribute applies.
When using GridLineConditions, points that meet the conditions of a particular conditional attribute will be evaluated against the CustomGridLine and settings will be applied based on the condition. You may use this object to manipulate the conditions in which the ConditionalAttribute applies.
To Add a CustomGridLine condition that change chart datapoints color and Markershape methods, previous to the CustomGridLine Vertical position:
CustomGridLine CustomGridLine1; CustomGridLine1 = new CustomGridLine(((CustomGridLineValue)10.0), "Custom Grid Line"); CustomGridLineCondition condition; condition = new CustomGridLineCondition(); ConditionalAttributes attr; attr = new ConditionalAttributes(); condition.setActive(true); condition.setDataElement(DataElement.XValue); condition.setGridLine(CustomGridLine1); attr.setCondition(condition); attr.getCondition().setInverse(true); attr.setColor(new java.awt.Color(0,0,0,255)); attr.setMarkerShape(MarkerShape.CROSS); chart1.getAxisX().getCustomGridLines().add(CustomGridLine1);
public void setGridLine(CustomGridLine value)
Allows you to set the CustomGridLine to be evaluated based on the conditions in which the ConditionalAttribute applies.
When using GridLineConditions, points that meet the conditions of a particular conditional attribute will be evaluated against the CustomGridLine and settings will be applied based on the condition. You may use this object to manipulate the conditions in which the ConditionalAttribute applies.
To Add a CustomGridLine condition that change chart datapoints color and Markershape methods, previous to the CustomGridLine Vertical position:
CustomGridLine CustomGridLine1; CustomGridLine1 = new CustomGridLine(((CustomGridLineValue)10.0), "Custom Grid Line"); CustomGridLineCondition condition; condition = new CustomGridLineCondition(); ConditionalAttributes attr; attr = new ConditionalAttributes(); condition.setActive(true); condition.setDataElement(DataElement.XValue); condition.setGridLine(CustomGridLine1); attr.setCondition(condition); attr.getCondition().setInverse(true); attr.setColor(new java.awt.Color(0,0,0,255)); attr.setMarkerShape(MarkerShape.CROSS); chart1.getAxisX().getCustomGridLines().add(CustomGridLine1);
value
- 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.