xml.formControls.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of svgSalamander Show documentation
Show all versions of svgSalamander Show documentation
A tool for displaying and playing SVG content using the Java2D.
/**
* Layout a form control. Must be called to initialize and whenever the
* form's dimensions change.
*/
function pack()
{
}
function moveLabel(name, x, y, width, height)
{
var clipRect = svgDocument.getElementById(name + "-clip-rect");
clipRect.setAttribute("x", x);
clipRect.setAttribute("y", y);
clipRect.setAttribute("width", width);
clipRect.setAttribute("height", height);
var rect = svgDocument.getElementById(name + "-rect");
rect.setAttribute("x", x);
rect.setAttribute("y", y);
rect.setAttribute("width", width);
rect.setAttribute("height", height);
var text = svgDocument.getElementById(name + "-text");
rect.setAttribute("x", x);
rect.setAttribute("y", y);
}