|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.miginfocom.util.repetition.DefaultRepetitionSpec
public class DefaultRepetitionSpec
Default implementation that only iterares the repetitions and returns the first that applies.
| Constructor Summary | |
|---|---|
DefaultRepetitionSpec(GridLineRepetition[] repetitions)
Constructor. |
|
| Method Summary | |
|---|---|
Repetition |
getRepetition(int n,
int count)
Returns the Repetition for the nth index. |
Repetition[] |
getRepetitions()
Returns the live array of repetitions stored in this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultRepetitionSpec(GridLineRepetition[] repetitions)
repetitions - A number of repetitions, not null.| Method Detail |
|---|
public Repetition[] getRepetitions()
public Repetition getRepetition(int n,
int count)
RepetitionSpecRepetition for the nth index.
getRepetition in interface RepetitionSpecn - 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.
null if none of the
contained Repetitions applies to n.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||