|
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.Condition
public class Condition
Provides access to the Condition object.
The supported members of the Condition
Class
allow you to customize the conditions for a ConditionalAttributes
. This includes the range for a data value to meet the requirements for the ConditionalAttribute, if the ConditionalAttribute will be active, etc.
Constructor Summary | |
---|---|
Condition()
|
Method Summary | |
---|---|
boolean |
evaluate(double value)
Returns a boolean indicating whether or not the configured condition is met for a specified value. |
DataElement |
getDataElement()
Gets the DataElement. |
double |
getFrom()
Gets the From. |
double |
getTo()
Gets the To. |
boolean |
isActive()
Gets the Active. |
boolean |
isFromOpen()
Gets the FromOpen. |
boolean |
isInverse()
Gets the Inverse. |
boolean |
isToOpen()
Gets the ToOpen. |
void |
setActive(boolean value)
A boolean property indicating whether the specified ConditionalAttribute is enabled or disabled. |
void |
setDataElement(DataElement value)
Sets the data value that the specified ConditionalAttribute will evaluate. |
void |
setFrom(double value)
Represents a value indicating the beginning value of the conditional range for a ConditionalAttributes object. |
void |
setFromOpen(boolean value)
A boolean indicating whether or not to include the configured setFrom(double) value in the range. |
void |
setInverse(boolean value)
Represents a value indicating whether to reverse the configured setTo(double) and setFrom(double) attributes for a selected ConditionalAttributes object. |
void |
setTo(double value)
Represents a value indicating the ending value of the conditional range for a selected ConditionalAttributes object. |
void |
setToOpen(boolean value)
A boolean value indicating whether or not to include the configured setTo(double) value in the range. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Condition()
Method Detail |
---|
public boolean evaluate(double value)
Returns a boolean indicating whether or not the configured condition is met for a specified value.
value
- Value to Evaluate.setFrom(double)
,
setFromOpen(boolean)
,
setTo(double)
,
setToOpen(boolean)
,
setInverse(boolean)
,
setDataElement(com.softwarefx.chartfx.server.DataElement)
,
ConditionalAttributes
public DataElement getDataElement()
Gets the DataElement. For more detail see setDataElement(com.softwarefx.chartfx.server.DataElement)
.
public double getFrom()
Gets the From. For more detail see setFrom(double)
.
public double getTo()
Gets the To. For more detail see setTo(double)
.
public boolean isActive()
Gets the Active. For more detail see setActive(boolean)
.
public boolean isFromOpen()
Gets the FromOpen. For more detail see setFromOpen(boolean)
.
public boolean isInverse()
Gets the Inverse. For more detail see setInverse(boolean)
.
public boolean isToOpen()
Gets the ToOpen. For more detail see setToOpen(boolean)
.
public void setActive(boolean value)
A boolean property indicating whether the specified ConditionalAttribute is enabled or disabled.
setFrom(double)
,
setFromOpen(boolean)
,
setTo(double)
,
setToOpen(boolean)
,
setInverse(boolean)
,
setDataElement(com.softwarefx.chartfx.server.DataElement)
,
evaluate(double)
,
ConditionalAttributes
public void setDataElement(DataElement value)
Sets the data value that the specified ConditionalAttribute will evaluate.
By default, the YValue for the chart is evaluated for a condition. You can use this property to select to evaluate the IniValue or XValue for each point contained in the chart.
setActive(boolean)
,
setFrom(double)
,
setFromOpen(boolean)
,
setTo(double)
,
setToOpen(boolean)
,
setInverse(boolean)
,
evaluate(double)
,
ConditionalAttributes
public void setFrom(double value)
Represents a value indicating the beginning value of the conditional range for a ConditionalAttributes
object.
By default, the From value is not included. To include it, set the setFromOpen(boolean)
property to true.
setFromOpen(boolean)
,
setTo(double)
,
setToOpen(boolean)
,
setInverse(boolean)
,
setDataElement(com.softwarefx.chartfx.server.DataElement)
,
evaluate(double)
,
ConditionalAttributes
public void setFromOpen(boolean value)
A boolean indicating whether or not to include the configured setFrom(double)
value in the range.
The default value is false.
setFrom(double)
,
setTo(double)
,
setToOpen(boolean)
,
setDataElement(com.softwarefx.chartfx.server.DataElement)
,
setInverse(boolean)
,
evaluate(double)
,
ConditionalAttributes
public void setInverse(boolean value)
Represents a value indicating whether to reverse the configured setTo(double)
and setFrom(double)
attributes for a selected ConditionalAttributes object.
setActive(boolean)
,
setDataElement(com.softwarefx.chartfx.server.DataElement)
,
setTo(double)
,
setToOpen(boolean)
,
setFrom(double)
,
setFromOpen(boolean)
,
evaluate(double)
,
ConditionalAttributes
public void setTo(double value)
Represents a value indicating the ending value of the conditional range for a selected ConditionalAttributes
object.
By default, the To value is not included. To include it, set the setToOpen(boolean)
property to true.
setFrom(double)
,
setFromOpen(boolean)
,
setToOpen(boolean)
,
setInverse(boolean)
,
setDataElement(com.softwarefx.chartfx.server.DataElement)
,
evaluate(double)
,
ConditionalAttributes
public void setToOpen(boolean value)
A boolean value indicating whether or not to include the configured setTo(double)
value in the range.
setFrom(double)
,
setFromOpen(boolean)
,
setTo(double)
,
setInverse(boolean)
,
setDataElement(com.softwarefx.chartfx.server.DataElement)
,
evaluate(double)
,
ConditionalAttributes
|
http://www.softwarefx.com | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |