com.miginfocom.util
Interface StringProvider

All Known Subinterfaces:
DateStringProvider
All Known Implementing Classes:
DefaultDateStringProvider, FittingTextAShape, StaticStringProvider, TextAShape

public interface StringProvider

A callback interface for a source of strings. Can be used instead of an array of strings where the precalculation of the string would be sub optimal.


Method Summary
 java.lang.String getString(int ix)
          Returns the string for the index.
 int getStringCount()
          Returns the number of strings this provider can provide.
 

Method Detail

getString

java.lang.String getString(int ix)
Returns the string for the index. Throws exception if ix is >= the size

Parameters:
ix - The index.
Returns:
The string for the index. Never null.

getStringCount

int getStringCount()
Returns the number of strings this provider can provide.

Returns:
The number of strings this provider can provide.


Copyright © 2009 MiG InfoCom AB. All Rights Reserved.