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, setInverse
public 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));
resetFrom
public 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
- resetFrom
public 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));
resetFrom
public 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
- resetFrom
public 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));
resetFrom
public 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
- resetFrom
public 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));
resetFrom
public 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
- resetFrom
public boolean isFromOpen()
RangeCondition RangeCond; RangeCond = new RangeCondition(); RangeCond.setFromOpen(true);
resetFromOpen
public void setFromOpen(boolean value)
RangeCondition RangeCond; RangeCond = new RangeCondition(); RangeCond.setFromOpen(true);
value
- resetFromOpen
public 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));
resetTo
public 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
- resetTo
public 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));
resetTo
public 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
- resetTo
public 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));
resetTo
public 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
- resetTo
public 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));
resetTo
public 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
- resetTo
public boolean isToOpen()
RangeCondition RangeCond; RangeCond = new RangeCondition(); RangeCond.setToOpen(false);
resetToOpen
public void setToOpen(boolean value)
RangeCondition RangeCond; RangeCond = new RangeCondition(); RangeCond.setToOpen(false);
value
- resetToOpen
public boolean evaluate(double value)
public void resetFrom()
setFrom
public void resetFromOpen()
isFromOpen
public void resetTo()
setTo
public void resetToOpen()
isToOpen
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.