org.formaria.svg
Class SvgLayer

java.lang.Object
  extended by Group
      extended by org.formaria.svg.SvgLayer

public class SvgLayer
extends Group

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 $


Field Summary
protected  java.lang.String name
           
protected  SVGRoot root
           
 
Constructor Summary
SvgLayer(java.lang.String name, SvgImageMap imageMap)
          Creates a new instance of SvgLayer
 
Method Summary
 void addElement(SVGElement element)
          Used to add an svg element to the layer.
 void addToImageMap()
          Add the layer to the SVG image.
 void removeFromImageMap()
          Remove the layer from the SVG image.
 void setHidden()
          Set this layer to be hidden from view.
 void setImageMap(SvgImageMap imageMap)
          Set the SVG image map for the layer.
 void setVisible()
          Set this layer to be visible.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

root

protected SVGRoot root

name

protected java.lang.String name
Constructor Detail

SvgLayer

public SvgLayer(java.lang.String name,
                SvgImageMap imageMap)
Creates a new instance of SvgLayer

Parameters:
name - String specifying the name to be given to the layer.
imageMap - SvgImageMap instance that will contain the new layer.
Method Detail

setImageMap

public void setImageMap(SvgImageMap imageMap)
Set the SVG image map for the layer.

Parameters:
imageMap - SvgImageMap instance that will contain the new layer.

addElement

public void addElement(SVGElement element)
Used to add an svg element to the layer.

Parameters:
element - the SVGElement to be added to the map.

setVisible

public void setVisible()
Set this layer to be visible.


setHidden

public void setHidden()
Set this layer to be hidden from view.


addToImageMap

public void addToImageMap()
Add the layer to the SVG image.


removeFromImageMap

public void removeFromImageMap()
Remove the layer from the SVG image.