package net.xoetrope.builder.w3c.html.tags;
import net.xoetrope.builder.w3c.html.XHtmlBuilder;
import javax.swing.text.MutableAttributeSet;
import net.xoetrope.swing.XImageMap;
import net.xoetrope.xui.XComponentFactory;
/**
* Processing for the html Map element
* <p> Copyright (c) Xoetrope Ltd., 2002-2006</p>
* <p> $Revision: 1.1 $</p>
* <p> License: see License.txt</p>
*/
public class Map extends XHtmlTagHandler
{
/**
* Creates a new instance of Map
*/
public Map()
{
}
/**
* Create a new instance of this object
* @param builder the html builder and processor for the document
* @param parent the parent handler
* @return the new handler
*/
public XHtmlTagHandler newInstance( XHtmlBuilder builder, XHtmlTagHandler parent )
{
Map i = new Map();
i.setBuilder( builder );
i.setParent( parent );
return i;
}
/**
* Process the opening html P tag/element
* @param builder the xui builder instance that is processing the html file
* @param cf the component factory to use for the creation of individual components
* @param as the attributes of this html tag.
*/
public void startProcessing( XHtmlBuilder builder, XComponentFactory cf, MutableAttributeSet as )
{
super.startProcessing( builder, cf, as );
comp = new XImageMap();
parentComponent.add( comp );
//comp.setLayout( new FlowLayout());
cf.setParentComponent( comp );
}
}