public final class RangeCondition extends RangeConditionBase
Provides access to the RangeCondition object.
The supported members of the RangeCondition class allow you to customize the range setCondition 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 and Description |
|---|
RangeCondition()
Constructs a newly allocated RangeCondition object
|
RangeCondition(double from,
double to)
Constructs a newly allocated RangeCondition object
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluate(double value)
Description goes here
|
DataUnit |
getFrom()
Gets or sets a value indicating the beginning value of the conditional range for a selected RangeCondition object.
|
java.util.Date |
getFromDateTime()
Gets or sets a value indicating the beginning value of the conditional range for a selected RangeCondition object.
|
double |
getFromDouble()
Gets or sets a value indicating the beginning value of the conditional range for a selected RangeCondition object.
|
TimeSpan |
getFromTimeSpan()
Gets or sets a value indicating the beginning value of the conditional range for a selected RangeCondition object.
|
DataUnit |
getTo()
Gets or sets a value indicating the ending value of the conditional range for a selected RangeCondition object.
|
java.util.Date |
getToDateTime()
Gets or sets a value indicating the ending value of the conditional range for a selected RangeCondition object.
|
double |
getToDouble()
Gets or sets a value indicating the ending value of the conditional range for a selected RangeCondition object.
|
TimeSpan |
getToTimeSpan()
Gets or sets a value indicating the ending value of the conditional range for a selected RangeCondition object.
|
boolean |
isFromOpen()
Gets or sets a value indicating whether or not to include the configured From value in the RangeCondition.
|
boolean |
isToOpen()
Gets or sets a value indicating whether or not to include the configured To value in the RangeCondition.
|
void |
resetFrom()
Set the property From to its default value.
|
void |
resetFromOpen()
Set the property FromOpen to its default value.
|
void |
resetTo()
Set the property To to its default value.
|
void |
resetToOpen()
Set the property ToOpen to its default value.
|
void |
setFrom(DataUnit value)
Gets or sets a value indicating the beginning value of the conditional range for a selected RangeCondition object.
|
void |
setFrom(java.util.Date value)
Gets or sets a value indicating the beginning value of the conditional range for a selected RangeCondition object.
|
void |
setFrom(double value)
Gets or sets a value indicating the beginning value of the conditional range for a selected RangeCondition object.
|
void |
setFrom(TimeSpan value)
Gets or sets a value indicating the beginning value of the conditional range for a selected RangeCondition object.
|
void |
setFromOpen(boolean value)
Gets or sets a value indicating whether or not to include the configured From value in the RangeCondition.
|
void |
setTo(DataUnit value)
Gets or sets a value indicating the ending value of the conditional range for a selected RangeCondition object.
|
void |
setTo(java.util.Date value)
Gets or sets a value indicating the ending value of the conditional range for a selected RangeCondition object.
|
void |
setTo(double value)
Gets or sets a value indicating the ending value of the conditional range for a selected RangeCondition object.
|
void |
setTo(TimeSpan value)
Gets or sets a value indicating the ending value of the conditional range for a selected RangeCondition object.
|
void |
setToOpen(boolean value)
Gets or sets a value indicating whether or not to include the configured To value in the RangeCondition.
|
getDataElement, getDataField, isActive, isInverse, resetActive, resetDataElement, resetInverse, setActive, setDataElement, setDataField, setInversepublic RangeCondition()
public RangeCondition(double from,
double to)
from - to - public TimeSpan getFromTimeSpan()
Gets or sets a value indicating the beginning value of the conditional range for a selected RangeCondition object.
The setFrom method gets or sets a value indicating the beginning value of the conditional range for a selected RangeCondition object.
The isFromOpen method is a boolean indicating whether or not to include the configured From value in the range.
To set 100 as the From attribute:
RangeCondition RangeCond; RangeCond = new RangeCondition(); RangeCond.setFrom(new DataUnit(100.0)); ConditionalAttributes ca; ca = new ConditionalAttributes(); ca.setCondition(RangeCond); chart1.getConditionalAttributes().add((ca));
resetFrompublic void setFrom(TimeSpan value)
Gets or sets a value indicating the beginning value of the conditional range for a selected RangeCondition object.
The setFrom method gets or sets a value indicating the beginning value of the conditional range for a selected RangeCondition object.
The isFromOpen method is a boolean indicating whether or not to include the configured From value in the range.
To set 100 as the From attribute:
RangeCondition RangeCond; RangeCond = new RangeCondition(); RangeCond.setFrom(new DataUnit(100.0)); ConditionalAttributes ca; ca = new ConditionalAttributes(); ca.setCondition(RangeCond); chart1.getConditionalAttributes().add((ca));
value - resetFrompublic DataUnit getFrom()
Gets or sets a value indicating the beginning value of the conditional range for a selected RangeCondition object.
The setFrom method gets or sets a value indicating the beginning value of the conditional range for a selected RangeCondition object.
The isFromOpen method is a boolean indicating whether or not to include the configured From value in the range.
To set 100 as the From attribute:
RangeCondition RangeCond; RangeCond = new RangeCondition(); RangeCond.setFrom(new DataUnit(100.0)); ConditionalAttributes ca; ca = new ConditionalAttributes(); ca.setCondition(RangeCond); chart1.getConditionalAttributes().add((ca));
resetFrompublic void setFrom(DataUnit value)
Gets or sets a value indicating the beginning value of the conditional range for a selected RangeCondition object.
The setFrom method gets or sets a value indicating the beginning value of the conditional range for a selected RangeCondition object.
The isFromOpen method is a boolean indicating whether or not to include the configured From value in the range.
To set 100 as the From attribute:
RangeCondition RangeCond; RangeCond = new RangeCondition(); RangeCond.setFrom(new DataUnit(100.0)); ConditionalAttributes ca; ca = new ConditionalAttributes(); ca.setCondition(RangeCond); chart1.getConditionalAttributes().add((ca));
value - resetFrompublic double getFromDouble()
Gets or sets a value indicating the beginning value of the conditional range for a selected RangeCondition object.
The setFrom method gets or sets a value indicating the beginning value of the conditional range for a selected RangeCondition object.
The isFromOpen method is a boolean indicating whether or not to include the configured From value in the range.
To set 100 as the From attribute:
RangeCondition RangeCond; RangeCond = new RangeCondition(); RangeCond.setFrom(new DataUnit(100.0)); ConditionalAttributes ca; ca = new ConditionalAttributes(); ca.setCondition(RangeCond); chart1.getConditionalAttributes().add((ca));
resetFrompublic void setFrom(double value)
Gets or sets a value indicating the beginning value of the conditional range for a selected RangeCondition object.
The setFrom method gets or sets a value indicating the beginning value of the conditional range for a selected RangeCondition object.
The isFromOpen method is a boolean indicating whether or not to include the configured From value in the range.
To set 100 as the From attribute:
RangeCondition RangeCond; RangeCond = new RangeCondition(); RangeCond.setFrom(new DataUnit(100.0)); ConditionalAttributes ca; ca = new ConditionalAttributes(); ca.setCondition(RangeCond); chart1.getConditionalAttributes().add((ca));
value - resetFrompublic java.util.Date getFromDateTime()
Gets or sets a value indicating the beginning value of the conditional range for a selected RangeCondition object.
The setFrom method gets or sets a value indicating the beginning value of the conditional range for a selected RangeCondition object.
The isFromOpen method is a boolean indicating whether or not to include the configured From value in the range.
To set 100 as the From attribute:
RangeCondition RangeCond; RangeCond = new RangeCondition(); RangeCond.setFrom(new DataUnit(100.0)); ConditionalAttributes ca; ca = new ConditionalAttributes(); ca.setCondition(RangeCond); chart1.getConditionalAttributes().add((ca));
resetFrompublic void setFrom(java.util.Date value)
Gets or sets a value indicating the beginning value of the conditional range for a selected RangeCondition object.
The setFrom method gets or sets a value indicating the beginning value of the conditional range for a selected RangeCondition object.
The isFromOpen method is a boolean indicating whether or not to include the configured From value in the range.
To set 100 as the From attribute:
RangeCondition RangeCond; RangeCond = new RangeCondition(); RangeCond.setFrom(new DataUnit(100.0)); ConditionalAttributes ca; ca = new ConditionalAttributes(); ca.setCondition(RangeCond); chart1.getConditionalAttributes().add((ca));
value - resetFrompublic boolean isFromOpen()
RangeCondition RangeCond; RangeCond = new RangeCondition(); RangeCond.setFromOpen(true);
resetFromOpenpublic void setFromOpen(boolean value)
RangeCondition RangeCond; RangeCond = new RangeCondition(); RangeCond.setFromOpen(true);
value - resetFromOpenpublic TimeSpan getToTimeSpan()
Gets or sets a value indicating the ending value of the conditional range for a selected RangeCondition object.
The To method gets or sets a value indicating the ending value of the conditional range for a selected RangeCondition object.
The isToOpen method is a boolean indicating whether or not to include the configured To value in the range.
To set 150 as the To attribute:
RangeCondition RangeCond; RangeCond = new RangeCondition(); RangeCond.setTo(new DataUnit(150.0)); ConditionalAttributes ca; ca = new ConditionalAttributes(); ca.setCondition(RangeCond); chart1.getConditionalAttributes().add((ca));
resetTopublic void setTo(TimeSpan value)
Gets or sets a value indicating the ending value of the conditional range for a selected RangeCondition object.
The To method gets or sets a value indicating the ending value of the conditional range for a selected RangeCondition object.
The isToOpen method is a boolean indicating whether or not to include the configured To value in the range.
To set 150 as the To attribute:
RangeCondition RangeCond; RangeCond = new RangeCondition(); RangeCond.setTo(new DataUnit(150.0)); ConditionalAttributes ca; ca = new ConditionalAttributes(); ca.setCondition(RangeCond); chart1.getConditionalAttributes().add((ca));
value - resetTopublic DataUnit getTo()
Gets or sets a value indicating the ending value of the conditional range for a selected RangeCondition object.
The To method gets or sets a value indicating the ending value of the conditional range for a selected RangeCondition object.
The isToOpen method is a boolean indicating whether or not to include the configured To value in the range.
To set 150 as the To attribute:
RangeCondition RangeCond; RangeCond = new RangeCondition(); RangeCond.setTo(new DataUnit(150.0)); ConditionalAttributes ca; ca = new ConditionalAttributes(); ca.setCondition(RangeCond); chart1.getConditionalAttributes().add((ca));
resetTopublic void setTo(DataUnit value)
Gets or sets a value indicating the ending value of the conditional range for a selected RangeCondition object.
The To method gets or sets a value indicating the ending value of the conditional range for a selected RangeCondition object.
The isToOpen method is a boolean indicating whether or not to include the configured To value in the range.
To set 150 as the To attribute:
RangeCondition RangeCond; RangeCond = new RangeCondition(); RangeCond.setTo(new DataUnit(150.0)); ConditionalAttributes ca; ca = new ConditionalAttributes(); ca.setCondition(RangeCond); chart1.getConditionalAttributes().add((ca));
value - resetTopublic double getToDouble()
Gets or sets a value indicating the ending value of the conditional range for a selected RangeCondition object.
The To method gets or sets a value indicating the ending value of the conditional range for a selected RangeCondition object.
The isToOpen method is a boolean indicating whether or not to include the configured To value in the range.
To set 150 as the To attribute:
RangeCondition RangeCond; RangeCond = new RangeCondition(); RangeCond.setTo(new DataUnit(150.0)); ConditionalAttributes ca; ca = new ConditionalAttributes(); ca.setCondition(RangeCond); chart1.getConditionalAttributes().add((ca));
resetTopublic void setTo(double value)
Gets or sets a value indicating the ending value of the conditional range for a selected RangeCondition object.
The To method gets or sets a value indicating the ending value of the conditional range for a selected RangeCondition object.
The isToOpen method is a boolean indicating whether or not to include the configured To value in the range.
To set 150 as the To attribute:
RangeCondition RangeCond; RangeCond = new RangeCondition(); RangeCond.setTo(new DataUnit(150.0)); ConditionalAttributes ca; ca = new ConditionalAttributes(); ca.setCondition(RangeCond); chart1.getConditionalAttributes().add((ca));
value - resetTopublic java.util.Date getToDateTime()
Gets or sets a value indicating the ending value of the conditional range for a selected RangeCondition object.
The To method gets or sets a value indicating the ending value of the conditional range for a selected RangeCondition object.
The isToOpen method is a boolean indicating whether or not to include the configured To value in the range.
To set 150 as the To attribute:
RangeCondition RangeCond; RangeCond = new RangeCondition(); RangeCond.setTo(new DataUnit(150.0)); ConditionalAttributes ca; ca = new ConditionalAttributes(); ca.setCondition(RangeCond); chart1.getConditionalAttributes().add((ca));
resetTopublic void setTo(java.util.Date value)
Gets or sets a value indicating the ending value of the conditional range for a selected RangeCondition object.
The To method gets or sets a value indicating the ending value of the conditional range for a selected RangeCondition object.
The isToOpen method is a boolean indicating whether or not to include the configured To value in the range.
To set 150 as the To attribute:
RangeCondition RangeCond; RangeCond = new RangeCondition(); RangeCond.setTo(new DataUnit(150.0)); ConditionalAttributes ca; ca = new ConditionalAttributes(); ca.setCondition(RangeCond); chart1.getConditionalAttributes().add((ca));
value - resetTopublic boolean isToOpen()
RangeCondition RangeCond; RangeCond = new RangeCondition(); RangeCond.setToOpen(false);
resetToOpenpublic void setToOpen(boolean value)
RangeCondition RangeCond; RangeCond = new RangeCondition(); RangeCond.setToOpen(false);
value - resetToOpenpublic boolean evaluate(double value)
public void resetFrom()
setFrompublic void resetFromOpen()
isFromOpenpublic void resetTo()
setTopublic void resetToOpen()
isToOpen2014 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.