|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.eliad.util.SizeSequenceIntervals
An implementation of Intervals that mimic the JTable's use
of the SizeSequence class
| Constructor Summary | |
SizeSequenceIntervals(int numEntries,
int size)
Constructs a SizeSequenceIntervals object
with a uniform size and a given number of entries. |
|
SizeSequenceIntervals(javax.swing.SizeSequence seq,
int def)
Constructs a SizeSequenceIntervals object
starting from a SizeSequence |
|
| Method Summary | |
java.lang.Object |
clone()
Necessary to allow public access to the clone method. |
int |
getCount()
Returns the number of entries in this Intervals object |
int |
getDefaultSize()
returns the default size for new entries |
int |
getIndex(int position)
Returns the index of the entry that contains to the specified position. |
int |
getPosition(int index)
Returns the start position for the specified entry. |
int |
getSize(int index)
Returns the size of the specified entry. |
int[] |
getSizes()
Returns the array of sizes for all entries. |
boolean |
hasFixedSize()
Tests whether all the entries are the same size |
void |
insertEntries(int start,
int length,
int value)
Adds a continuous group of entries to this Intervals. |
void |
removeEntries(int start,
int length)
Removes a continuous group of entries from this Intervals. |
void |
setFixedSize(int size)
Sets a common size for all entries. |
void |
setSize(int index,
int size)
Sets the size of the specified entry. |
void |
setSizes(int[] sizes)
Sets the sizes for all entries from an array |
| Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public SizeSequenceIntervals(int numEntries,
int size)
SizeSequenceIntervals object
with a uniform size and a given number of entries.numEmtries - initial number of entriessize - initial uniform size of entries
public SizeSequenceIntervals(javax.swing.SizeSequence seq,
int def)
SizeSequenceIntervals object
starting from a SizeSequenceseq - initial SizeSequence| Method Detail |
public int getDefaultSize()
public int getCount()
Intervals objectpublic int getSize(int index)
index - the index corresponding to the entry
public void setSize(int index,
int size)
index - the index corresponding to the entrysize - the size of the entrypublic void setFixedSize(int size)
size - the size of the entriespublic boolean hasFixedSize()
public int getIndex(int position)
position - the position of the entrypublic int getPosition(int index)
index - the index of the entry whose position is desired.getSize(int).public int[] getSizes()
public void setSizes(int[] sizes)
public void insertEntries(int start,
int length,
int value)
Intervals.start - the index to be assigned to the first entry
in the grouplength - the number of entries in the groupvalue - the size to be assigned to each new entry
public void removeEntries(int start,
int length)
Intervals.start - the index of the first entry to be removedlength - the number of entries to be removed
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||