chartstyle.lzx
<library>
<class name="basestyle" extends="view" opacity="0">
<doc><text>
<warning>This component is of Beta quality and is subject to change.</warning>
</text></doc>
<method name="setStyleAttr" args="val, prop">
this[ prop ] = val;
if (this['on' + prop]) this['on' + prop].sendEvent(prop);
//if (this.onstylechanged) this.onstylechanged.sendEvent(this);
this.markChange();
</method>
<method name="extend" args="args">
var temp = {};
for (var p in args) {
temp[p] = args[p];
}
temp.__proto__ = this;
new LzDelegate(temp, '_forwardstylechanged', this, 'onstylechanged');
return temp;
</method>
<method name="_forwardstylechanged">
if (this.onstylechanged) this.onstylechanged.sendEvent(this);
</method>
<method name="getRootStyle">
if(this["root"] != null)
{
}
else if(this.constructor.tagname == "chartstyle")
{
this.root = this;
}
else
{
this.root = parent.getRootStyle();
}
return this.root;
</method>
<method name="markChange">
this.getRootStyle().markChange();
</method>
<method name="updateNeeded" args="obj">
return this.getRootStyle().updateNeeded(obj);
</method>
<method name="markUpdated" args="obj">
//Debug.write("mark root: " + obj);
this.getRootStyle().markUpdated(obj);
</method>
</class>
<class name="pointstyle" extends="basestyle" width="5" height="5">
<doc>
<text>
<warning>This component is of Beta quality and is subject to change.</warning>
</text>
</doc>
<attribute name="color" type="color" value="black
"/>
<attribute name="shape" type="string" value="square
"/>
<attribute name="opacity" type="number" value="1
"/>
<attribute name="gradient" type="string" value="none
"/>
<attribute name="image" type="string" value="${null}"/>
<attribute name="strokeStyle" type="color" value="0x000000
"/>
<attribute name="lineWidth" type="number" value="0
"/>
</class>
<class name="linestyle" extends="basestyle">
<doc>
<text>
<warning>This component is of Beta quality and is subject to change.</warning>
</text>
</doc>
<attribute name="size" type="number" value="1
"/>
<attribute name="color" type="color" value="0x000000
"/>
<attribute name="opacity" type="number" value="1
"/>
<attribute name="type" type="string" value="solid
"/>
</class>
<class name="regionstyle" extends="basestyle">
<doc>
<text>
<warning>This component is of Beta quality and is subject to change.</warning>
</text>
</doc>
<attribute name="color" type="color" value="0xFF0000
"/>
<attribute name="opacity" type="number" value="0.5
"/>
<attribute name="gradient" type="string" value="none
"/>
<attribute name="image" type="string" value="${null}"/>
<attribute name="stretches" type="string" value="both
"/>
</class>
<class name="labelstyle" extends="basestyle">
<doc>
<text>
<warning>This component is of Beta quality and is subject to change.</warning>
</text>
</doc>
<attribute name="linesize" type="number" value="null
"/>
<attribute name="linecolor" type="color" value="${null}"/>
<attribute name="fillcolor" type="color" value="${null}"/>
<attribute name="opacity" type="number" value="1
"/>
<attribute name="inset" type="number" value="5
"/>
<attribute name="font" type="string" value="serif
"/>
<attribute name="fontsize" type="size" value="8
"/>
<attribute name="fontcolor" type="color" value="0x000000
"/>
<attribute name="fontangle" type="number" value="0
"/>
</class>
<class name="tickstyle" extends="linestyle">
<doc>
<text>
<warning>This component is of Beta quality and is subject to change.</warning>
</text>
</doc>
<attribute name="length" type="number" value="5
"/>
<attribute name="position" type="string" value="inside
"/>
>
</class>
<class name="valuelinestyle" extends="basestyle">
<doc>
<text>
<warning>This component is of Beta quality and is subject to change.</warning>
</text>
</doc>
>
</class>
<class name="valuepointstyle" extends="basestyle">
<doc>
<text>
<warning>This component is of Beta quality and is subject to change.</warning>
</text>
</doc>
>
</class>
<class name="axisstyle" extends="basestyle">
<doc>
<text>
<warning>This component is of Beta quality and is subject to change.</warning>
</text>
</doc>
<attribute name="direction" value="y | x
" type="string"/>
>
</class>
<class name="plotstyle" extends="basestyle">
<doc>
<text>
<warning>This component is of Beta quality and is subject to change.</warning>
</text>
</doc>
<attribute name="linesize" type="number" value="0
"/>
<attribute name="linecolor" type="color" value="${null}"/>
<attribute name="fillcolor" type="color" value="0xFFFFFF
"/>
<attribute name="opacity" type="number" value="1
"/>
</class>
<class name="chartbgstyle" extends="basestyle">
<doc>
<text>
<warning>This component is of Beta quality and is subject to change.</warning>
</text>
</doc>
>
</class>
<class name="datastyle" extends="basestyle">
<doc>
<text>
<warning>This component is of Beta quality and is subject to change.</warning>
</text>
</doc>
>
</class>
<class name="valueregionstyle" extends="basestyle">
<doc>
<text>
<warning>This component is of Beta quality and is subject to change.</warning>
</text>
</doc>
>
</class>
<class name="chartstyle" extends="basestyle">
<doc>
<text>
<warning>This component is of Beta quality and is subject to change.</warning>
</text>
</doc>
<attribute name="datastyleindex" value="0
" type="number"/>
<attribute name="version" value="0
" type="number"/>
<method name="determinePlacement" args="v,p,a">
</method>
<method name="resetDataStyleCycle">
this.datastyleindex = 0;
</method>
<method name="getNextDataStyle">
var temp = this.datastyles.subnodes[this.datastyleindex % this.datastyles.subnodes.length];
this.datastyleindex++;
return temp;
</method>
<method name="getDataStyle" args="index">
var temp = this.datastyles.subnodes[index % this.datastyles.subnodes.length];
return temp;
</method>
<method name="markChange">
this.setAttribute("version", this.version + 1);
</method>
<method name="updateNeeded" args="obj">
//Debug.write("obj.version: " + obj["styleversion"]);
//Debug.write("this.version: " + this.version);
var temp = (this.version != obj["styleversion"]);
//Debug.write("compare: " + temp);
return temp;
</method>
<method name="markUpdated" args="obj">
obj["styleversion"] = this.version;
//Debug.write("mark: " + obj);
//Debug.write("mark: " + obj["styleversion"]);
</method>
<event name="onversion"/>
</class>
<class name="datastylelist" extends="basestyle">
<doc>
<text>
<warning>This component is of Beta quality and is subject to change.</warning>
</text>
</doc>
</class>
</library>