API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing. SizeSequence View Source
Author(s)
Philip Milne
Since
1.3
Version
1.17 04/07/06
Serial
Hierarchy
 Object
      SizeSequence
Implements
Subclasses
Description
public class SizeSequence
  A SizeSequence object efficiently maintains an ordered list of sizes and corresponding positions.
See also:   
Constructors
public SizeSequence ()
  Creates a new SizeSequence object that contains no entries.
public SizeSequence (int numEntries)
  Creates a new SizeSequence object that contains the specified number of entries, all initialized to have size 0.
public SizeSequence (int[] sizes)
  Creates a new SizeSequence object that contains the specified sizes.
public SizeSequence (int numEntries, int value)
  Creates a new SizeSequence object that contains the specified number of entries, all initialized to have size value.
Methods
Hide/Show inherited methods
public int getIndex (int position)
  Returns the index of the entry that corresponds to the specified position.
public int getPosition (int index)
  Returns the start position for the specified entry.
public int getSize (int index)
  Returns the size of the specified entry.
public int getSizes ()
  Returns the size of all entries.
public void insertEntries (int start, int length, int value)
  Adds a contiguous group of entries to this SizeSequence.
public void removeEntries (int start, int length)
  Removes a contiguous group of entries from this SizeSequence.
public void setSize (int index, int size)
  Sets the size of the specified entry.
public void setSizes (int[] sizes)
  Resets this SizeSequence object, using the data in the sizes argument.
pack-private void setSizes (int length, int size)
Resets the size sequence to contain length items all with a size of size.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar