|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.telemetry.analyzer.language.ast.TelemetryDefinition
org.hackystat.telemetry.analyzer.language.ast.TelemetryChartYAxisDefinition
public class TelemetryChartYAxisDefinition
Y-axis information in telemetry chart definition.
Field Summary | |
---|---|
static java.lang.String |
NUMBER_TYPE_AUTO
Chart y-axis have auto-determined number type, either integer or double. |
static java.lang.String |
NUMBER_TYPE_DOUBLE
Chart y-axis should have double number. |
static java.lang.String |
NUMBER_TYPE_INTEGER
Chart y-axis should have integer numbers. |
Constructor Summary | |
---|---|
TelemetryChartYAxisDefinition(java.lang.String name,
Variable[] variables,
Expression labelParameter,
java.lang.String numberType,
java.lang.Number lowerBound,
java.lang.Number upperBound,
TextPosition textPosition)
Constructs the y-axis definition. |
Method Summary | |
---|---|
Expression |
getLabelParameter()
Gets the y-axis label. |
java.lang.Number |
getLowerBound()
Gets the lower bound of the axis. |
java.lang.String |
getNumberType()
Gets the y-axis number type. |
java.lang.Number |
getUpperBound()
Gets the upper bound of the axis. |
Variable[] |
getVariables()
Gets an array of variables used in the definition. |
boolean |
isAutoScale()
Determines whether the y-axis is auto-scales. |
Methods inherited from class org.hackystat.telemetry.analyzer.language.ast.TelemetryDefinition |
---|
getDefinitionString, getName, getTextPosition, setDefinitionString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String NUMBER_TYPE_INTEGER
public static final java.lang.String NUMBER_TYPE_DOUBLE
public static final java.lang.String NUMBER_TYPE_AUTO
Constructor Detail |
---|
public TelemetryChartYAxisDefinition(java.lang.String name, Variable[] variables, Expression labelParameter, java.lang.String numberType, java.lang.Number lowerBound, java.lang.Number upperBound, TextPosition textPosition) throws TelemetryLanguageException
name
- The name of this y-axis definition.variables
- The variables used in the definition. Variables are essentially holding
places so that real value can be swapped in later.
Null is valid if there is no variable used in this definition.labelParameter
- Either a Variable
or a StringConstant
for
y-axis label.numberType
- The axis number type. Use one of the constants in this class.lowerBound
- Y-axis lower bound. Null is valid iupperBound
- Y-axis upper bound.textPosition
- The text position of the definition string in the input.
TelemetryLanguageException
- If y-axis number type is unsupported,
or supplied lower and upper bounds are invalid.Method Detail |
---|
public Variable[] getVariables()
Varaible
objects. If there is no variable used,
then an empty array is returned.public Expression getLabelParameter()
Variable
or a StringConstant
for y-axis label.public java.lang.String getNumberType()
public boolean isAutoScale()
public java.lang.Number getLowerBound()
public java.lang.Number getUpperBound()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |