Summ:  Methods    Details:  Methods      Class:  Prev Next
com.artfulbits.aiCharts.Base
Interface IItemBinder<T>
Declaration: public interface IItemBinder<T>
Implemented by: ChartLegendItemsBinder

 

Represents IItemBinder interface.
Sample of custom ChartPoint binder:
  private static class CustomBinder implements IItemBinder<ChartPoint>
  {
    public ChartPoint bind(Object source, ChartPoint existingItem)
    {
      ChartPoint point;      
      // Logic that converts data to point.
      return point; 
    }
  }
 

 

Since: 1.0

 

 

Methods Summary
T bind(java.lang.Object source, T existingItem)
    
Transfers value from source.

 

 

 

 

bind

 

public T bind( java.lang.Object source,
T existingItem)

 

Transfers value from source. Per design, method is used to convert source value to instance of T type.

 

Parameters:
source-
source item that should be transfered.
existingItem-
optional existing item that could be used to avoid creation of instance of returning value.
Returns:
transfered source.

 

Since: 1.0

 

 

© 2005 - 2010 ArtfulBits. All rights reserved.