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.
-
areas
-
-
CombinedLayout()
-
-
addChild(ParseElement)
- Add a sub-layout to this one.
-
areaScalePoint(RelPoint, int)
- Scale point depending on which area it is in.
-
getArea(int)
- Get a sub-layout of this layout.
areas
protected Vector areas
CombinedLayout
public CombinedLayout()
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.
addChild
public void addChild(ParseElement child)
- Add a sub-layout to this one.
- Overrides:
- addChild in class LayoutObject
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