public class AxisCollection extends com.scichart.core.observable.ObservableCollection<IAxis>
IAxis
and allows getting of axis by IdConstructor and Description |
---|
AxisCollection()
Initializes a new instance of
AxisCollection class |
AxisCollection(java.util.Collection<? extends IAxis> collection)
Initializes a new instance of
AxisCollection class |
Modifier and Type | Method and Description |
---|---|
IAxis |
getAxisById(java.lang.String id)
Gets the axis specified by id if it exists, otherwise returns null
|
IAxis |
getAxisById(java.lang.String id,
boolean assertAxisExists)
Gets the axis specified by id if it exists, otherwise returns null
|
IAxis |
getDefault()
Gets the default axis, which is equal to the axis with the
AxisBase.DEFAULT_AXIS_ID , else null |
protected IAxis |
getPrimaryAxis()
Gets the primary axis in the collection.
|
protected boolean |
hasPrimaryAxis()
Gets the value indicating whether this collection has primary axis
|
add, add, addAll, addAll, addObserver, clear, remove, remove, removeAll, removeObserver, removeRange, retainAll, set
clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeIf, replaceAll, size, sort, spliterator, subList, toArray, toArray, trimToSize
public AxisCollection()
AxisCollection
classpublic AxisCollection(java.util.Collection<? extends IAxis> collection)
AxisCollection
classcollection
- The collections with items to addprotected final IAxis getPrimaryAxis()
IAxis.getIsPrimaryAxis()
set to true, or null if none exists.protected final boolean hasPrimaryAxis()
IAxis.getIsPrimaryAxis()
set to truepublic final IAxis getDefault()
AxisBase.DEFAULT_AXIS_ID
, else nullpublic IAxis getAxisById(java.lang.String id)
id
- The axis idpublic IAxis getAxisById(java.lang.String id, boolean assertAxisExists)
id
- The axis idassertAxisExists
- If set to true assert and throw if the axis does not exist