Chart FX 7 for Java Desktop

com.softwarefx.chartfx.desktop
Class LabelCollection

java.lang.Object
  extended by com.softwarefx.chartfx.desktop.LabelAwareCollection
      extended by com.softwarefx.chartfx.desktop.LabelCollection
All Implemented Interfaces:
Serializable, Iterable<String>, Collection<String>

public class LabelCollection
extends LabelAwareCollection
implements Serializable, Iterable<String>, Collection<String>

Provides access to the LabelCollection object.

See Also:
Serialized Form

Constructor Summary
LabelCollection()
           
 
Method Summary
 boolean add(String o)
          Appends the specified element to the LabelCollection collection.
 boolean addAll(Collection<? extends String> c)
          Adds all of the elements in the specified collection to the LabelCollection collection.
 void addRange(String[] items)
          Adds an array of objects to the LabelCollection collection.
 void clear()
          Removes all of the elements from this collection.
 boolean contains(Object o)
          Returns true if the LabelCollection contains the specified element.
 boolean containsAll(Collection<?> c)
          Returns true if the LabelCollection collection contains all of the elements in the specified collection.
 void copyTo(String[] items, int index)
          Copies the entire Collection to a compatible one-dimensional Array, starting at the specified index of the target array.
 String get(int index)
          Error: Member LabelCollection.
 void insert(int index, String item)
          Inserts an element into the ArrayList at the specified index.
 boolean isEmpty()
          Error: Member LabelCollection.Empty member not found
 Iterator<String> iterator()
          Returns an iterator over the elements in this collection.
 boolean remove(Object o)
          Removes the specified element from the LabelCollection collection.
 boolean removeAll(Collection<?> c)
          Removes all of the elements in the specified collection from the LabelCollection collection.
 boolean retainAll(Collection<?> c)
          Retains only the elements in the LabelCollection collection that are contained in the specified collection.
 void set(int index, String value)
          Error: Member LabelCollection.
 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.
<T> T[]
toArray(T[] a)
          Returns an array containing all of the elements in this collection in proper sequence.
 
Methods inherited from class com.softwarefx.chartfx.desktop.LabelAwareCollection
removeAt
 
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

LabelCollection

public LabelCollection()
Method Detail

add

public boolean add(String o)

Appends the specified element to the LabelCollection collection.

Specified by:
add in interface Collection<String>
Parameters:
o - The item to add to the LabelCollection collection.

addAll

public boolean addAll(Collection<? extends String> c)

Adds all of the elements in the specified collection to the LabelCollection collection.

Specified by:
addAll in interface Collection<String>
Parameters:
c - Elements to be inserted into this collection.

addRange

public void addRange(String[] items)

Adds an array of objects to the LabelCollection collection.

Parameters:
items - An array of objects to add to the collection.

clear

public void clear()

Removes all of the elements from this collection.

Specified by:
clear in interface Collection<String>
Overrides:
clear in class LabelAwareCollection

contains

public boolean contains(Object o)

Returns true if the LabelCollection contains the specified element.

Specified by:
contains in interface Collection<String>
Parameters:
o - Element whose presence in this collection is to be tested.

containsAll

public boolean containsAll(Collection<?> c)

Returns true if the LabelCollection collection contains all of the elements in the specified collection.

Specified by:
containsAll in interface Collection<String>
Parameters:
c - Collection to be checked for containment in this collection.

copyTo

public void copyTo(String[] items,
                   int index)

Copies the entire Collection to a compatible one-dimensional Array, starting at the specified index of the target array.

Parameters:
items - The one-dimensional Array that is the destination of the elements copied from LabelCollection. The Array must have zero-based indexing.
index - The zero-based index in array at which copying begins.

get

public String get(int index)

Error: Member LabelCollection. member not found

ERROR: Doc member not found


insert

public void insert(int index,
                   String item)

Inserts an element into the ArrayList at the specified index.

Parameters:
index - The zero-based index at which position should be inserted.
item - The item to insert.

isEmpty

public boolean isEmpty()

Error: Member LabelCollection.Empty member not found

ERROR: Doc member not found

Specified by:
isEmpty in interface Collection<String>

iterator

public Iterator<String> iterator()

Returns an iterator over the elements in this collection.

Specified by:
iterator in interface Iterable<String>
Specified by:
iterator in interface Collection<String>

remove

public boolean remove(Object o)

Removes the specified element from the LabelCollection collection.

Specified by:
remove in interface Collection<String>
Parameters:
o - The item to remove from the LabelCollection collection.

removeAll

public boolean removeAll(Collection<?> c)

Removes all of the elements in the specified collection from the LabelCollection collection.

Specified by:
removeAll in interface Collection<String>
Parameters:
c - Elements to be removed from this collection.

retainAll

public boolean retainAll(Collection<?> c)

Retains only the elements in the LabelCollection collection that are contained in the specified collection.

Specified by:
retainAll in interface Collection<String>
Parameters:
c - Elements to be retained in this collection.

set

public void set(int index,
                String value)

Error: Member LabelCollection. member not found

ERROR: Doc member not found


size

public int size()

Returns the number of elements in this collection.

Specified by:
size in interface Collection<String>

toArray

public Object[] toArray()

Returns an array containing all of the elements in this collection in proper sequence.

Specified by:
toArray in interface Collection<String>

toArray

public <T> T[] toArray(T[] a)

Returns an array containing all of the elements in this collection in proper sequence.

Specified by:
toArray in interface Collection<String>

http://www.softwarefx.com

2008 Software FX, Inc. All Rights Reserved. Chart FX is a registered trademark of Software FX, Inc
All other names are trademarks or registered trademarks of their respective owners.