org.omegahat.Graphics.Layouts
Class DefaultAllocator

java.lang.Object
  |
  +--java.util.Dictionary
        |
        +--java.util.Hashtable
              |
              +--org.omegahat.Environment.Utils.OrderedTable
                    |
                    +--org.omegahat.Graphics.Layouts.BasicAllocator
                          |
                          +--org.omegahat.Graphics.Layouts.DefaultAllocator
All Implemented Interfaces:
Activable, AssignableSubset, java.lang.Cloneable, Database, EnumeratedRegionAllocator, java.util.Iterator, java.util.Map, RegionAllocator, java.io.Serializable, ShallowCopyable, Subsettable

public class DefaultAllocator
extends BasicAllocator
implements RegionAllocator

Default allocator that returns the standard use all available space RegionDescription

See Also:
Serialized Form

Inner classes inherited from class java.util.Map
java.util.Map.Entry
 
Fields inherited from class org.omegahat.Graphics.Layouts.BasicAllocator
cursor
 
Fields inherited from class org.omegahat.Environment.Utils.OrderedTable
listeners, name, orderedElements, orderedKeys, state
 
Fields inherited from interface org.omegahat.Environment.Databases.Database
ALL, ASSIGN, ATTACH, DETACH, NULL_ENTRY, READ, READ_WRITE, REMOVE
 
Fields inherited from interface org.omegahat.Environment.Databases.Activable
ACTIVE, INACTIVE
 
Constructor Summary
DefaultAllocator()
           
 
Method Summary
 RegionDescriptionInt setDescription(int which, GraphicalComponentInt child, GraphicalContainerInt parent)
          Get the description indexed by order/position.
 RegionDescriptionInt setDescription(java.lang.String which, GraphicalComponentInt child, GraphicalContainerInt parent)
          Get the description indexed by arbitrary object.
 
Methods inherited from class org.omegahat.Graphics.Layouts.BasicAllocator
getCursor, getRegionDescriptions, getRegions, hasNext, next, nextDescription, remove, setCursor, setDescription
 
Methods inherited from class org.omegahat.Environment.Utils.OrderedTable
add, add, addListListener, assign, assignSubset, attach, clear, copy, copy, detach, elementAt, exists, get, getName, getState, keys, listeners, listeners, notifyListeners, objects, ordered, orderedKeys, put, put, put, remove, remove, removeElement, removeElement, removeElementAt, removeElementAt, removeListListener, setElementAt, setName, setState, subset, subset, subset
 
Methods inherited from class java.util.Hashtable
clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keySet, putAll, rehash, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.omegahat.Graphics.Layouts.RegionAllocator
getRegionDescriptions, getRegions, setDescription
 
Methods inherited from interface org.omegahat.Environment.Databases.Database
size
 

Constructor Detail

DefaultAllocator

public DefaultAllocator()
Method Detail

setDescription

public RegionDescriptionInt setDescription(int which,
                                           GraphicalComponentInt child,
                                           GraphicalContainerInt parent)
Description copied from class: BasicAllocator
Get the description indexed by order/position.
Specified by:
setDescription in interface RegionAllocator
Overrides:
setDescription in class BasicAllocator

setDescription

public RegionDescriptionInt setDescription(java.lang.String which,
                                           GraphicalComponentInt child,
                                           GraphicalContainerInt parent)
Description copied from class: BasicAllocator
Get the description indexed by arbitrary object.
Specified by:
setDescription in interface RegionAllocator
Overrides:
setDescription in class BasicAllocator