public class DisplayHelper
extends java.lang.Object
Constructor and Description |
---|
DisplayHelper() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getDisplayTextForAbstractActualGoodFlow(AbstractActualGoodFlow abstractActualGoodFlow,
boolean allowNull)
Returns the display text for an AbstractActualGoodFlow.
|
static java.lang.String |
getDisplayTextForAbstractActualGoodFlow(AbstractActualGoodFlow abstractActualGoodFlow,
boolean allowNull,
boolean returnUnitOnly)
Returns the display text for an AbstractActualGoodFlow.
|
static java.lang.String |
getDisplayTextForAbstractActualGoodFlow(AbstractActualGoodFlow abstractActualGoodFlow,
boolean allowNull,
java.lang.Integer roundPrecision)
Returns the display text for an AbstractActualGoodFlow.
|
static java.lang.String |
getDisplayTextForAbstractActualGoodFlow(AbstractActualGoodFlow abstractActualGoodFlow,
boolean allowNull,
java.lang.Integer roundPrecision,
boolean returnUnitOnly)
Returns the display text for an AbstractActualGoodFlow.
|
static java.lang.String |
getDisplayTextForAbstractDuration(AbstractDuration abstractDuration,
boolean allowNull)
Returns the display text for an AbstractDuration.
|
static java.lang.String |
getDisplayTextForAbstractEnergyFlowInWatt(AbstractEnergyFlowInWatt abstractEnergyFlowInWatt,
boolean allowNull)
Returns the display text for an AbstractEnergyFlowInWatt.
|
static java.lang.String |
getDisplayTextForAbstractEnergyFlowInWatt(AbstractEnergyFlowInWatt abstractEnergyFlowInWatt,
boolean allowNull,
java.lang.Integer roundPrecision)
Returns the display text for an AbstractEnergyFlowInWatt.
|
static java.lang.String |
getDisplayTextForAmount(double amountValue,
java.lang.String unit)
Returns the display text for the specified amount.
|
static java.lang.String |
getDisplayTextForAmount(double amountValue,
java.lang.String unit,
java.lang.Integer roundPrecision)
Returns the display text for the specified amount.
|
static java.lang.String |
getDisplayTextForEnergyAmount(EnergyAmount energyAmount)
Returns the display text for a specified
EnergyAmount . |
static java.lang.String |
getDisplayTextForEnergyAmount(EnergyAmount energyAmount,
java.lang.Integer roundPrecision)
Returns the display text for a specified
EnergyAmount . |
static java.lang.String |
getDisplayTextForEnergyUnitFactorPrefixSI(EnergyUnitFactorPrefixSI siPrefixforWatt)
Returns the text for a SI-Prefix that can be used e.g. for energy flows.
|
static java.lang.String |
getDisplayTextForStateDuration(State state)
Returns the display text for a specified state duration.
|
static java.lang.String |
getDisplayTextForSystemVariableGradient(SystemVariableDefinition sysVarDef)
Returns the display text for a gradient of a SystemVariableDefinition.
|
static java.lang.String |
getDisplayTextForTimeUnit(TimeUnit timeUnit)
Returns the display text for the specified TimeUnit.
|
static java.lang.String |
getDisplayTextForVariableState(VariableState variableState)
Returns the display text for
VariableState that can be either a FixedVariable
or a RangeVariable and one of their sub classes. |
public static java.lang.String getDisplayTextForTimeUnit(TimeUnit timeUnit)
timeUnit
- the TimeUnitpublic static java.lang.String getDisplayTextForEnergyUnitFactorPrefixSI(EnergyUnitFactorPrefixSI siPrefixforWatt)
siPrefixforWatt
- the EnergyUnitFactorPrefixSIpublic static java.lang.String getDisplayTextForAbstractDuration(AbstractDuration abstractDuration, boolean allowNull)
abstractDuration
- the abstract durationallowNull
- set true if null is allowedpublic static java.lang.String getDisplayTextForStateDuration(State state)
state
- the statepublic static java.lang.String getDisplayTextForAbstractEnergyFlowInWatt(AbstractEnergyFlowInWatt abstractEnergyFlowInWatt, boolean allowNull)
abstractEnergyFlowInWatt
- the abstract EnergyFlowInWattallowNull
- set true if null is allowedpublic static java.lang.String getDisplayTextForAbstractEnergyFlowInWatt(AbstractEnergyFlowInWatt abstractEnergyFlowInWatt, boolean allowNull, java.lang.Integer roundPrecision)
abstractEnergyFlowInWatt
- the abstract EnergyFlowInWattallowNull
- the allow nullroundPrecision
- the round precisionpublic static java.lang.String getDisplayTextForAbstractActualGoodFlow(AbstractActualGoodFlow abstractActualGoodFlow, boolean allowNull)
abstractActualGoodFlow
- the abstract actual good flowallowNull
- set true if null is allowedpublic static java.lang.String getDisplayTextForAbstractActualGoodFlow(AbstractActualGoodFlow abstractActualGoodFlow, boolean allowNull, boolean returnUnitOnly)
abstractActualGoodFlow
- the abstract actual good flowallowNull
- set true if null is allowedreturnUnitOnly
- set true, if only the unit should be returnedpublic static java.lang.String getDisplayTextForAbstractActualGoodFlow(AbstractActualGoodFlow abstractActualGoodFlow, boolean allowNull, java.lang.Integer roundPrecision)
abstractActualGoodFlow
- the abstract actual good flowallowNull
- the allow nullroundPrecision
- the round precisionpublic static java.lang.String getDisplayTextForAbstractActualGoodFlow(AbstractActualGoodFlow abstractActualGoodFlow, boolean allowNull, java.lang.Integer roundPrecision, boolean returnUnitOnly)
abstractActualGoodFlow
- the abstract actual good flowallowNull
- the allow nullroundPrecision
- the round precisionreturnUnitOnly
- set true, if only the unit should be returnedpublic static java.lang.String getDisplayTextForEnergyAmount(EnergyAmount energyAmount)
EnergyAmount
.energyAmount
- the energy amountpublic static java.lang.String getDisplayTextForEnergyAmount(EnergyAmount energyAmount, java.lang.Integer roundPrecision)
EnergyAmount
.energyAmount
- the energy amountroundPrecision
- the round precisionpublic static java.lang.String getDisplayTextForAmount(double amountValue, java.lang.String unit)
amountValue
- the amount valueunit
- the unitpublic static java.lang.String getDisplayTextForAmount(double amountValue, java.lang.String unit, java.lang.Integer roundPrecision)
amountValue
- the amount valueunit
- the unitroundPrecision
- the round precisionpublic static java.lang.String getDisplayTextForVariableState(VariableState variableState)
VariableState
that can be either a FixedVariable
or a RangeVariable
and one of their sub classes.variableState
- the variable statepublic static java.lang.String getDisplayTextForSystemVariableGradient(SystemVariableDefinition sysVarDef)
sysVarDef
- the SystemVariableDefinition