All Packages Class Hierarchy This Package Previous Next Index
Class fi.helsinki.cs.MapDrawer.LayoutObject
java.lang.Object
|
+----fi.helsinki.cs.MapDrawer.LayoutObject
- public abstract class LayoutObject
- extends Object
- implements ParseElement
MapDrawer's layout manager object --
an object which is constructed for every - pair.
This interface should be implemented by all area objects which are able
to scale RelPoints into their content.
-
loc
-
-
p
-
-
LayoutObject()
-
-
addChild(ParseElement)
- This routine is not supported by non-combined layouts.
-
getBoundRect()
- Get the bounding rectangle of this area.
-
getParent()
-
-
getProperty(MapDProp)
- This routine is not supported by layouts.
-
scalePoint(RelPoint)
- Scale a point according to this context.
-
setParent(ParseElement)
-
-
setProperty(MapDProp)
-
-
toPolygon()
- Give the shape of this area as a Polygon.
p
protected CombinedLayout p
loc
protected int loc
LayoutObject
public LayoutObject()
scalePoint
public RelPoint scalePoint(RelPoint orig)
- Scale a point according to this context.
- Parameters:
- orig - the point to be scaled.
- hint - how the point should be scaled (used by scalers
that contain many areas). If hint is null, the whole of this
scaler's area should be used.
- Returns:
- the coordinate of the point in this area.
toPolygon
public abstract Vector toPolygon()
- Give the shape of this area as a Polygon. Can be used,
for example, to fill the area with a specific color.
- Returns:
- a vector of valid RelPoint endpoints.
getBoundRect
public abstract RelRect getBoundRect()
- Get the bounding rectangle of this area. This is useful because
scalers should always scale a RelPoint so that it won't be
outside their bounding rectangle if its original coordinates
were in the MapDrawer range. Used for tracking mouse clicks.
setProperty
public abstract int setProperty(MapDProp prop)
getParent
public ParseElement getParent()
setParent
public void setParent(ParseElement parent)
getProperty
public int getProperty(MapDProp p)
- This routine is not supported by layouts.
addChild
public void addChild(ParseElement child)
- This routine is not supported by non-combined layouts.
All Packages Class Hierarchy This Package Previous Next Index