net.xoetrope.optional.svg
Class XSvgElementState

java.lang.Object
  extended by net.xoetrope.optional.svg.XSvgElementState

public class XSvgElementState
extends java.lang.Object

Manages the visibility of a svg element

Copyright (c) Xoetrope 2001-2006, see license.txt for more details


Field Summary
 com.kitfox.svg.SVGElement element
           
 java.lang.String elementName
           
 boolean hidden
           
 
Constructor Summary
XSvgElementState()
          Creates a new instance of XSvgElementState
 
Method Summary
 void setup(com.kitfox.svg.SVGDiagram diagram, java.lang.String id)
          Setup the svg element wrapper
 boolean setVisible(boolean visible)
          Change the visibility of the element if the requested visibility differs from the current state
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

element

public com.kitfox.svg.SVGElement element

hidden

public boolean hidden

elementName

public java.lang.String elementName
Constructor Detail

XSvgElementState

public XSvgElementState()
Creates a new instance of XSvgElementState

Method Detail

setup

public void setup(com.kitfox.svg.SVGDiagram diagram,
                  java.lang.String id)
Setup the svg element wrapper

Parameters:
diagram - the svg diagram that owns the element
id - the id of the element/layer

setVisible

public boolean setVisible(boolean visible)
Change the visibility of the element if the requested visibility differs from the current state

Parameters:
visible - true to make the element visible
Returns:
true if the visiblity state has changed