com.steema.teechart.tools
Class ToolsCollection
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList
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.ArrayList
Title: ToolsCollection class
Description: Collection of Tool components.
Copyright (c)
2005-2013 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
- See Also:
- Serialized Form
Fields inherited from class java.util.AbstractList |
modCount |
Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
containsAll, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
chart
public transient IBaseChart chart
ToolsCollection
public ToolsCollection(IBaseChart c)
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
dispose
public void dispose()