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.
-
addChild(ParseElement)
- Add a child for this element.
-
getParent()
- Get the parent for this element.
-
getProperty(MapDProp)
- Get a property of this element.
-
setParent(ParseElement)
- Set the parent for this element.
-
setProperty(MapDProp)
- Set a property for this element.
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.
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.
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.
setParent
public abstract void setParent(ParseElement p)
- Set the parent for this element.
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