treemap
Class OrderedTreemap
java.lang.Object
treemap.OrderedTreemap
- All Implemented Interfaces:
- MapLayout
public class OrderedTreemap
- extends java.lang.Object
- implements MapLayout
Method Summary |
java.lang.String |
getDescription()
Return a longer description of this layout;
Helpful in creating online-help,
interactive catalogs or indices to lists of algorithms. |
java.lang.String |
getName()
Return a human-readable name for this layout;
used to label figures, tables, etc. |
void |
layout(MapModel model,
double x,
double y,
double w,
double h)
Arrange the items in the given MapModel to fill the given rectangle. |
void |
layout(MapModel model,
Rect bounds)
Arrange the items in the given MapModel to fill the given rectangle. |
void |
layoutAtOrigin(MapModel model,
Rect bounds)
|
void |
setPivotType(int pivotType)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PIVOT_BY_MIDDLE
public static final int PIVOT_BY_MIDDLE
- See Also:
- Constant Field Values
PIVOT_BY_SPLIT_SIZE
public static final int PIVOT_BY_SPLIT_SIZE
- See Also:
- Constant Field Values
PIVOT_BY_BIGGEST
public static final int PIVOT_BY_BIGGEST
- See Also:
- Constant Field Values
OrderedTreemap
public OrderedTreemap()
getName
public java.lang.String getName()
- Description copied from interface:
MapLayout
- Return a human-readable name for this layout;
used to label figures, tables, etc.
- Specified by:
getName
in interface MapLayout
- Returns:
- String naming this layout.
getDescription
public java.lang.String getDescription()
- Description copied from interface:
MapLayout
- Return a longer description of this layout;
Helpful in creating online-help,
interactive catalogs or indices to lists of algorithms.
- Specified by:
getDescription
in interface MapLayout
- Returns:
- String describing this layout.
setPivotType
public void setPivotType(int pivotType)
layout
public void layout(MapModel model,
Rect bounds)
- Description copied from interface:
MapLayout
- Arrange the items in the given MapModel to fill the given rectangle.
- Specified by:
layout
in interface MapLayout
- Parameters:
model
- The MapModel.bounds
- The boundary rectangle for the layout.
layout
public void layout(MapModel model,
double x,
double y,
double w,
double h)
- Description copied from interface:
MapLayout
- Arrange the items in the given MapModel to fill the given rectangle.
- Specified by:
layout
in interface MapLayout
- Parameters:
model
- The MapModel.x
- coordinate of the layout bounds.y
- coordinate of the layout bounds.w
- width of the layout bounds.h
- height of the layout bounds.
layoutAtOrigin
public void layoutAtOrigin(MapModel model,
Rect bounds)