public class ChartExtent extends Object
| Modifier and Type | Field and Description |
|---|---|
double |
DefaultTickCount |
Double |
Lower |
boolean |
LowerBoundIsZero |
boolean |
ShouldFormatAsDate |
Double |
Upper |
double |
WorldSpaceEnd |
double |
WorldSpaceStart |
| Constructor and Description |
|---|
ChartExtent() |
ChartExtent(boolean lowerBoundIsZero,
ArrayList<Number> args)
Number sequence-based constructor meant to yield a lower and an upper value.
|
ChartExtent(boolean lowerBoundIsZero,
boolean shouldFormatAsDate,
ArrayList<Number> args)
Number sequence-based constructor meant to yield a lower and an upper value.
|
ChartExtent(boolean lowerBoundIsZero,
Double[] args)
Double sequence-based constructor meant to yield a lower and an upper value.
|
ChartExtent(boolean lowerBoundIsZero,
Integer[] args)
Integer sequence-based constructor meant to yield a lower and an upper value.
|
ChartExtent(Double lower,
Double upper,
boolean lowerBoundIsZero)
Container for lower and upper double values.
|
ChartExtent(Double lower,
Double upper,
double worldSpaceStart,
double worldSpaceEnd) |
ChartExtent(Integer lower,
Integer upper,
boolean lowerBoundIsZero)
Integer to Double conversion.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getDefaultTickCount() |
double |
getDelta() |
Double[] |
getLinearSchedule()
Get the default linear scale, using the default tick count to subdivide this range and the world space range.
|
Double[] |
getLinearSchedule(boolean reverseTransformedDataOrder)
Get the default linear scale, using the default tick count to subdivide this range and the world space range.
|
Double[] |
getLinearScheduleGivenWorldSpaceValues(ArrayList<Double> worldSpaceValues,
boolean reverseTransformedDataOrder)
Use a series of world space values (like locations, specified in pixels), to calculate percentages to be used to obtain corresponding real values (in range of lower to upper).
|
double |
getLinearValueAtXGivenWorldSpaceValue(double worldSpaceValue)
Use a world space value (like a location, specified in pixels), to calculate a percentage to be used to obtain a corresponding real value (in range of lower to upper).
|
double |
getLinearValueAtXGivenWorldSpaceValue(double worldSpaceValue,
boolean reverseTransformedDataOrder)
Use a world space value (like a location, specified in pixels), to calculate a percentage to be used to obtain a corresponding real value (in range of lower to upper).
|
Double[] |
getLinearWorldSpaceScheduleGivenActualValues(ArrayList<Double> actualValues,
boolean reverseTransformedDataOrder)
Use a series of actual values (like raw data positions), to calculate percentages to be used to obtain corresponding world-space values.
|
double |
getLinearWorldSpaceValueAtXGivenActualValue(double actualValue)
Use an actual value (like a raw data position), to calculate a percentage to be used to obtain a corresponding world-space value.
|
double |
getLinearWorldSpaceValueAtXGivenActualValue(double actualValue,
boolean reverseTransformedDataOrder)
Use an actual value (like a raw data position), to calculate a percentage to be used to obtain a corresponding world-space value.
|
double |
getLower() |
Double |
getUpper() |
double |
getWorldSpaceDelta() |
ArrayList<Pair<Double,Double>> |
getWorldSpaceToActualValuePairsLinearSchedule() |
ArrayList<Pair<Double,Double>> |
getWorldSpaceToActualValuePairsLinearSchedule(boolean reverseTransformedDataOrder)
Get sets of data in the form Pair(world space value, actual value), representing the translation between the world space and actual values.
|
ArrayList<Double> |
getWorldSpaceValuesFromDefaultTickValue() |
void |
includeValue(Double value) |
boolean |
isValid() |
void |
setDefaultTickCount(double defaultTickCount) |
void |
setLower(Double lower) |
void |
setUpper(Double upper) |
void |
setWorldSpace(double start,
double end)
Set the context these values exist in.
|
public Double Lower
public Double Upper
public boolean LowerBoundIsZero
public double WorldSpaceStart
public double WorldSpaceEnd
public double DefaultTickCount
public boolean ShouldFormatAsDate
public ChartExtent()
public ChartExtent(Double lower, Double upper, boolean lowerBoundIsZero)
lower - upper - lowerBoundIsZero - public ChartExtent(Integer lower, Integer upper, boolean lowerBoundIsZero)
lower - upper - lowerBoundIsZero - public ChartExtent(boolean lowerBoundIsZero,
Double[] args)
args - public ChartExtent(boolean lowerBoundIsZero,
Integer[] args)
args - public ChartExtent(boolean lowerBoundIsZero,
ArrayList<Number> args)
args - public ChartExtent(boolean lowerBoundIsZero,
boolean shouldFormatAsDate,
ArrayList<Number> args)
args - public double getDefaultTickCount()
public void setDefaultTickCount(double defaultTickCount)
defaultTickCount - the defaultTickCount to setpublic double getLower()
public void setLower(Double lower)
lower - the lower to setpublic Double getUpper()
public void setUpper(Double upper)
upper - the upper to setpublic boolean isValid()
public void includeValue(Double value)
public void setWorldSpace(double start,
double end)
start - end - public ArrayList<Double> getWorldSpaceValuesFromDefaultTickValue()
public double getLinearValueAtXGivenWorldSpaceValue(double worldSpaceValue,
boolean reverseTransformedDataOrder)
worldSpaceValue - public double getLinearValueAtXGivenWorldSpaceValue(double worldSpaceValue)
worldSpaceValue - public Double[] getLinearSchedule(boolean reverseTransformedDataOrder)
reverseTransformedDataOrder - public Double[] getLinearSchedule()
public ArrayList<Pair<Double,Double>> getWorldSpaceToActualValuePairsLinearSchedule()
public ArrayList<Pair<Double,Double>> getWorldSpaceToActualValuePairsLinearSchedule(boolean reverseTransformedDataOrder)
reverseTransformedDataOrder - public Double[] getLinearScheduleGivenWorldSpaceValues(ArrayList<Double> worldSpaceValues, boolean reverseTransformedDataOrder)
worldSpaceValues - reverseTransformedDataOrder - public double getDelta()
public double getWorldSpaceDelta()
public double getLinearWorldSpaceValueAtXGivenActualValue(double actualValue)
actualValue - public double getLinearWorldSpaceValueAtXGivenActualValue(double actualValue,
boolean reverseTransformedDataOrder)
actualValue - public Double[] getLinearWorldSpaceScheduleGivenActualValues(ArrayList<Double> actualValues, boolean reverseTransformedDataOrder)
actualValues - reverseTransformedDataOrder - Copyright © 2017 OpenSource BIM. All rights reserved.