axisBinding Class
Constructor
axisBinding
()
Item Index
Methods
- addAxis
- findByIdOrCreateNew static
- forgetAllBindings static
- getInstanceById static
- removeAxis
- setDataRange
- sync
- syncAllBindings static
Methods
findByIdOrCreateNew
-
id
Parameters:
-
id
Object
forgetAllBindings
()
static
getInstanceById
-
id
Parameters:
-
id
Object
setDataRange
-
initiatingAxis
-
min
-
max
-
dispatch
Parameters:
-
initiatingAxis
Axis -
min
Number | DataValue -
max
Number | DataValue -
dispatch
Boolean
sync
()
Boolean
Force all the axes in this binding to sync up with each other, if possible.
This is done by looking for an axis in this binding which has its dataMin and dataMax values set, and then calling its setDataRange() method with those values. The main purpose of this method is to facilitate the initial setting of dataMin/dataMax values for axes in a binding that do not already have dataMin/dataMax values set; this forces them to be set based on the binding, as determined by another axis in the binding.
Note that this method is NOT the normal way for bound axes to interact with each other once initialization is complete; that is done via the axes' own setDataRange() method.
Returns:
a value indicating whether the sync was done; this will be true if and only if there is at least one axis in the binding having both its dataMin and dataMax values set.