org.hackystat.telemetry.analyzer.evaluator
Class TelemetryChartObject.YAxis

java.lang.Object
  extended by org.hackystat.telemetry.analyzer.evaluator.TelemetryChartObject.YAxis
Enclosing class:
TelemetryChartObject

public static class TelemetryChartObject.YAxis
extends java.lang.Object

A Y-axis, consisting of a label, a boolean indicating if the Axis is an integer, and an optional lower bound and upper bound value.

Author:
(Cedric) Qin ZHANG

Constructor Summary
TelemetryChartObject.YAxis(java.lang.String label, boolean integerAxis, java.lang.Number lowerBound, java.lang.Number upperBound)
          Constructs this instance.
 
Method Summary
 boolean equals(java.lang.Object o)
          Tests equality of two objects.
 java.lang.String getLabel()
          Gets y-axis label.
 java.lang.Number getLowerBound()
          Gets lower bound in case y-axis is not auto-scaled.
 java.lang.Number getUpperBound()
          Gets upper bound in case y-axis is not auto-scaled.
 int hashCode()
          Computes hash code.
 boolean isAutoScaledAxis()
          Determine if y-axis is auto-scaled.
 boolean isIntegerAxis()
          Determines if y-axis is integer axis.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TelemetryChartObject.YAxis

public TelemetryChartObject.YAxis(java.lang.String label,
                                  boolean integerAxis,
                                  java.lang.Number lowerBound,
                                  java.lang.Number upperBound)
Constructs this instance.

Parameters:
label - Y-axis label.
integerAxis - True if y-axis is integer axis.
lowerBound - Y-axis lower bound, use null to enable y-axis autoscale.
upperBound - Y-axis upper bound, use null to enable y-axis autoscale.
Method Detail

getLabel

public java.lang.String getLabel()
Gets y-axis label.

Returns:
Y-axis label.

isIntegerAxis

public boolean isIntegerAxis()
Determines if y-axis is integer axis.

Returns:
True if y-axis is integer axis.

isAutoScaledAxis

public boolean isAutoScaledAxis()
Determine if y-axis is auto-scaled.

Returns:
True if it is auto-scaled.

getLowerBound

public java.lang.Number getLowerBound()
Gets lower bound in case y-axis is not auto-scaled.

Returns:
The lower bound.

getUpperBound

public java.lang.Number getUpperBound()
Gets upper bound in case y-axis is not auto-scaled.

Returns:
The upper bound.

equals

public boolean equals(java.lang.Object o)
Tests equality of two objects.

Overrides:
equals in class java.lang.Object
Parameters:
o - another object to be compared with this object.
Returns:
True if they are equal.

hashCode

public int hashCode()
Computes hash code.

Overrides:
hashCode in class java.lang.Object
Returns:
The hash code.