All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class fi.helsinki.cs.MapDrawer.CombinedLayout

java.lang.Object
   |
   +----fi.helsinki.cs.MapDrawer.LayoutObject
           |
           +----fi.helsinki.cs.MapDrawer.NullScaler
                   |
                   +----fi.helsinki.cs.MapDrawer.CombinedLayout

public class CombinedLayout
extends NullScaler
Combined layout manager - used for dividing an area to multiple layout regions. This is MapDrawer's basic zooming scheme. One can define very complex layouts with this one - to save some effort, one can use the other combined-layout managers.


Variable Index

 o areas

Constructor Index

 o CombinedLayout()

Method Index

 o addChild(ParseElement)
Add a sub-layout to this one.
 o areaScalePoint(RelPoint, int)
Scale point depending on which area it is in.
 o getArea(int)
Get a sub-layout of this layout.

Variables

 o areas
 protected Vector areas

Constructors

 o CombinedLayout
 public CombinedLayout()

Methods

 o getArea
 public LayoutObject getArea(int index)
Get a sub-layout of this layout. Used for tracing mouse-clicks and at MapElement.drawChildren()

Parameters:
index - the number of the sub-layout.
Returns:
the sub-layout.
 o addChild
 public void addChild(ParseElement child)
Add a sub-layout to this one.

Overrides:
addChild in class LayoutObject
 o areaScalePoint
 public RelPoint areaScalePoint(RelPoint orig,
                                int area)
Scale point depending on which area it is in.

Parameters:
orig - the RelPoint to be scaled.
area - the index of the appropriate area.

All Packages  Class Hierarchy  This Package  Previous  Next  Index