* @param element the element to bind to the specified graphics node
* @param node the graphics node to bind to the specified element
*/
public void bind(Element element, GraphicsNode node) {
if (elementNodeMap == null) {
elementNodeMap = new WeakHashMap();
nodeElementMap = new WeakHashMap();
}
elementNodeMap.put(element, new SoftReference(node));
nodeElementMap.put(node, new SoftReference(element));
}