public Hashtable GetData(Hashtable ht)
{
ht.Add("x", this.bounds.x.ToString());
ht.Add("y", this.bounds.y.ToString());
ht.Add("w", this.bounds.width.ToString());
ht.Add("h", this.bounds.height.ToString());
ht.Add("status", this.statusID.ToString());
ht.Add("empty", this.showEmpty.ToString());
if(this.useImage)
{
ht.Add("scale", this.scaleMode.ToString());
ht.Add("blend", this.alphaBlend.ToString());
ht.Add("aspect", this.imageAspect.ToString());
ArrayList s = new ArrayList();
if("" != this.imageName)
{
Hashtable img = new Hashtable();
img.Add(XMLHandler.NODE_NAME, "image");
img.Add(XMLHandler.CONTENT, this.imageName);
s.Add(img);
}
if("" != this.emptyImageName)
{
Hashtable img = new Hashtable();
img.Add(XMLHandler.NODE_NAME, "emptyimage");
img.Add(XMLHandler.CONTENT, this.emptyImageName);
s.Add(img);
}
if(s.Count > 0) ht.Add(XMLHandler.NODES, s);
}
else
{
ht.Add("c1", this.barColor.ToString());
ht.Add("c2", this.emptyColor.ToString());
}
return ht;
}