org.omegahat.Graphics.Layouts
Class DataPlotAllocator

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

public class DataPlotAllocator
extends BorderAllocator

Allocator supporting left and bottom axis and a data region occupying the remainder of the space with top and right margins, using the UDoubleExpression to connect the different elements. Still in a little bit of flux, and the computations are currently done manually in DataPlot.

See Also:
Serialized Form

Inner classes inherited from class java.util.Map
java.util.Map.Entry
 
Field Summary
static java.lang.String DATA_REGION_NAME
          Constant name by which to identify the data region when adding an component.
static int DATAREGION
          Constant index by which to identify the data region when adding an component.
static java.lang.String[] RegionNames
           
static java.lang.String X_AXIS_NAME
          Constant name by which to identify the left axis when adding an component.
static int XAXISREGION
          Constant index by which to identify the bottom axis when adding an component.
static java.lang.String Y_AXIS_NAME
          Constant name by which to identify the bottom axis when adding an component.
static int YAXISREGION
          Constant index by which to identify the left axis when adding an component.
 
Fields inherited from class org.omegahat.Graphics.Layouts.BorderAllocator
center, CENTER, CENTRE, EAST, NORTH, SOUTH, WEST
 
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
DataPlotAllocator()
           
 
Method Summary
 RegionDescriptionInt setDescription(int id, GraphicalComponentInt child, GraphicalContainerInt parent)
          Get the description indexed by order/position.
 
Methods inherited from class org.omegahat.Graphics.Layouts.BorderAllocator
getCenter, setCenter, setDescription
 
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
 

Field Detail

XAXISREGION

public static final int XAXISREGION
Constant index by which to identify the bottom axis when adding an component.

YAXISREGION

public static final int YAXISREGION
Constant index by which to identify the left axis when adding an component.

DATAREGION

public static final int DATAREGION
Constant index by which to identify the data region when adding an component.

Y_AXIS_NAME

public static final java.lang.String Y_AXIS_NAME
Constant name by which to identify the bottom axis when adding an component.

X_AXIS_NAME

public static final java.lang.String X_AXIS_NAME
Constant name by which to identify the left axis when adding an component.

DATA_REGION_NAME

public static final java.lang.String DATA_REGION_NAME
Constant name by which to identify the data region when adding an component.

RegionNames

public static final java.lang.String[] RegionNames
Constructor Detail

DataPlotAllocator

public DataPlotAllocator()
Method Detail

setDescription

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