01: package com.xoetrope.svg;
02:
03: import java.util.Vector;
04:
05: /**
06: *
07: *
08: * <p> Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under
09: * the GNU Public License (GPL), please see license.txt for more details. If
10: * you make commercial use of this software you must purchase a commercial
11: * license from Xoetrope.</p>
12: * <p> $Revision: 1.2 $</p>
13: */
14: public interface XSvgRolloverFinder {
15: /**
16: * Is the block with the specified name a block that has a rollover?
17: * @param blockName the basic block name
18: * @return true if this block participates in the rollover process
19: */
20: public boolean isRolloverName(String blockName);
21:
22: /**
23: * Get the corresponding rollover name for the named block
24: * @param blockName the basic blockname
25: * @return the rollover name
26: */
27: public String getRolloverName(String blockName);
28:
29: /**
30: * Setup the mapping of the base names to the rollover names. The method is
31: * called whenever a svg image is loaded and initialized.
32: * @param elements the svg elements
33: * @param baseShapes the names of the basic svg elements
34: */
35: public void setup(Vector elements, String[] baseShapes);
36: }
|