com.steema.teechart.tools
Class ToolsCollection

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.Vector
              extended by com.steema.teechart.tools.ToolsCollection
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess
Direct Known Subclasses:
MarkersCollection

public class ToolsCollection
extends java.util.Vector

Title: ToolsCollection class

Description: Collection of Tool components.

Copyright (c) 2005-2012 by Steema Software SL. All Rights Reserved.

Company: Steema Software SL

See Also:
Serialized Form

Field Summary
 IBaseChart chart
           
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
ToolsCollection(IBaseChart c)
           
 
Method Summary
 Tool add(java.lang.Class type)
           
 Tool add(Tool tool)
          Adds a new tool to your TChart.
 Tool getTool(int index)
           
 int indexOf(Tool s)
          Returns the corresponding point index which has the specified Value.
 void remove(Tool s)
          Removes a tool from the TChart.
 void setChart(IBaseChart chart)
          Sets Chart interface to tools collection
 void setTool(int index, Tool value)
           
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Field Detail

chart

public transient IBaseChart chart
Constructor Detail

ToolsCollection

public ToolsCollection(IBaseChart c)
Method Detail

add

public Tool add(Tool tool)
Adds a new tool to your TChart. Returns the added tool instance.

Parameters:
tool - Tool
Returns:
int

add

public Tool add(java.lang.Class type)
         throws java.lang.InstantiationException,
                java.lang.IllegalAccessException
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException

getTool

public Tool getTool(int index)

setTool

public void setTool(int index,
                    Tool value)

indexOf

public int indexOf(Tool s)
Returns the corresponding point index which has the specified Value.

Parameters:
s - Tool
Returns:
int

remove

public void remove(Tool s)
Removes a tool from the TChart.

Parameters:
s - Tool

setChart

public void setChart(IBaseChart chart)
Sets Chart interface to tools collection

Parameters:
chart - IBaseChart