public boolean updateTime(double curTime) throws SVGException
{
// if (trackManager.getNumTracks() == 0) return false;
//Get current values for parameters
StyleAttribute sty = new StyleAttribute();
boolean stateChange = false;
if (getPres(sty.setName("x")))
{
float newVal = sty.getFloatValueWithUnits();
if (newVal != x)
{
x = newVal;
stateChange = true;
}
}
if (getPres(sty.setName("y")))
{
float newVal = sty.getFloatValueWithUnits();
if (newVal != y)
{
y = newVal;
stateChange = true;
}
}
if (getPres(sty.setName("width")))
{
float newVal = sty.getFloatValueWithUnits();
if (newVal != width)
{
width = newVal;
stateChange = true;
}
}
if (getPres(sty.setName("height")))
{
float newVal = sty.getFloatValueWithUnits();
if (newVal != height)
{
height = newVal;
stateChange = true;
}
}
try {
if (getPres(sty.setName("xlink:href")))
{
URI src = sty.getURIValue(getXMLBase());
URL newVal = src.toURL();
if (!newVal.equals(href))
{
href = newVal;