All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class fi.helsinki.cs.MapDrawer.RectLayout

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

public class RectLayout
extends LayoutObject
With this Layout, custom rectangle-sized layouts can be made.


Variable Index

 o s

Constructor Index

 o RectLayout()
 o RectLayout(RectLayout)
 o RectLayout(RelRect)

Method Index

 o getBoundRect()
Gives the bounding rectangle of this RectLayout.
 o scalePoint(RelPoint)
Scales a RelPoint to the RelRect.
 o setProperty(MapDProp)
Parse properties.
 o toPolygon()
Give the shape of this area as a Polygon.

Variables

 o s
 protected RelRect s

Constructors

 o RectLayout
 public RectLayout()
 o RectLayout
 public RectLayout(RelRect o)
 o RectLayout
 public RectLayout(RectLayout orig)

Methods

 o scalePoint
 public RelPoint scalePoint(RelPoint org)
Scales a RelPoint to the RelRect.

Overrides:
scalePoint in class LayoutObject
 o getBoundRect
 public RelRect getBoundRect()
Gives the bounding rectangle of this RectLayout.

Overrides:
getBoundRect in class LayoutObject
 o toPolygon
 public Vector toPolygon()
Give the shape of this area as a Polygon.

Overrides:
toPolygon in class LayoutObject
 o setProperty
 public int setProperty(MapDProp p)
Parse properties. Properties supported: left, right, top, bottom

Overrides:
setProperty in class LayoutObject

All Packages  Class Hierarchy  This Package  Previous  Next  Index