com.miginfocom.util.repetition
Interface RepetitionSpec

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
DefaultGridLineProvider, DefaultRepetitionSpec

public interface RepetitionSpec
extends java.io.Serializable

A number of Repetitions that should define a range 0..n each represented by a specific repetition.


Method Summary
 Repetition getRepetition(int n, int count)
          Returns the Repetition for the nth index.
 

Method Detail

getRepetition

Repetition getRepetition(int n,
                         int count)
Returns the Repetition for the nth index.

Parameters:
n - The repetition to return the size for. Must be less than count.
count - The total in the range. Used for knowing when the "last" index is asked for.
Returns:
The repetition that is active (E.g. "applies") for that index. Can be null if none of the contained Repetitions applies to n.


Copyright © 2009 MiG InfoCom AB. All Rights Reserved.