|
Chart FX 7 for Java Server | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.softwarefx.chartfx.server.statistical.StudiesCollection
public class StudiesCollection
Provides access to the StudiesCollection object
This class is used to control the analysis studies applied to a statistical chart instance. Many of the supported class members are standard CollectionBase members allowing developers to add, remove, insert, clear, etc., studies to the Statistical Extension.
Constructor Summary | |
---|---|
StudiesCollection()
|
Method Summary | ||
---|---|---|
Study |
add(Analysis analysis)
Used to add a study or a group of studies to your statistical object. |
|
Study |
add(AnalysisMulti analysis)
Used to add a study or a group of studies to your statistical object. |
|
StudyFormula |
add(DistributionFormula distribution)
Used to add a study or a group of studies to your statistical object. |
|
boolean |
add(Study o)
Used to add a study or a group of studies to your statistical object. |
|
void |
add(StudyGroup group)
Used to add a study or a group of studies to your statistical object. |
|
StudyTest |
add(Test test)
Used to add a study or a group of studies to your statistical object. |
|
StudyTest |
add(TestMulti test)
Used to add a study or a group of studies to your statistical object. |
|
boolean |
addAll(Collection<? extends Study> c)
Adds all of the elements in the specified collection to the StudiesCollection collection. |
|
StudyCustom |
addTitle(String text)
Used to add a StudyCustom object to the Studies collection. |
|
void |
clear()
Removes all of the elements from this collection. |
|
boolean |
contains(Object o)
Determines whether the StudyCollection contains a specific element. |
|
boolean |
containsAll(Collection<?> c)
Returns true if the StudiesCollection collection contains all of the elements in the specified collection. |
|
void |
copyTo(Study[] array,
int index)
Copies the entire StudiesCollection to a compatible one-dimensional Array, starting at the specified index of the target array. |
|
Study |
find(StudyType studyType,
int id)
Returns a study object when located in the Studies Collection. |
|
Study |
get(int n)
Returns the element at the specified position in the StudiesCollection. |
|
int |
indexOf(Study obj)
Searches for the specified Object and returns the zero-based index of the first occurrence within the entire StudiesCollection. |
|
void |
insert(int index,
Study obj)
Inserts an element into the StudiesCollection at the specified index. |
|
boolean |
isEmpty()
Returns true if this collection contains no elements. |
|
Iterator<Study> |
iterator()
Returns an iterator over the elements in this collection. |
|
boolean |
remove(Object o)
Removes the first occurrence of a specific object from the Collection. |
|
boolean |
removeAll(Collection<?> c)
Removes all of the elements in the specified collection from the StudiesCollection collection. |
|
boolean |
retainAll(Collection<?> c)
Retains only the elements in the StudiesCollection collection that are contained in the specified collection. |
|
int |
size()
Returns the number of elements in this collection. |
|
Object[] |
toArray()
Returns an array containing all of the elements in this collection in proper sequence. |
|
|
toArray(T[] a)
Returns an array containing all of the elements in this collection in proper sequence. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Collection |
---|
equals, hashCode |
Constructor Detail |
---|
public StudiesCollection()
Method Detail |
---|
public Study add(Analysis analysis)
Used to add a study or a group of studies to your statistical object.
If Count already equals the capacity, the capacity of the list is doubled by automatically reallocating the internal array and copying the existing elements to the new array before the new element is added.
If Count is less than the capacity, this method is an O(1) operation. If the capacity needs to be increased to accommodate the new element, this method becomes an O(n) operation, where n is Count.
analysis
- Analysis study to add.StudiesCollection#getItem
,
addTitle(java.lang.String)
,
#setClear
,
contains(java.lang.Object)
,
copyTo(com.softwarefx.chartfx.server.statistical.Study[], int)
,
find(com.softwarefx.chartfx.server.statistical.StudyType, int)
,
insert(int, com.softwarefx.chartfx.server.statistical.Study)
,
remove(java.lang.Object)
public Study add(AnalysisMulti analysis)
Used to add a study or a group of studies to your statistical object.
If Count already equals the capacity, the capacity of the list is doubled by automatically reallocating the internal array and copying the existing elements to the new array before the new element is added.
If Count is less than the capacity, this method is an O(1) operation. If the capacity needs to be increased to accommodate the new element, this method becomes an O(n) operation, where n is Count.
analysis
- Analysis study to add.StudiesCollection#getItem
,
addTitle(java.lang.String)
,
#setClear
,
contains(java.lang.Object)
,
copyTo(com.softwarefx.chartfx.server.statistical.Study[], int)
,
find(com.softwarefx.chartfx.server.statistical.StudyType, int)
,
insert(int, com.softwarefx.chartfx.server.statistical.Study)
,
remove(java.lang.Object)
public StudyFormula add(DistributionFormula distribution)
Used to add a study or a group of studies to your statistical object.
If Count already equals the capacity, the capacity of the list is doubled by automatically reallocating the internal array and copying the existing elements to the new array before the new element is added.
If Count is less than the capacity, this method is an O(1) operation. If the capacity needs to be increased to accommodate the new element, this method becomes an O(n) operation, where n is Count.
distribution
- DistributionFormula to add.StudiesCollection#getItem
,
addTitle(java.lang.String)
,
#setClear
,
contains(java.lang.Object)
,
copyTo(com.softwarefx.chartfx.server.statistical.Study[], int)
,
find(com.softwarefx.chartfx.server.statistical.StudyType, int)
,
insert(int, com.softwarefx.chartfx.server.statistical.Study)
,
remove(java.lang.Object)
public boolean add(Study o)
Used to add a study or a group of studies to your statistical object.
If Count already equals the capacity, the capacity of the list is doubled by automatically reallocating the internal array and copying the existing elements to the new array before the new element is added.
If Count is less than the capacity, this method is an O(1) operation. If the capacity needs to be increased to accommodate the new element, this method becomes an O(n) operation, where n is Count.
add
in interface Collection<Study>
o
- StudiesCollection#getItem
,
addTitle(java.lang.String)
,
#setClear
,
contains(java.lang.Object)
,
copyTo(com.softwarefx.chartfx.server.statistical.Study[], int)
,
find(com.softwarefx.chartfx.server.statistical.StudyType, int)
,
insert(int, com.softwarefx.chartfx.server.statistical.Study)
,
remove(java.lang.Object)
public void add(StudyGroup group)
Used to add a study or a group of studies to your statistical object.
If Count already equals the capacity, the capacity of the list is doubled by automatically reallocating the internal array and copying the existing elements to the new array before the new element is added.
If Count is less than the capacity, this method is an O(1) operation. If the capacity needs to be increased to accommodate the new element, this method becomes an O(n) operation, where n is Count.
group
- StudyGroup to add.StudiesCollection#getItem
,
addTitle(java.lang.String)
,
#setClear
,
contains(java.lang.Object)
,
copyTo(com.softwarefx.chartfx.server.statistical.Study[], int)
,
find(com.softwarefx.chartfx.server.statistical.StudyType, int)
,
insert(int, com.softwarefx.chartfx.server.statistical.Study)
,
remove(java.lang.Object)
public StudyTest add(Test test)
Used to add a study or a group of studies to your statistical object.
If Count already equals the capacity, the capacity of the list is doubled by automatically reallocating the internal array and copying the existing elements to the new array before the new element is added.
If Count is less than the capacity, this method is an O(1) operation. If the capacity needs to be increased to accommodate the new element, this method becomes an O(n) operation, where n is Count.
test
- TestMulti to add.StudiesCollection#getItem
,
addTitle(java.lang.String)
,
#setClear
,
contains(java.lang.Object)
,
copyTo(com.softwarefx.chartfx.server.statistical.Study[], int)
,
find(com.softwarefx.chartfx.server.statistical.StudyType, int)
,
insert(int, com.softwarefx.chartfx.server.statistical.Study)
,
remove(java.lang.Object)
public StudyTest add(TestMulti test)
Used to add a study or a group of studies to your statistical object.
If Count already equals the capacity, the capacity of the list is doubled by automatically reallocating the internal array and copying the existing elements to the new array before the new element is added.
If Count is less than the capacity, this method is an O(1) operation. If the capacity needs to be increased to accommodate the new element, this method becomes an O(n) operation, where n is Count.
test
- TestMulti to add.StudiesCollection#getItem
,
addTitle(java.lang.String)
,
#setClear
,
contains(java.lang.Object)
,
copyTo(com.softwarefx.chartfx.server.statistical.Study[], int)
,
find(com.softwarefx.chartfx.server.statistical.StudyType, int)
,
insert(int, com.softwarefx.chartfx.server.statistical.Study)
,
remove(java.lang.Object)
public boolean addAll(Collection<? extends Study> c)
Adds all of the elements in the specified collection to the StudiesCollection collection.
addAll
in interface Collection<Study>
c
- Elements to be inserted into this collection.public StudyCustom addTitle(String text)
Used to add a StudyCustom object to the Studies collection.
The add(com.softwarefx.chartfx.server.statistical.Analysis)
Method is used to add other study types to the Studies Collection.
This method returns a StudyCustom object which may be customized using the members of the StudyCustom
class.
text
- Title for the StudyCustom object to add.StudiesCollection#getItem
,
add(com.softwarefx.chartfx.server.statistical.Analysis)
,
#setClear
,
contains(java.lang.Object)
,
copyTo(com.softwarefx.chartfx.server.statistical.Study[], int)
,
find(com.softwarefx.chartfx.server.statistical.StudyType, int)
,
insert(int, com.softwarefx.chartfx.server.statistical.Study)
,
remove(java.lang.Object)
,
StudyCustom
public void clear()
Removes all of the elements from this collection.
clear
in interface Collection<Study>
public boolean contains(Object o)
Determines whether the StudyCollection contains a specific element.
This method returns true if the CollectionBase contains the specified value; otherwise, false.
This method performs a linear search. On average, this is an O(n/2) operation, where n is Count. The longest search is an O(n) operation.
contains
in interface Collection<Study>
o
- StudiesCollection#getItem
,
add(com.softwarefx.chartfx.server.statistical.Analysis)
,
addTitle(java.lang.String)
,
copyTo(com.softwarefx.chartfx.server.statistical.Study[], int)
,
find(com.softwarefx.chartfx.server.statistical.StudyType, int)
,
insert(int, com.softwarefx.chartfx.server.statistical.Study)
,
remove(java.lang.Object)
public boolean containsAll(Collection<?> c)
Returns true if the StudiesCollection collection contains all of the elements in the specified collection.
containsAll
in interface Collection<Study>
c
- Collection to be checked for containment in this collection.public void copyTo(Study[] array, int index)
Copies the entire StudiesCollection to a compatible one-dimensional Array, starting at the specified index of the target array.
The specified array must be of a compatible type.
array
- The one-dimensional Array that is the destination of the elements copied from StudiesCollection. The Array must have zero-based indexing.index
- The zero-based index in array at which copying begins.StudiesCollection#getItem
,
add(com.softwarefx.chartfx.server.statistical.Analysis)
,
addTitle(java.lang.String)
,
contains(java.lang.Object)
,
find(com.softwarefx.chartfx.server.statistical.StudyType, int)
,
insert(int, com.softwarefx.chartfx.server.statistical.Study)
,
remove(java.lang.Object)
public Study find(StudyType studyType, int id)
Returns a study object when located in the Studies Collection.
The contains(java.lang.Object)
method allows you to determine if a selected study exists in a StudyCollection instance.
studyType
- Study to find.id
- Index to start search.StudiesCollection#getItem
,
add(com.softwarefx.chartfx.server.statistical.Analysis)
,
addTitle(java.lang.String)
,
#setClear
,
contains(java.lang.Object)
,
copyTo(com.softwarefx.chartfx.server.statistical.Study[], int)
,
find(com.softwarefx.chartfx.server.statistical.StudyType, int)
,
insert(int, com.softwarefx.chartfx.server.statistical.Study)
,
remove(java.lang.Object)
public Study get(int n)
Returns the element at the specified position in the StudiesCollection.
n
- Index of element to return.public int indexOf(Study obj)
Searches for the specified Object and returns the zero-based index of the first occurrence within the entire StudiesCollection.
This method performs a linear search. On average, this is an O(n/2) operation, where n is Count. The longest search is an O(n) operation.
obj
- Study to find.StudiesCollection#getItem
,
add(com.softwarefx.chartfx.server.statistical.Analysis)
,
addTitle(java.lang.String)
,
contains(java.lang.Object)
,
copyTo(com.softwarefx.chartfx.server.statistical.Study[], int)
,
find(com.softwarefx.chartfx.server.statistical.StudyType, int)
,
insert(int, com.softwarefx.chartfx.server.statistical.Study)
,
remove(java.lang.Object)
public void insert(int index, Study obj)
Inserts an element into the StudiesCollection at the specified index.
If Count already equals the capacity, the capacity of the list is doubled by automatically reallocating the internal array before the new element is inserted.
index
- Index to insert the study.obj
- Study to insert.StudiesCollection#getItem
,
add(com.softwarefx.chartfx.server.statistical.Analysis)
,
addTitle(java.lang.String)
,
contains(java.lang.Object)
,
copyTo(com.softwarefx.chartfx.server.statistical.Study[], int)
,
find(com.softwarefx.chartfx.server.statistical.StudyType, int)
,
indexOf(com.softwarefx.chartfx.server.statistical.Study)
,
remove(java.lang.Object)
public boolean isEmpty()
Returns true if this collection contains no elements.
isEmpty
in interface Collection<Study>
public Iterator<Study> iterator()
Returns an iterator over the elements in this collection.
iterator
in interface Iterable<Study>
iterator
in interface Collection<Study>
public boolean remove(Object o)
Removes the first occurrence of a specific object from the Collection.
This method performs a linear search; therefore, the average execution time is proportional to Count. That is, this method is an O(n) operation, where n is Count.
remove
in interface Collection<Study>
o
- StudiesCollection#getItem
,
add(com.softwarefx.chartfx.server.statistical.Analysis)
,
addTitle(java.lang.String)
,
contains(java.lang.Object)
,
copyTo(com.softwarefx.chartfx.server.statistical.Study[], int)
,
find(com.softwarefx.chartfx.server.statistical.StudyType, int)
,
indexOf(com.softwarefx.chartfx.server.statistical.Study)
,
insert(int, com.softwarefx.chartfx.server.statistical.Study)
public boolean removeAll(Collection<?> c)
Removes all of the elements in the specified collection from the StudiesCollection collection.
removeAll
in interface Collection<Study>
c
- Elements to be removed from this collection.public boolean retainAll(Collection<?> c)
Retains only the elements in the StudiesCollection collection that are contained in the specified collection.
retainAll
in interface Collection<Study>
c
- Elements to be retained in this collection.public int size()
Returns the number of elements in this collection.
size
in interface Collection<Study>
public Object[] toArray()
Returns an array containing all of the elements in this collection in proper sequence.
toArray
in interface Collection<Study>
public <T> T[] toArray(T[] a)
Returns an array containing all of the elements in this collection in proper sequence.
toArray
in interface Collection<Study>
|
http://www.softwarefx.com | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |