All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface fi.helsinki.cs.MapDrawer.ParseElement

public interface ParseElement
Parse element - Common superinterface for all elements the properties of which can be parsed by MapDParser.


Method Index

 o addChild(ParseElement)
Add a child for this element.
 o getParent()
Get the parent for this element.
 o getProperty(MapDProp)
Get a property of this element.
 o setParent(ParseElement)
Set the parent for this element.
 o setProperty(MapDProp)
Set a property for this element.

Methods

 o setProperty
 public abstract int setProperty(MapDProp p)
Set a property for this element.

Parameters:
p - information about the property.
Returns:
non-negative on success, -1 if the property is not supported.
 o getProperty
 public abstract int getProperty(MapDProp p)
Get a property of this element. Should call the same routine of the parent element if the property is inherited.

Parameters:
p - the name of the property, should hold the value on exit
Returns:
non-negative on success.
 o getParent
 public abstract ParseElement getParent()
Get the parent for this element. This may be a combined layout for layouts, or a map element for map elements.

 o setParent
 public abstract void setParent(ParseElement p)
Set the parent for this element.

 o addChild
 public abstract void addChild(ParseElement ch)
Add a child for this element. Depending on type, this may be the element's layout, layout region, or subelement.


All Packages  Class Hierarchy  This Package  Previous  Next  Index