Axis.prototype._label = null;
Axis.prototype._position = null;
+ Axis.prototype._stepSize = null;
Axis.prototype.create = function(obj) {
var s = new Axis();
s.setPosition(obj.position);
s.setLabel(obj.label);
+ s.setStepSize(obj.stepSize);
return s;
};
return this._position;
};
+ Axis.prototype.getStepSize = function() {
+ return this._stepSize;
+ };
+
Axis.prototype.setLabel = function(label) {
this._label = label || null;
};
this._position = position;
};
+ Axis.prototype.setStepSize = function(stepSize) {
+ if (typeof stepSize === 'undefined' || stepSize === null) {
+ stepSize = null;
+ } else if (isNaN(Number(stepSize))) {
+ throw new Error('Value for stepSize is not a number.');
+ } else {
+ stepSize = Number(stepSize);
+ }
+
+ this._stepSize = stepSize;
+ };
+
return Axis;
});
protected $label = null;
protected $position = self::POS_DEFAULT;
+ protected $stepsize = null;
public function __construct() {
}
return $this->position;
}
+ public function get_stepsize() {
+ return $this->stepsize;
+ }
+
public function jsonSerialize() {
return [
'label' => $this->label,
'position' => $this->position,
+ 'stepSize' => $this->stepsize,
];
}
return $this->position = $position;
}
+ public function set_stepsize($stepsize) {
+ return $this->stepsize = $stepsize;
+ }
+
}