Chart FX 7 for Java Server

com.softwarefx.chartfx.server.adornments
Class GradientBackground.FloatCollection

java.lang.Object
  extended by com.softwarefx.chartfx.server.adornments.GradientBackground.FloatCollection
All Implemented Interfaces:
Iterable<Float>, Collection<Float>
Enclosing class:
GradientBackground

public static class GradientBackground.FloatCollection
extends Object
implements Iterable<Float>, Collection<Float>

Provides access to the FloatCollection Class.


Constructor Summary
GradientBackground.FloatCollection()
           
 
Method Summary
 boolean add(Float o)
          Appends the specified element to the FloatCollection collection.
 boolean addAll(Collection<? extends Float> c)
          Adds all of the elements in the specified collection to the FloatCollection collection.
 void clear()
          Removes all of the elements from this collection.
 boolean contains(Object o)
          Returns true if the FloatCollection contains the specified element.
 boolean containsAll(Collection<?> c)
          Returns true if the FloatCollection collection contains all of the elements in the specified collection.
 void copyTo(float[] array, int index)
          Copies the entire Collection to a compatible one-dimensional Array, starting at the specified index of the target array.
 float get(int n)
          Returns the element at the specified position in the FloatCollection.
 boolean isEmpty()
          Returns true if this collection contains no elements.
 Iterator<Float> iterator()
          Returns an iterator over the elements in this collection.
 boolean remove(Object o)
          Removes the specified element from the FloatCollection collection.
 boolean removeAll(Collection<?> c)
          Removes all of the elements in the specified collection from the FloatCollection collection.
 boolean retainAll(Collection<?> c)
          Retains only the elements in the FloatCollection collection that are contained in the specified collection.
 void set(int n, float value)
          Replaces the element at the specified position in the FloatCollection collection with the specified element.
 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 java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Collection
equals, hashCode
 

Constructor Detail

GradientBackground.FloatCollection

public GradientBackground.FloatCollection()
Method Detail

add

public boolean add(Float o)

Appends the specified element to the FloatCollection collection.

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

addAll

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

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

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

clear

public void clear()

Removes all of the elements from this collection.

Specified by:
clear in interface Collection<Float>

contains

public boolean contains(Object o)

Returns true if the FloatCollection contains the specified element.

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

containsAll

public boolean containsAll(Collection<?> c)

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

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

copyTo

public void copyTo(float[] array,
                   int index)

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

Parameters:
array -
index - The zero-based index in array at which copying begins.

get

public float get(int n)

Returns the element at the specified position in the FloatCollection.

Parameters:
n - Index of element to return.

isEmpty

public boolean isEmpty()

Returns true if this collection contains no elements.

Specified by:
isEmpty in interface Collection<Float>

iterator

public Iterator<Float> iterator()

Returns an iterator over the elements in this collection.

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

remove

public boolean remove(Object o)

Removes the specified element from the FloatCollection collection.

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

removeAll

public boolean removeAll(Collection<?> c)

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

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

retainAll

public boolean retainAll(Collection<?> c)

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

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

set

public void set(int n,
                float value)

Replaces the element at the specified position in the FloatCollection collection with the specified element.

Parameters:
n - The index of the item to add to the FloatCollection collection.
value - The item to add to the FloatCollection collection

size

public int size()

Returns the number of elements in this collection.

Specified by:
size in interface Collection<Float>

toArray

public Object[] toArray()

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

Specified by:
toArray in interface Collection<Float>

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<Float>

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.