org.formaria.svg
Interface SvgRolloverFinder


public interface SvgRolloverFinder

Copyright (c) Formaria Ltd., 2008, This software is licensed under the GNU Public License (GPL), please see license.txt for more details. If you make commercial use of this software you must purchase a commercial license from Formaria.

$Revision: 1.2 $


Method Summary
 java.lang.String getRolloverName(java.lang.String blockName)
          Get the corresponding rollover name for the named block
 boolean isRolloverName(java.lang.String blockName)
          Is the block with the specified name a block that has a rollover?
 void setup(java.util.Vector elements, java.lang.String[] baseShapes)
          Setup the mapping of the base names to the rollover names.
 

Method Detail

isRolloverName

boolean isRolloverName(java.lang.String blockName)
Is the block with the specified name a block that has a rollover?

Parameters:
blockName - the basic block name
Returns:
true if this block participates in the rollover process

getRolloverName

java.lang.String getRolloverName(java.lang.String blockName)
Get the corresponding rollover name for the named block

Parameters:
blockName - the basic blockname
Returns:
the rollover name

setup

void setup(java.util.Vector elements,
           java.lang.String[] baseShapes)
Setup the mapping of the base names to the rollover names. The method is called whenever a svg image is loaded and initialized.

Parameters:
elements - the svg elements
baseShapes - the names of the basic svg elements