com.ijchart.xychart.dataset
Interface IKeyValueDataset

All Superinterfaces:
IDataset
All Known Implementing Classes:
DefaultKeyValueDataset

public interface IKeyValueDataset
extends IDataset

Title: IJChart

Description: a chart library for the Java(tm) platform.

An extension of the IChartData interface where a unique key is associated with a value.The key class must override the equals method inherit from Object class,the value class must implement IChartData interface.

Copyright: Copyright (c) 2013

Company:

Version:
1.0
Author:
zhang feng min,shanghai china. Contract me by email.

Method Summary
 java.util.List getAllKeys()
           Returns all the keys.
 IChartData getDataByKey(java.lang.Object key)
           Returns the data associate with this key.
 int getDataSize()
           Returns the size of this dataset.
 int getKeyIndex(java.lang.Object key)
           Returns the index for a given key.
 
Methods inherited from interface com.ijchart.xychart.dataset.IDataset
addChangeListener, forceDataSetChanged, isThisDataType, removeAllChangeListener, removeChangeListener
 

Method Detail

getAllKeys

java.util.List getAllKeys()
Returns all the keys.

Returns:
All the keys list.

getDataByKey

IChartData getDataByKey(java.lang.Object key)
Returns the data associate with this key.

Parameters:
key - Object
Returns:
IChartData

getKeyIndex

int getKeyIndex(java.lang.Object key)
Returns the index for a given key.

Parameters:
key - Object The key object.
Returns:
int The column index, or -1 if the key is unrecognised.

getDataSize

int getDataSize()
Returns the size of this dataset.

Returns:
int