Chart FX for Java 6.5

SoftwareFX.ChartFX
Class GradientBackground.ColorCollection

java.lang.Object
  extended by SoftwareFX.ChartFX.GradientBackground.ColorCollection
All Implemented Interfaces:
java.util.Enumeration
Enclosing class:
GradientBackground

public static class GradientBackground.ColorCollection
extends java.lang.Object
implements java.util.Enumeration

Provides access to the ColorCollection object.


Constructor Summary
GradientBackground.ColorCollection()
           
 
Method Summary
 void add(float f)
          Appends the specified element to the ColorCollection.
 void clear()
          Removes all of the elements from this collection.
 java.util.Enumeration elements()
          Returns an enumeration of the values in the ColorCollection .
 java.awt.Color getItem(int n)
          Gets the Item.
 boolean hasMoreElements()
          Tests if this enumeration contains more elements.
 java.lang.Object nextElement()
          Returns the next element of this enumeration if this enumeration object has at least one more element to provide.
 void setItem(int n, java.awt.Color value)
          Gets and Sets the element at the specified position in the ColorCollection.
 int size()
          Returns the number of elements in this collection.
 java.lang.Object[] toArray(java.lang.Object[] obj)
          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
 

Constructor Detail

GradientBackground.ColorCollection

public GradientBackground.ColorCollection()
Method Detail

add

public void add(float f)

Appends the specified element to the ColorCollection.

Parameters:
f - The item to add to the ColorCollection collection.

clear

public void clear()

Removes all of the elements from this collection.


elements

public java.util.Enumeration elements()

Returns an enumeration of the values in the ColorCollection . Use the Enumeration methods on the returned object to fetch the elements sequentially.


getItem

public java.awt.Color getItem(int n)

Gets the Item. For more detail see setItem(int, java.awt.Color).


hasMoreElements

public boolean hasMoreElements()

Tests if this enumeration contains more elements.

Specified by:
hasMoreElements in interface java.util.Enumeration

nextElement

public java.lang.Object nextElement()

Returns the next element of this enumeration if this enumeration object has at least one more element to provide.

Specified by:
nextElement in interface java.util.Enumeration

setItem

public void setItem(int n,
                    java.awt.Color value)

Gets and Sets the element at the specified position in the ColorCollection.


size

public int size()

Returns the number of elements in this collection.


toArray

public java.lang.Object[] toArray(java.lang.Object[] obj)

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


http://www.softwarefx.com

2007 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.